org.openstreetmap.atlas.utilities.time.Time Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlas Show documentation
Show all versions of atlas Show documentation
"Library to load OSM data into an Atlas format"
package org.openstreetmap.atlas.utilities.time;
import java.time.ZoneOffset;
import org.openstreetmap.atlas.utilities.scalars.Duration;
/**
* UTC Time
*
* @author matthieun
*/
public class Time extends LocalTime
{
public static Time now()
{
return new Time(Duration.milliseconds(System.currentTimeMillis()));
}
public Time(final Duration epoch)
{
super(epoch, ZoneOffset.UTC);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy