Morilog\Jalali\jDateTime::toGregorian PHP Method

toGregorian() public static method

Converts a Jalali date to Gregorian.
public static toGregorian ( integer $jy, integer $jm, integer $jd ) : array
$jy integer
$jm integer
$jd integer
return array 0: Year 1: Month 2: Day
    public static function toGregorian($jy, $jm, $jd)
    {
        return self::d2g(self::j2d($jy, $jm, $jd));
    }

Usage Example

Example #1
0
 public function testToGregorian()
 {
     $this->assertTrue(jDateTime::toGregorian(1395, 2, 18) === [2016, 5, 7]);
     $this->assertFalse(jDateTime::toGregorian(1394, 2, 18) === [2015, 5, 7]);
 }
All Usage Examples Of Morilog\Jalali\jDateTime::toGregorian