/** * Method for get now local or utc date */ public static function now($localtime = true) { //Get localtime $timestamp = time(); return DateTime::format_timestamp($timestamp, $localtime); }