extern class Date
-
function new(year :
Int, month :
Int, day :
Int, hour :
Int, min :
Int, sec :
Int) :
Void
function getDate() :
Int Returns the day of the date (1-31 range).
function getDay() :
Int Returns the week day of the date (0-6 range).
function getFullYear() :
Int Returns the full year of the date.
function getHours() :
Int Returns the hours value of the date (0-23 range).
function getLocaleLongDate() :
String
function getLocaleShortDate() :
String
function getLocaleTime() :
String
function getMinutes() :
Int Returns the minutes value of the date (0-59 range).
function getMonth() :
Int Returns the month of the date (0-11 range).
function getSeconds() :
Int Returns the seconds of the date (0-59 range).
function getTime() :
Float
function toString() :
String
YYYY-MM-DD HH:MM:SS
. See
DateTools.format
for other formating rules.
static function fromString(s :
String) :
Date Returns
YYYY-MM-DD hh:mm:ss
or
YYYY-MM-DD
or
hh:mm:ss
.
static function fromTime(t :
Float) :
Date Returns a Date
static function now() :
Date Returns a Date representing the current local time.