You are here

public static function jDateTime::toJalali in Persian Date for Drupal 8 8.4

Converts a Gregorian date to Jalali.

Parameters

$gy:

$gm:

$gd:

Return value

array 0: Year 1: Month 2: Day

1 call to jDateTime::toJalali()
jDateTime::date in src/Library/Jalali/jDateTime.php

File

src/Library/Jalali/jDateTime.php, line 26

Class

jDateTime
Class jDateTime @package Morilog\Jalali

Namespace

Drupal\persian_date\Library\Jalali

Code

public static function toJalali($gy, $gm, $gd) {
  return self::d2j(self::g2d($gy, $gm, $gd));
}