Home Contents | # datetime() | Date/Time | Core4 Lua Commands

## SYNOPSIS

y, m, d, h, m, s, ms = datetime()

## DESCRIPTION

A datetime in function context returns the year, month, day, hour, minute, second and millisecond values.

## ERRORS

Raises an error if datetime is not a datetime instance.

## EXAMPLE

> >
d = clock.currentDatetime() print (d())
2009 8 6 10 22 42 463

## SEE ALSO

clock.currentDateTime, clock.newDateTime, clock.setDateTime, clock.tzget, clock.tzset, datetime:addDays, datetime:addMonths, datetime:addSecs, datetime:addYears, datetime:base90, datetime:date, datetime:day, datetime:daysTo, datetime:format, datetime:hour, datetime:isNull, datetime:isValid, datetime:isdst, datetime:minute, datetime:month, datetime:msec, datetime:offset, datetime:second, datetime:secsTo, datetime:set, datetime:setBase90, datetime:time, datetime:toLocal, datetime:toUTC, datetime:year, datetime:zone, tostring(datetime)