Home Contents | # time:set | Date/Time | Core4 Lua Commands

## SYNOPSIS

time::set([hour[, minute[, second[, millisecond]]]])

## DESCRIPTION

Changes the stored time value. Values that are not specified or passed as nil are not changed.

## ERRORS

Raises an error if time is not a time instance.

## EXAMPLE

> >
t = clock.newTime(10, 30, 0) print(t)
10:30:00
> >
t:set(nil, 40) print(t)
10:40:00

## SEE ALSO

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