Date class
351
Constructor for the Date class
Availability
Flash Player 5.
Usage
new Date()
new Date(
year
,
month
[,
date
[,
hour
[,
minute
[,
second
[,
millisecond
]]]]])
Parameters
year
A value of 0 to 99 indicates 1900 though 1999; otherwise all four digits of the year must
be specified.
month
An integer from 0 (January) to 11 (December).
Date.setMilliseconds()
Sets the milliseconds according to local time. Returns the new time
in milliseconds.
Date.setMinutes()
Sets the minutes according to local time. Returns the new time
in milliseconds.
Date.setMonth()
Sets the month according to local time. Returns the new time
in milliseconds.
Date.setSeconds()
Sets the seconds according to local time. Returns the new time
in milliseconds.
Date.setTime()
Sets the date in milliseconds. Returns the new time in milliseconds.
Date.setUTCDate()
Sets the date according to universal time. Returns the new time
in milliseconds.
Date.setUTCFullYear()
Sets the year according to universal time. Returns the new time
in milliseconds.
Date.setUTCHours()
Sets the hour according to universal time. Returns the new time
in milliseconds.
Date.setUTCMilliseconds()
Sets the milliseconds according to universal time. Returns the new
time in milliseconds.
Date.setUTCMinutes()
Sets the minutes according to universal time. Returns the new time
in milliseconds.
Date.setUTCMonth()
Sets the month according to universal time. Returns the new time
in milliseconds.
Date.setUTCSeconds()
Sets the seconds according to universal time. Returns the new time
in milliseconds.
Date.setYear()
Sets the year according to local time.
Date.toString()
Returns a string value representing the date and time stored in the
specified Date object.
Date.UTC()
Returns the number of milliseconds between midnight on January 1,
1970, universal time, and the specified time.
Method
Description
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...