Members

(static, readonly) ClockFormat

Possible clock formats

Properties
NameTypeDescription
h12
h24

Methods

(static) format12HourTime() → {string}

format12HourTime: Returns a string with the current time formatted for a 12 hour clock

Returns:

current time formatted for a 12 hour clock

Type: 
string

(static) format24HourTime() → {string}

format24HourTime: Returns a string with the current time formatted for a 24 hour clock

Returns:

current time formatted for a 24 hour clock

Type: 
string

(static) formatTimeAsString() → {string}

formatTimeAsString: Returns a string with the current time formatted for either a 12 or 24 hour clock

Returns:

current time formatted for either a 12 hour or 24 hour clock

Type: 
string

(static) init() → {void}

Returns:
Type: 
void

(static) onCurrentTimeTimerFire() → {void}

onCurrentTimeTimerFire: Code that runs every time the currentTimeTimer fires

Returns:
Type: 
void