| Package | com.gestureworks.cml.utils |
| Class | public class Timestamp |
| Inheritance | Timestamp Object |
var t:TimeStamp = new TimeStamp();
//trace(t.getDateTime());
//trace(t.getHrsMinSec());
| Method | Defined 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 | ||
| Timestamp | () | Constructor |
public function Timestamp()Constructor
| getDateTime | () | method |
public function getDateTime():StringReturns the current full date
ReturnsString — full date
|
| getHrsMinSec | () | method |
public function getHrsMinSec():StringReturns the current time in hrs:min:sec
ReturnsString — time
|
| getMonthAbbreviation | () | method |
public function getMonthAbbreviation(num:int):StringReturns the month abbreviation for a given month index
Parameters
num:int |
String — |
| getNumberSuffix | () | method |
public function getNumberSuffix(num:int):StringReturns the number suffix (st, nd, rd, stc) for a given number
Parameters
num:int |
String — |