On my Flex project, when I call a File‘s modificationDate property, it’s being displayed as Wed Mar 7 20:14:07 GMT+0800 2012. Can anyone help me out on how to convert that to a UNIX timestamp?
On my Flex project, when I call a File ‘s modificationDate property, it’s being
Share
Just use the
Dateclasshttp://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html#time
but you should be able just access the
timeproperty of the file’smodificationDate(assuming it is aDateobject)