now (Current client date and time)

Prev Next

The function $now() returns the current client date and time with time zone as new DateTime object.

â–ºNOTEâ—„ $now() is not a constant and retrieves the current time and date at each call anew. Thus, the following expression '$now() $now()' could list two different times with for example 1 millisecond difference.

Tooltip

Syntax: $now()

Syntax

$now()

Parameter

None.

Return value

The current client date and time with time zone as a new DateTime object.