name: MomentOf

description: The Substrate MomentOf representation as a Moment.

Hierarchy

↳ Moment

↳ MomentOf

Implements

Constructors

constructor

⊕ new MomentOf(value?: Moment | Date | AnyNumber): MomentOf

Inherited from Moment.constructor

Defined in primitive/Moment.ts:24

Parameters:

Name Type Default value
Default value value Moment | Date | AnyNumber 0

Returns: MomentOf


Properties

getVarDate

● getVarDate: function

Inherited from Date.getVarDate

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.scripthost.d.ts:326

Type declaration

▸(): VarDate

Returns: VarDate


Accessors

encodedLength

get encodedLength(): number

Inherited from Moment.encodedLength

Defined in primitive/Moment.ts:51

description: The length of the value when encoded as a Uint8Array

Returns: number


isEmpty

get isEmpty(): boolean

Inherited from Moment.isEmpty

Defined in primitive/Moment.ts:58

description: Checks if the value is an empty value

Returns: boolean


Methods

__@toPrimitive

▸ __@toPrimitive(hint: "default"): string

▸ __@toPrimitive(hint: "string"): string

▸ __@toPrimitive(hint: "number"): number

▸ __@toPrimitive(hint: string): string | number

Inherited from Date.[Symbol.toPrimitive]

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:109

Converts a Date object to a string.

Parameters:

Name Type
hint "default"

Returns: string

Inherited from Date.[Symbol.toPrimitive]

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:113

Converts a Date object to a string.

Parameters:

Name Type
hint "string"

Returns: string

Inherited from Date.[Symbol.toPrimitive]

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:117

Converts a Date object to a number.

Parameters:

Name Type
hint "number"

Returns: number

Inherited from Date.[Symbol.toPrimitive]

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:126

Converts a Date object to a string or number.

throws: {TypeError} If 'hint' was given something other than "number", "string", or "default".

Parameters:

Name Type Description
hint string The strings "number", "string", or "default" to specify what primitive to return.

Returns: string | number A number if 'hint' was "number", a string if 'hint' was "string" or "default".


bitLength

▸ bitLength(): UIntBitLength

Inherited from Moment.bitLength

Defined in primitive/Moment.ts:72

description: Returns the number of bits in the value

Returns: UIntBitLength


eq

▸ eq(other?: any): boolean

Implementation of Codec.eq

Inherited from Moment.eq

Defined in primitive/Moment.ts:65

description: Compares the value of the input to see if there is a match

Parameters:

Name Type
Optional other any

Returns: boolean


getDate

▸ getDate(): number

Inherited from Date.getDate

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:755

Gets the day-of-the-month, using local time.

Returns: number


getDay

▸ getDay(): number

Inherited from Date.getDay

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:759

Gets the day of the week, using local time.

Returns: number


getFullYear

▸ getFullYear(): number

Inherited from Date.getFullYear

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:747

Gets the year, using local time.

Returns: number


getHours

▸ getHours(): number

Inherited from Date.getHours

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:763

Gets the hours in a date, using local time.

Returns: number


getMilliseconds

▸ getMilliseconds(): number

Inherited from Date.getMilliseconds

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:775

Gets the milliseconds of a Date, using local time.

Returns: number


getMinutes

▸ getMinutes(): number

Inherited from Date.getMinutes

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:767

Gets the minutes of a Date object, using local time.

Returns: number


getMonth

▸ getMonth(): number

Inherited from Date.getMonth

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:751

Gets the month, using local time.

Returns: number


getSeconds

▸ getSeconds(): number

Inherited from Date.getSeconds

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:771

Gets the seconds of a Date object, using local time.

Returns: number


getTime

▸ getTime(): number

Inherited from Date.getTime

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:745

Gets the time value in milliseconds.

Returns: number


getTimezoneOffset

▸ getTimezoneOffset(): number

Inherited from Date.getTimezoneOffset

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:779

Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC).

Returns: number


getUTCDate

▸ getUTCDate(): number

Inherited from Date.getUTCDate

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:757

Gets the day-of-the-month, using Universal Coordinated Time (UTC).

Returns: number


getUTCDay

▸ getUTCDay(): number

Inherited from Date.getUTCDay

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:761

Gets the day of the week using Universal Coordinated Time (UTC).

Returns: number


getUTCFullYear

▸ getUTCFullYear(): number

Inherited from Date.getUTCFullYear

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:749

Gets the year using Universal Coordinated Time (UTC).

Returns: number


getUTCHours

▸ getUTCHours(): number

Inherited from Date.getUTCHours

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:765

Gets the hours value in a Date object using Universal Coordinated Time (UTC).

Returns: number


getUTCMilliseconds

▸ getUTCMilliseconds(): number

Inherited from Date.getUTCMilliseconds

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:777

Gets the milliseconds of a Date object using Universal Coordinated Time (UTC).

Returns: number


getUTCMinutes

▸ getUTCMinutes(): number

Inherited from Date.getUTCMinutes

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:769

Gets the minutes of a Date object using Universal Coordinated Time (UTC).

Returns: number


getUTCMonth

▸ getUTCMonth(): number

Inherited from Date.getUTCMonth

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:753

Gets the month of a Date object using Universal Coordinated Time (UTC).

Returns: number


getUTCSeconds

▸ getUTCSeconds(): number

Inherited from Date.getUTCSeconds

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:773

Gets the seconds of a Date object using Universal Coordinated Time (UTC).

Returns: number


setDate

▸ setDate(date: number): number

Inherited from Date.setDate

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:842

Sets the numeric day-of-the-month value of the Date object using local time.

Parameters:

Name Type Description
date number A numeric value equal to the day of the month.

Returns: number


setFullYear

▸ setFullYear(year: number, month?: undefined | number, date?: undefined | number): number

Inherited from Date.setFullYear

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:866

Sets the year of the Date object using local time.

Parameters:

Name Type Description
year number A numeric value for the year.
Optional month undefined | number A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
Optional date undefined | number A numeric value equal for the day of the month.

Returns: number


setHours

▸ setHours(hours: number, min?: undefined | number, sec?: undefined | number, ms?: undefined | number): number

Inherited from Date.setHours

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:829

Sets the hour value in the Date object using local time.

Parameters:

Name Type Description
hours number A numeric value equal to the hours value.
Optional min undefined | number A numeric value equal to the minutes value.
Optional sec undefined | number A numeric value equal to the seconds value.
Optional ms undefined | number A numeric value equal to the milliseconds value.

Returns: number


setMilliseconds

▸ setMilliseconds(ms: number): number

Inherited from Date.setMilliseconds

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:789

Sets the milliseconds value in the Date object using local time.

Parameters:

Name Type Description
ms number A numeric value equal to the millisecond value.

Returns: number


setMinutes

▸ setMinutes(min: number, sec?: undefined | number, ms?: undefined | number): number

Inherited from Date.setMinutes

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:814

Sets the minutes value in the Date object using local time.

Parameters:

Name Type Description
min number A numeric value equal to the minutes value.
Optional sec undefined | number A numeric value equal to the seconds value.
Optional ms undefined | number A numeric value equal to the milliseconds value.

Returns: number


setMonth

▸ setMonth(month: number, date?: undefined | number): number

Inherited from Date.setMonth

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:853

Sets the month value in the Date object using local time.

Parameters:

Name Type Description
month number A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
Optional date undefined | number A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.

Returns: number


setSeconds

▸ setSeconds(sec: number, ms?: undefined | number): number

Inherited from Date.setSeconds

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:801

Sets the seconds value in the Date object using local time.

Parameters:

Name Type Description
sec number A numeric value equal to the seconds value.
Optional ms undefined | number A numeric value equal to the milliseconds value.

Returns: number


setTime

▸ setTime(time: number): number

Inherited from Date.setTime

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:784

Sets the date and time value in the Date object.

Parameters:

Name Type Description
time number A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.

Returns: number


setUTCDate

▸ setUTCDate(date: number): number

Inherited from Date.setUTCDate

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:847

Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).

Parameters:

Name Type Description
date number A numeric value equal to the day of the month.

Returns: number


setUTCFullYear

▸ setUTCFullYear(year: number, month?: undefined | number, date?: undefined | number): number

Inherited from Date.setUTCFullYear

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:873

Sets the year value in the Date object using Universal Coordinated Time (UTC).

Parameters:

Name Type Description
year number A numeric value equal to the year.
Optional month undefined | number A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
Optional date undefined | number A numeric value equal to the day of the month.

Returns: number


setUTCHours

▸ setUTCHours(hours: number, min?: undefined | number, sec?: undefined | number, ms?: undefined | number): number

Inherited from Date.setUTCHours

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:837

Sets the hours value in the Date object using Universal Coordinated Time (UTC).

Parameters:

Name Type Description
hours number A numeric value equal to the hours value.
Optional min undefined | number A numeric value equal to the minutes value.
Optional sec undefined | number A numeric value equal to the seconds value.
Optional ms undefined | number A numeric value equal to the milliseconds value.

Returns: number


setUTCMilliseconds

▸ setUTCMilliseconds(ms: number): number

Inherited from Date.setUTCMilliseconds

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:794

Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).

Parameters:

Name Type Description
ms number A numeric value equal to the millisecond value.

Returns: number


setUTCMinutes

▸ setUTCMinutes(min: number, sec?: undefined | number, ms?: undefined | number): number

Inherited from Date.setUTCMinutes

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:821

Sets the minutes value in the Date object using Universal Coordinated Time (UTC).

Parameters:

Name Type Description
min number A numeric value equal to the minutes value.
Optional sec undefined | number A numeric value equal to the seconds value.
Optional ms undefined | number A numeric value equal to the milliseconds value.

Returns: number


setUTCMonth

▸ setUTCMonth(month: number, date?: undefined | number): number

Inherited from Date.setUTCMonth

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:859

Sets the month value in the Date object using Universal Coordinated Time (UTC).

Parameters:

Name Type Description
month number A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
Optional date undefined | number A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.

Returns: number


setUTCSeconds

▸ setUTCSeconds(sec: number, ms?: undefined | number): number

Inherited from Date.setUTCSeconds

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:807

Sets the seconds value in the Date object using Universal Coordinated Time (UTC).

Parameters:

Name Type Description
sec number A numeric value equal to the seconds value.
Optional ms undefined | number A numeric value equal to the milliseconds value.

Returns: number


toBn

▸ toBn(): BN

Inherited from Moment.toBn

Defined in primitive/Moment.ts:79

description: Returns the BN representation of the timestamp

Returns: BN


toDateString

▸ toDateString(): string

Inherited from Date.toDateString

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:733

Returns a date as a string value.

Returns: string


toHex

▸ toHex(): string

Implementation of Codec.toHex

Inherited from Moment.toHex

Defined in primitive/Moment.ts:86

description: Returns a hex string representation of the value

Returns: string


toISOString

▸ toISOString(): string

Inherited from Date.toISOString

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:877

Returns a date as a string value in ISO format.

Returns: string


toJSON

▸ toJSON(): any

Implementation of Codec.toJSON

Inherited from Moment.toJSON

Overrides Date.toJSON

Defined in primitive/Moment.ts:93

description: Converts the Object to JSON, typically used for RPC transfers

Returns: any


toLocaleDateString

▸ toLocaleDateString(): string

Inherited from Date.toLocaleDateString

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:739

Returns a date as a string value appropriate to the host environment's current locale.

Returns: string


toLocaleString

▸ toLocaleString(): string

Inherited from Date.toLocaleString

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:737

Returns a value as a string value appropriate to the host environment's current locale.

Returns: string


toLocaleTimeString

▸ toLocaleTimeString(): string

Inherited from Date.toLocaleTimeString

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:741

Returns a time as a string value appropriate to the host environment's current locale.

Returns: string


toNumber

▸ toNumber(): number

Inherited from Moment.toNumber

Defined in primitive/Moment.ts:100

description: Returns the number representation for the timestamp

Returns: number


toString

▸ toString(): string

Implementation of Codec.toString

Inherited from Moment.toString

Overrides Date.toString

Defined in primitive/Moment.ts:107

description: Returns the string representation of the value

Returns: string


toTimeString

▸ toTimeString(): string

Inherited from Date.toTimeString

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:735

Returns a time as a string value.

Returns: string


toU8a

▸ toU8a(isBare?: undefined | false | true): Uint8Array

Implementation of Codec.toU8a

Inherited from Moment.toU8a

Defined in primitive/Moment.ts:116

description: Encodes the value as a Uint8Array as per the parity-codec specifications

Parameters:

Name Type Description
Optional isBare undefined | false | true true when the value has none of the type-specific prefixes (internal)

Returns: Uint8Array


toUTCString

▸ toUTCString(): string

Inherited from Date.toUTCString

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:875

Returns a date converted to a string using Universal Coordinated Time (UTC).

Returns: string


valueOf

▸ valueOf(): number

Inherited from Date.valueOf

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:743

Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC.

Returns: number


<Static> decodeMoment

▸ decodeMoment(value: Moment | Date | AnyNumber): Date

Inherited from Moment.decodeMoment

Defined in primitive/Moment.ts:34

Parameters:

Name Type
value Moment | Date | AnyNumber

Returns: Date


Last Updated: 2/25/2019, 4:39:16 PM