Package csw.time.core
Class TMTTimeHelper
java.lang.Object
csw.time.core.TMTTimeHelper
This API allows users to get a representation of
TMTTime in a specific Time Zone,
returned as a java.time.ZonedDateTime.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ZonedDateTimeCombines theTMTTimewith the Hawaii timezone to get ajava.time.ZonedDateTime.static ZonedDateTimeCombines theTMTTimewith the Local timezone to get ajava.time.ZonedDateTime.static ZonedDateTimestatic ZonedDateTimetoZonedDateTime(TMTTime tmtTime) Converts theTMTTimeinstance tojava.time.ZonedDateTimeby adding 0 offset of UTC timezone.
-
Constructor Details
-
TMTTimeHelper
public TMTTimeHelper()
-
-
Method Details
-
atZone
- Parameters:
zoneId- id of the required zonetmtTime- (undocumented)- Returns:
- time at the given zone
-
atLocal
Combines theTMTTimewith the Local timezone to get ajava.time.ZonedDateTime. Local timezone is the system's default timezone.- Parameters:
tmtTime- (undocumented)- Returns:
- time at the Local zone
-
atHawaii
Combines theTMTTimewith the Hawaii timezone to get ajava.time.ZonedDateTime.- Parameters:
tmtTime- (undocumented)- Returns:
- time at the Hawaii-Aleutian Standard Time (HST) zone
-
toZonedDateTime
Converts theTMTTimeinstance tojava.time.ZonedDateTimeby adding 0 offset of UTC timezone.- Parameters:
tmtTime- (undocumented)- Returns:
- zoned representation of the TMTTime
-