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

## SYNOPSIS

1. n = time:hour()
2. n = time:minute()
3. n = time:second()
4. n = time:msec()

## DESCRIPTION

This set of functions is used to query the broken down component values of a time.

## RETURN VALUE

Returns the single components of a time as a number.

## ERRORS

Raises an error if time is not a time instance.

## EXAMPLE

> >
t = clock.newTime(10, 30, 0) print(t:hour(), t:minute())
10 30

## SEE ALSO

clock.currentTime, clock.newTime, time(), time:addMSecs, time:addSecs, time:format, time:isNull, time:isValid, time:millisecondsFromMidnight, time:minutesFromMidnight, time:msecsTo, time:secondsFromMidnight, time:secsTo, time:set, tostring(time)