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
Modifier and TypeFieldDescriptionstatic final TMTTimeHelper$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCombines theTMTTime
with the Hawaii timezone to get ajava.time.ZonedDateTime
.Combines theTMTTime
with the Local timezone to get ajava.time.ZonedDateTime
.toZonedDateTime
(TMTTime tmtTime) Converts theTMTTime
instance tojava.time.ZonedDateTime
by 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 theTMTTime
with 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 theTMTTime
with the Hawaii timezone to get ajava.time.ZonedDateTime
.- Parameters:
tmtTime
- (undocumented)- Returns:
- time at the Hawaii-Aleutian Standard Time (HST) zone
-
toZonedDateTime
Converts theTMTTime
instance tojava.time.ZonedDateTime
by adding 0 offset of UTC timezone.- Parameters:
tmtTime
- (undocumented)- Returns:
- zoned representation of the TMTTime
-