Skip to main content

CurrentTime

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new CurrentTime(uid?, opts?)

Define a current time handler

Parameters

NameTypeDescription
uid?stringOptional, provides recallable uid
opts?CurrentTimeOpts

Overrides

ControlBlock.constructor

Properties

uid

Readonly uid: string

Inherited from

ControlBlock.uid

Accessors

output

get output(): string

Return the current time with given format

Returns

string

Methods

close

close(): void

Returns

void

Inherited from

ControlBlock.close


input

input(value?): void

Call the current time with the given format

Parameters

NameType
value?any

Returns

void


off

off(event, handler): any

Parameters

NameType
eventstring
handlerany

Returns

any

Inherited from

ControlBlock.off


on

on(event, handler): any

Parameters

NameType
eventstring
handlerany

Returns

any

Inherited from

ControlBlock.on