is_timeval

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

This function does not generate a change.

Function

is_timeval(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_timeval( timeval(2013, 2, 6) ),
    is_timeval( datetime(2013, 2, 6) ),
];

Return value in JSON format

[
    true,
    false
]