Function Namespace Pot.DateTime
Defined in: <pot.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Pot.DateTime(x)
DateTime utilities.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Pot.DateTime.now()
Get the current time as milliseconds.
|
<static> |
Pot.DateTime.time()
Get the current UNIX timestamp.
|
Function Namespace Detail
Pot.DateTime(x)
DateTime utilities.
- Parameters:
- {*} x
- The timestamp.
- Returns:
- {Number} The timestamp at that time.
Method Detail
<static>
{Function}
Pot.DateTime.now()
Get the current time as milliseconds.
var time = now(); // equals (new Date()).getTime(); debug(time); // 1323446177282
- Returns:
- {Number} Return the current time as milliseconds.
<static>
{Function}
Pot.DateTime.time()
Get the current UNIX timestamp.
- Returns:
- {Number} Return the current UNIX timestamp.