toJalali() public static method

Converts a Gregorian date to Jalali.
public static toJalali ( $gy, $gm, $gd ) : array
$gy
$gm
$gd
return array 0: Year 1: Month 2: Day
Esempio n. 1
0
 public function testToJalali()
 {
     $this->assertTrue(jDateTime::toJalali(2016, 5, 7) === [1395, 2, 18]);
     $this->assertFalse(jDateTime::toJalali(2015, 5, 7) === [1394, 2, 18]);
 }