Constructors
Methods
StaticGetHumanSize
- GetHumanSize(size): string
Returns string
StaticbytesToSize
- bytesToSize(bytes): string
Returns string
StaticformatAgo
- formatAgo(date): string
Parameters
- date: string | number | Date
Returns string
StaticformatBytes
- formatBytes(bytes, decimals?): string
Parameters
- bytes: number
Optionaldecimals: number
Returns string
StaticformatCurrency
- formatCurrency(value): string
Returns string
StaticformatDatabaseDateTime
- formatDatabaseDateTime(date): string
Parameters
- date: {
epochMillis: number;
}
Returns string
StaticformatDate
- formatDate(date): string
Parameters
- date: string | number | Date
Returns string
StaticformatDateTime
- formatDateTime(date): string
Parameters
- date: string | number | Date
Returns string
StaticformatDateTimeShortest
- formatDateTimeShortest(date): string
Returns string
StaticformatDateTimeWithSeconds
- formatDateTimeWithSeconds(date): string
Parameters
- date: string | number | Date
Returns string
StaticformatDuration
- formatDuration(ms, showSeconds?, showMilliSeconds?): string
Parameters
- ms: number
OptionalshowSeconds: booleanOptionalshowMilliSeconds: boolean
Returns string
StaticformatMoney
- formatMoney(input): string
Parameters
- input: {
amount: number;
currency: string;
}amount: number
currency: string
Returns string
StaticformatSpan
- formatSpan(date1, date2): string
Parameters
- date1: string | number | Date
- date2: string | number | Date
Returns string
StaticformatTime
- formatTime(date): string
Returns string
StaticformatTimeObject
- formatTimeObject(date): string
Returns string
StaticformatTimeSpan
- formatTimeSpan(ms, showSeconds?): string
Parameters
- ms: number
OptionalshowSeconds: boolean
Returns string
StaticparseDate
- parseDate(date): Date
Parameters
- date: string | number | Date
Returns Date
Commonly used formatting methods. Explicitly not part of the public API