TMTTimeHelper

csw.time.core.TMTTimeHelper
object TMTTimeHelper

This API allows users to get a representation of csw.time.core.models.TMTTime in a specific Time Zone, returned as a java.time.ZonedDateTime.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def atHawaii(tmtTime: TMTTime): ZonedDateTime

Combines the csw.time.core.models.TMTTime with the Hawaii timezone to get a java.time.ZonedDateTime.

Combines the csw.time.core.models.TMTTime with the Hawaii timezone to get a java.time.ZonedDateTime.

Attributes

Returns

time at the Hawaii-Aleutian Standard Time (HST) zone

def atLocal(tmtTime: TMTTime): ZonedDateTime

Combines the csw.time.core.models.TMTTime with the Local timezone to get a java.time.ZonedDateTime. Local timezone is the system's default timezone.

Combines the csw.time.core.models.TMTTime with the Local timezone to get a java.time.ZonedDateTime. Local timezone is the system's default timezone.

Attributes

Returns

time at the Local zone

def atZone(tmtTime: TMTTime, zoneId: ZoneId): ZonedDateTime

Combines the csw.time.core.models.TMTTime with the given timezone to get a `java.time.ZonedDateTime``

Combines the csw.time.core.models.TMTTime with the given timezone to get a `java.time.ZonedDateTime``

Value parameters

zoneId

id of the required zone

Attributes

Returns

time at the given zone

def toZonedDateTime(tmtTime: TMTTime): ZonedDateTime

Converts the csw.time.core.models.TMTTime instance to java.time.ZonedDateTime by adding 0 offset of UTC timezone.

Converts the csw.time.core.models.TMTTime instance to java.time.ZonedDateTime by adding 0 offset of UTC timezone.

Attributes

Returns

zoned representation of the TMTTime