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