Home  Contents

datetime:isNull

Date/Time Core4 Lua Commands

SYNOPSIS

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

DESCRIPTION

datetime:isNull() checks if datetime is null (0000-00-00T00:00:00), which is also an invalid date/time.

date:isValid() checks if datetime is a valid value.

RETURN VALUE

A boolean indicating the success of the check.

ERRORS

Raises an error if datetime is not a datetime instance.

EXAMPLE

>  > 
dt = clock.newDateTime() print(dt:isNull(), dt:isValid())
true false

SEE ALSO