Groups | Blog | Home
all groups > flash (macromedia) > november 2003 >

flash (macromedia) : Date.getSeconds()?????



Erich Albert
11/13/2003 10:54:11 PM
Can someone help me out here? Whenever I use Date.getSeconds(), or Date.getMilliseconds, it returns a 0? What's going on. Thanks for the help.

-Erich Albert

urami_
11/14/2003 11:52:22 AM

[quoted text, click to view]

did you define new date first ?

TimeDay = new Date();
trace(TimeDay.getMilliseconds());


Regards

urami_*



<lsym>

There's no place like 127.0.0.1

Ciaran
11/14/2003 11:52:59 PM
The Date object is the generic class for all dates, past, present and
future.

If you want a particular date, you need to make a real instance.

var now = new Date();
trace(now.toString()); // or milliseconds() etc

or just: trace(new Date().toString());

Ciaran


[quoted text, click to view]

AddThis Social Bookmark Button