- time: documentation ( source)
- print_r: documentation ( source)
- date_default_timezone_set: documentation ( source)
- date: documentation ( source)
<?php
date_default_timezone_set('America/Los_Angeles');
$time = time();
//Qcodo version
print_r(new Datetime(date('Y-m-d H:i:s', $time)));
//v3 version
print_r(new Datetime("@$time"));