Gettimezoneoffset (Date.gettimezoneoffset Method); Getutcdate (Date.getutcdate Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Availability: ActionScript 1.0; Flash Lite 2.0
Returns
- An integer.
Number
Example
The following example uses the constructor to create a Date object based on the current time,
and uses the
getTime()
1, 1970:
var my_date:Date = new Date();
trace(my_date.getTime());
getTimezoneOffset (Date.getTimezoneOffset
method)
public getTimezoneOffset() : Number
Returns the difference, in minutes, between the computer's local time and universal time.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
- An integer.
Number
Example
The following example returns the difference between the local daylight saving time for San
Francisco and universal time. Daylight saving time is factored into the returned result only if
the date defined in the Date object occurs during daylight saving time. The output in this
example is 420 minutes and displays in the Output panel (7 hours * 60 minutes/hour = 420
minutes). This example is Pacific Daylight Time (PDT, GMT-0700). The result varies
depending on location and time of year.
var my_date:Date = new Date();
trace(my_date.getTimezoneOffset());

getUTCDate (Date.getUTCDate method)

public getUTCDate() : Number
Returns the day of the month (an integer from 1 to 31) in the specified Date object, according
to universal time.
Availability: ActionScript 1.0; Flash Lite 2.0
338
ActionScript classes
method to return the number of milliseconds since midnight January

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents