This content has been marked as final. Show 6 replies
var dt ate=new Date(1147682000);
var m:Array = new Array("January", "Feb", "Mar", "April", "May", "June", "July", "Aug" , "Sept", "Oct", "Nov", "Dec");
var d:Array = new Array("Sun", "Mon", "Tue", "Wed", "Thursday", "Friday", "Saturday");
trace("the month is " + m[dt.getMonth()] + " the day is " + d[dt.getDay()] );
I guess writing code in line isn't the thing to do. So here it is using their attachment tool.
Implicit in what Jim Esteban is saying is "use Flash's Date class." There are then all kinds of methods and things you can do. You don't necessarily need the arrays and such. It all depends upon what you want to do with it later.
So what happened on January 14, 1970?
"Rothrock" <firstname.lastname@example.org> wrote in message
> Implicit in what Jim Esteban is saying is "use Flash's Date class." There
> then all kinds of methods and things you can do. You don't necessarily
> need the
> arrays and such. It all depends upon what you want to do with it later.
> So what happened on January 14, 1970?
January 14, 1970 ??? The time used in the example translates to
May 14th, 2006 03:33:20 PM
January 1st, 1970 is called the UNIX epoch, the date/time from which all
other dates/times are measured. UNIX time number 0 is January 1st, 1970
Since there are 86,400 seconds in a day, the UNIX time number 86,400 is
January 2nd, 1970 12:00:00 am.
Thanks a lot! I had such a hard time with this. And yes, the time that I sent was actually in seconds - not milliseconds. I have just pointed that fact out to the guy responsible for the XML feed that I use.
Once again - super many thanks.