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