13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

SQL support in local databases<br />

DATE(T, ...) The DATE() function returns a string containing the date in this format: YYYY-MM-DD. The first<br />

parameter (T) specifies a time string of the format found under Time formats. Any number of<br />

modifiers can be specified after the time string. The modifiers can be found under Modifiers.<br />

TIME(T, ...) The TIME() function returns a string containing the time as HH:MM:SS. The first parameter (T)<br />

specifies a time string of the format found under Time formats. Any number of modifiers can<br />

be specified after the time string. The modifiers can be found under Modifiers.<br />

DATETIME(T, ...) The DATETIME() function returns a string containing the date and time in YYYY-MM-DD<br />

HH:MM:SS format. The first parameter (T) specifies a time string of the format found under<br />

Time formats. Any number of modifiers can be specified after the time string. The modifiers<br />

can be found under Modifiers.<br />

JULIANDAY(T, ...) The JULIANDAY() function returns a number indicating the number of days since noon in<br />

Gre<strong>en</strong>wich on November 24, 4714 B.C. and the provided date. The first parameter (T) specifies<br />

a time string of the format found under Time formats. Any number of modifiers can be<br />

specified after the time string. The modifiers can be found under Modifiers.<br />

STRFTIME(F, T, ...) The STRFTIME() routine returns the date formatted according to the format string specified as<br />

the first argum<strong>en</strong>t F. The format string supports the following substitutions:<br />

%d - day of month<br />

%f - fractional seconds SS.SSS<br />

%H - hour 00-24<br />

%j - day of year 001-366<br />

%J - Julian day number<br />

%m -month 01-12<br />

%M - minute 00-59<br />

%s - seconds since 1970-01-01<br />

%S - seconds 00-59<br />

%w - day of week 0-6 (sunday = 0)<br />

%W - week of year 00-53<br />

%Y - year 0000-9999<br />

%% - %<br />

The second parameter (T) specifies a time string of the format found under Time formats. Any<br />

number of modifiers can be specified after the time string. The modifiers can be found under<br />

Modifiers.<br />

Time formats<br />

A time string can be in any of the following formats:<br />

YYYY-MM-DD 2007-06-15<br />

YYYY-MM-DD HH:MM 2007-06-15 07:30<br />

YYYY-MM-DD HH:MM:SS 2007-06-15 07:30:59<br />

YYYY-MM-DD HH:MM:SS.SSS 2007-06-15 07:30:59.152<br />

YYYY-MM-DDTHH:MM 2007-06-15T07:30<br />

YYYY-MM-DDTHH:MM:SS 2007-06-15T07:30:59<br />

YYYY-MM-DDTHH:MM:SS.SSS 2007-06-15T07:30:59.152<br />

HH:MM 07:30 (date is 2000-01-01)<br />

HH:MM:SS 07:30:59 (date is 2000-01-01)<br />

HH:MM:SS.SSS 07:30:59:152 (date is 2000-01-01)<br />

now Curr<strong>en</strong>t date and time in Universal Coordinated Time.<br />

DDDD.DDDD Julian day number as a floating-point number.<br />

The character T in these formats is a literal character "T" separating the date and the time. Formats that only include<br />

a time assume the date 2001-01-01.<br />

Last updated 6/6/2012<br />

1110

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!