JDate::__construct
Constructor.
Signature
public function __construct([string
$date = 'now',
[mixed
$tz = null]] )
Parameters
-
$date
- String in a format accepted by strtotime(), defaults to "now".
-
$tz
- Time zone to be used for the date. Might be a string or a DateTimeZone object.