TimeUtil

TimeUtil

new TimeUtil()

Methods

(static) toGmtTime(utcStr) → {GmtTime}

Parameters:
Name Type Description
utcStr
Returns:
Type
GmtTime

(static) toLocalTime(utcStr) → {LocalTime}

Parameters:
Name Type Description
utcStr
Returns:
Type
LocalTime

TimeUtil

new TimeUtil()

class TimeUtil provides tools to convert utc time string to LocalTime and GmtTime.

Example
import { TimeUtil } from "ultrain-ts-lib/src/time;"

Methods

(static) toGmtTime(utcStr) → {GmtTime}

Parameters:
Name Type Description
utcStr
Returns:
Type
GmtTime

(static) toLocalTime(utcStr) → {LocalTime}

Parameters:
Name Type Description
utcStr
Returns:
Type
LocalTime