Modifiers
Signature
static
UTC(year:Number,
month:Number,
[date:Number],
[hour:Number],
[minute:Number],
[second:Number],
[millisecond:Number]
) : Number
valueOf() : Number
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
Date constructor
public Date([yearOrTimevalue:Number], [month:Number], [date:Number],
[hour:Number], [minute:Number], [second:Number], [millisecond:Number])
Constructs a new Date object that holds the specified date and time.
The
constructor takes up to seven parameters (year, month, ..., millisecond) to specify
Date()
a date and time to the millisecond. Alternatively, you can pass a single value to the
constructor that indicates a time value based on the number of milliseconds since January 1,
1970 0:00:000 GMT. Or you can specify no parameters, and the
assigned the current date and time.
For example, this code shows several different ways to create a Date object:
var d1:Date = new Date();
var d3:Date = new Date(2000, 0, 1);
var d4:Date = new Date(65, 2, 6, 9, 30, 15, 0);
var d5:Date = new Date(-14159025000);
In the first line of code, a Date object is set to the time when the assignment statement is run.
In the second line, a Date object is created with year, month, and date parameters passed to it,
resulting in the time 0:00:00 GMT January 1, 2000.
480
ActionScript classes
Description
Returns the number of milliseconds between midnight
on January 1, 1970, universal time, and the time
specified in the parameters.
Returns the number of milliseconds since midnight
January 1, 1970, universal time, for this Date.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
Date()
valueOf
Date()
date object is
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?