is_datetime

This function determines whether the provided value is of type datetime.

This function does not generate an event.

Function

is_datetime(value)

Arguments

Argument Type Description
value any (required) The value to be tested.

Return value

Returns true if the given value is of type timeval, else false.

Example

This code shows some return values for is_utf8():

[
    is_datetime( timeval(2013, 2, 6) ),
    is_datetime( datetime(2013, 2, 6) ),
];

Return value in JSON format

[
    false,
    true
]