Namespace MochiKit.DateTime
Provides functions for handling date and time.
Defined in: DateTime.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
MochiKit.DateTime._twoDigitNumber(value)
Formats a number using two digits, i.e.
|
<static> |
MochiKit.DateTime.toApproxPeriod(millis)
Converts a number of milliseconds to an approximate time period.
|
Method Detail
<static>
{String}
MochiKit.DateTime._twoDigitNumber(value)
Formats a number using two digits, i.e. pads with a leading zero
character if the number is only one digit.
- Parameters:
- {Number} value
- the number to format
- Returns:
- {String} the formatted number string
<static>
{String}
MochiKit.DateTime.toApproxPeriod(millis)
Converts a number of milliseconds to an approximate time period.
- Parameters:
- {Number} millis
- the number of milliseconds
- Returns:
- {String} the string representation of the period