Methods
Static Private formatMilliseconds
- formatMilliseconds(value: number): string
-
Parameters
Returns string
Static Private formatZerolessValue
- formatZerolessValue(value: number): string
-
Parameters
Returns string
Static mixedDateToDate
- mixedDateToDate(mixedDate: Date | string, toUtc?: boolean, useMilliseconds?: boolean): Date
-
Parameters
-
mixedDate: Date | string
-
Default value toUtc: boolean = false
-
Default value useMilliseconds: boolean = true
Returns Date
Static mixedDateToDateString
- mixedDateToDateString(value: Date | any): string | any
-
Parameters
Returns string
|
any
Static mixedDateToDatetimeString
- mixedDateToDatetimeString(value: Date | any): string | any
-
Parameters
Returns string
|
any
Static mixedDateToTimeString
- mixedDateToTimeString(value: Date | any, skipSeconds?: boolean): string | any
-
Parameters
-
value: Date | any
-
Default value skipSeconds: boolean = false
Returns string
|
any
Static mixedDateToUtcDatetimeString
- mixedDateToUtcDatetimeString(value: Date | any): string | any
-
Parameters
Returns string
|
any
Static mixedTimeToDate
- mixedTimeToDate(value: Date | any): string | any
-
Parameters
Returns string
|
any
Static mixedTimeToString
- mixedTimeToString(value: string | any, skipSeconds?: boolean): string | any
-
Parameters
-
value: string | any
-
Default value skipSeconds: boolean = false
Returns string
|
any
Static normalizeHydratedDate
- normalizeHydratedDate(mixedDate: Date | string | undefined): Date | string | undefined
-
Parameters
-
mixedDate: Date | string | undefined
Returns Date
|
string
|
undefined
Static simpleArrayToString
- simpleArrayToString(value: any[] | any): string[] | any
-
Parameters
Returns string[]
|
any
Static simpleJsonToString
- simpleJsonToString(value: any): string
-
Parameters
Returns string
Static stringToSimpleArray
- stringToSimpleArray(value: string | any): string | any
-
Parameters
Returns string
|
any
Static stringToSimpleJson
- stringToSimpleJson(value: any): any
Provides utilities to transform hydrated and persisted data.