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.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TMTTimeHelper$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCombines theTMTTimewith the Hawaii timezone to get ajava.time.ZonedDateTime.Combines theTMTTimewith the Local timezone to get ajava.time.ZonedDateTime.toZonedDateTime(TMTTime tmtTime) Converts theTMTTimeinstance tojava.time.ZonedDateTimeby adding 0 offset of UTC timezone.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
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
-