Object for manipulating date/time.
make System.date()
: Constructs a new date object.make System.date(sec, min, hour, day_of_month, month, year, day_of_week, day_of_year, dst)
: Constructs a new date object.sec
: Number of seconds (0-59).min
: Number of minutes (0-59).hour
: Number of hours (0-23).day_of_month
: Day of the month (1-31).month
: Month (1-12).year
: Year (yyyy).day_of_week
: Day of the week (0-6).day_of_year
: Day of the year (0-365).dst
: Daylight Saving Time (true/false).day_of_month
: Day of the month (1-31).day_of_week
: Day of the week (0-6).day_of_year
: Day of the year (0-365).dst
: Daylight Saving Time (true/false).hour
: Number of hours (0-23).min
: Number of minutes (0-59).month
: Month (1-12).sec
: Number of seconds (0-59).year
: Year (yyyy).format(format)
: Format date into a string, given format specifier.format
: Format specifier (see man strftime for valid characters).now_gmt()
: Returns the current time in GMT.now_local()
: Returns the current local time.parse(val, format)
: Parse given value into a date object.val
: Value to parse.format
: Format to use (see man strptime for info).str()
: Returns string representation of date.timestamp()
: Return given date as the number of seconds since 1970.