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