Constructors
Methods
Static
GetHumanSize
- GetHumanSize(size): string
Returns string
Static
bytesToSize
- bytesToSize(bytes): string
Returns string
Static
formatAgo
- formatAgo(date): string
Parameters
- date: string | number | Date
Returns string
Static
formatBytes
- formatBytes(bytes, decimals?): string
Parameters
- bytes: number
Optional
decimals: number
Returns string
Static
formatCurrency
- formatCurrency(value): string
Returns string
Static
formatDatabaseDateTime
- formatDatabaseDateTime(date): string
Parameters
- date: {
epochMillis: number;
}
Returns string
Static
formatDate
- formatDate(date): string
Parameters
- date: string | number | Date
Returns string
Static
formatDateTime
- formatDateTime(date): string
Parameters
- date: string | number | Date
Returns string
Static
formatDateTimeShortest
- formatDateTimeShortest(date): string
Returns string
Static
formatDateTimeWithSeconds
- formatDateTimeWithSeconds(date): string
Parameters
- date: string | number | Date
Returns string
Static
formatDuration
- formatDuration(ms, showSeconds?, showMilliSeconds?): string
Parameters
- ms: number
Optional
showSeconds: booleanOptional
showMilliSeconds: boolean
Returns string
Static
formatMoney
- formatMoney(input): string
Parameters
- input: {
amount: number;
currency: string;
}amount: number
currency: string
Returns string
Static
formatSpan
- formatSpan(date1, date2): string
Parameters
- date1: string | number | Date
- date2: string | number | Date
Returns string
Static
formatTime
- formatTime(date): string
Returns string
Static
formatTimeObject
- formatTimeObject(date): string
Returns string
Static
formatTimeSpan
- formatTimeSpan(ms, showSeconds?): string
Parameters
- ms: number
Optional
showSeconds: boolean
Returns string
Static
parseDate
- parseDate(date): Date
Parameters
- date: string | number | Date
Returns Date
Commonly used formatting methods. Explicitly not part of the public API