
Date.setYear() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
517
Returns
An integer representing the number of milliseconds between the new date and midnight,
January 1, 1970, in UTC time.
Date.setUTCMonth() Method
assign the month of the year (UTC time)
Flash 5
date.setUTCMonth(month)
Arguments
month An integer from 0 (January) to 11 (December), not from 1 to 12, representing
the new month of the year of
date, in UTC time.
Returns
An integer representing the number of milliseconds between the new date and midnight,
January 1, 1970, in UTC time.
Usage
Be careful not to assume that 1 is January! Months start at 0, not 1.
Date.setUTCSeconds() Method
assign the seconds of a date (UTC time)
Flash 5
date.setUTCSeconds(seconds)
Arguments
seconds An integer from 0 to 59, representing the new seconds of the minute of date,
in UTC time.
Returns
An integer representing the number of milliseconds between the new date and midnight,
January 1, 1970, in UTC time.
Date.setYear() Method
assign the year, relative to 1900
Flash 5
date.setYear(year, month, day)
Arguments
year A required integer specifying the new year of date. If one or two digits are
supplied, the year is assumed to be in the twentieth century (1900s). For
example, 1 is the year 1901, and 99 is the year 1999. Three-digit years are
assumed to be prior to 1000 A.D. ...