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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZonedDateTime
Combines theTMTTime
with the Hawaii timezone to get ajava.time.ZonedDateTime
.static ZonedDateTime
Combines theTMTTime
with the Local timezone to get ajava.time.ZonedDateTime
.static ZonedDateTime
static ZonedDateTime
toZonedDateTime
(TMTTime tmtTime) Converts theTMTTime
instance tojava.time.ZonedDateTime
by 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 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
-