Packagecom.gestureworks.cml.utils
Classpublic class Timestamp
InheritanceTimestamp Inheritance Object

The Timestamp utility returns the time and date in a variety of formats.
        var t:TimeStamp = new TimeStamp();
        //trace(t.getDateTime());
        //trace(t.getHrsMinSec());
     
     



Public Methods
 MethodDefined By
  
Constructor
Timestamp
  
getDateTime():String
Returns the current full date
Timestamp
  
getHrsMinSec():String
Returns the current time in hrs:min:sec
Timestamp
  
getMonthAbbreviation(num:int):String
Returns the month abbreviation for a given month index
Timestamp
  
getNumberSuffix(num:int):String
Returns the number suffix (st, nd, rd, stc) for a given number
Timestamp
Constructor Detail
Timestamp()Constructor
public function Timestamp()

Constructor

Method Detail
getDateTime()method
public function getDateTime():String

Returns the current full date

Returns
String — full date
getHrsMinSec()method 
public function getHrsMinSec():String

Returns the current time in hrs:min:sec

Returns
String — time
getMonthAbbreviation()method 
public function getMonthAbbreviation(num:int):String

Returns the month abbreviation for a given month index

Parameters

num:int

Returns
String
getNumberSuffix()method 
public function getNumberSuffix(num:int):String

Returns the number suffix (st, nd, rd, stc) for a given number

Parameters

num:int

Returns
String