All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.ac.ceh.dynamo.bread.SystemClock Maven / Gradle / Ivy

Go to download

A Spring MVC plugin for creating dynamic MapServer maps with freemarker templates

There is a newer version: 1.3
Show newest version
package uk.ac.ceh.dynamo.bread;

import java.util.Calendar;

/**
 * The standard implementation of a clock, this is based on system time and
 * therefore useful in production systems
 * @author Christopher Johnson
 */
public class SystemClock implements Clock {

    /**
     * @return the current system time in UTC milliseconds
     */
    @Override
    public long getTimeInMillis() {
        return Calendar.getInstance().getTimeInMillis();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy