
uk.ac.ceh.dynamo.bread.SystemClock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynamo-mapping Show documentation
Show all versions of dynamo-mapping Show documentation
A Spring MVC plugin for creating dynamic MapServer maps with freemarker templates
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