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

## SYNOPSIS

1. flag = time:isNull()
2. flag = time:isValid()

## DESCRIPTION

time:isNull() checks if time is null (midnight = 00:00:00.000).

time:isValid() checks if time is in the valid range of 00:00:00.000 and 23:59:59.999.

## RETURN VALUE

A boolean indicating the success of the check.

## ERRORS

Raises an error if time is not a time instance.

## EXAMPLE

> > >
t1 = clock.newTime() t2 = clock.newTime(99) print(t1:isNull(), t1:isValid(), t2:isValid())
true true false

## SEE ALSO

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