Formats and returns given timestamp just like php's
built in date() function.
e.g:
$obj->date("Y-m-d H:i", time());
$obj->date("Y-m-d", time(), false, false, 'America/New_York');
public static date ( $format, $stamp = false, $convert = null, $jalali = null, $timezone = null ) : string | ||
$format | string Acceps format string based on: php.net/date | |
$stamp | int Unix Timestamp (Epoch Time) | |
$convert | bool (Optional) forces convert action. pass null to use system default | |
$jalali | bool (Optional) forces jalali conversion. pass null to use system default | |
$timezone | string (Optional) forces a different timezone. pass null to use system default | |
return | string | Formatted input |