core/util

core/util

Source:

Methods

(static) exports.getDateString(date) → {string}

Transform a Date object into a string.
Parameters:
Name Type Description
date Date The date object
Source:
Returns:
The resulting date string.
Type
string

(static) exports.getISODateString(date) → {string}

Transform a Date object into an ISO 8601 conformant date string.
Parameters:
Name Type Description
date Date The date object
Source:
Returns:
The resulting date string.
Type
string

(static) exports.getISODateTimeString(date) → {string}

Transform a Date object into an ISO 8601 conformant datetime string.
Parameters:
Name Type Description
date Date The date object
Source:
Returns:
The resulting datetime string.
Type
string

(static) exports.padLeft(str, pad, size)

left pad a string with a fill value
Parameters:
Name Type Description
str The string to pad
pad The character to pad with
size The tital size the string shall have
Source:
Returns:
The padded string