Home  Contents

datetime:time

Date/Time Core4 Lua Commands

SYNOPSIS

d = datetime:time()

DESCRIPTION

Returns the time part of datetime as a new time instance.

ERRORS

Raises an error if date is not a datetime instance.

EXAMPLE

>  >  >  > 
dt = clock.currentDateTime() d = dt:date() t = dt:time() print(d, t)
2009-08-06 10:33:41

SEE ALSO