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

clock.currentDateTime, clock.newDateTime, clock.setDateTime, clock.tzget, clock.tzset, datetime(), 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:toLocal, datetime:toUTC, datetime:year, datetime:zone, tostring(datetime)