Class Index | File Index

Classes


Function Namespace Pot.DateTime


Defined in: <pot.js>.

Function Namespace Summary
Constructor Attributes Constructor Name and Description
 
DateTime utilities.
Method Summary
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.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 21 2012 19:32:22 GMT+0900 (JST)