public class TimeUtils extends Object
| Constructor and Description |
|---|
TimeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
instantAsGML(org.opengis.temporal.Instant instant,
ZoneOffset offset)
Builds a GML representation of a time instant with the specified
time-zone offset.
|
static Document |
intervalAsGML(ZonedDateTime startDateTime,
ZonedDateTime endDateTime)
Builds a GML representation of a time interval delimited by the given
time instants.
|
static Document |
periodAsGML(org.opengis.temporal.Period period)
Builds a GML representation of the given time period.
|
public static Document intervalAsGML(ZonedDateTime startDateTime, ZonedDateTime endDateTime)
startDateTime - The starting instant.endDateTime - The ending instant.public static Document periodAsGML(org.opengis.temporal.Period period)
period - A Period representing a temporal interval (UTC).public static Document instantAsGML(org.opengis.temporal.Instant instant, ZoneOffset offset)
instant - An instant representing a position in time.offset - A time-zone offset from UTC ('Z' if null).Copyright © 2020 Open Geospatial Consortium. All rights reserved.