public static function toJalali($gy, $gm, $gd) { return self::d2j(self::g2d($gy, $gm, $gd)); }
public function testToJalali() { $this->assertTrue(jDateTime::toJalali(2016, 5, 7) === [1395, 2, 18]); $this->assertFalse(jDateTime::toJalali(2015, 5, 7) === [1394, 2, 18]); }