You are here

function date in PersianTools 7

File

includes/Date.php, line 634

Namespace

Shamsi

Code

function date($format, $timestamp = 0, $decorate = true) {
  $jalali = new Date();
  return $jalali
    ->format($format, $timestamp, $decorate);
}