Home Contents | # Current Values | Date/Time | Core4 Lua Commands

## SYNOPSIS

1. n = datetime:hour()
2. n = datetime:minute()
3. n = datetime:second()
4. n = datetime:msec()
5. n = datetime:year()
6. n = datetime:month()
7. n = datetime:day()
8. n = datetime:dayOfWeek()
9. n = datetime:dayOfYear()
10. n = datetime:weekNumber()

## DESCRIPTION

This set of functions is used to query the broken down component values of a datetime. Please see the documentation of the time and date classes.

## ERRORS

Raises an error if date is not a datetime instance.

## SEE ALSO

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