/** * @covers \Fivedots\NepaliCalendar\Calendar::englishToNepali() * @throws \Fivedots\NepaliCalendar\CalendarException */ public function testEnglishToNepaliDate() { $date = $this->calendar->englishToNepali(2014, 12, 31); $this->assertInternalType('array', $date); $this->assertSame($this->enToNepali, $date); }
<?php require __DIR__ . '/vendor/autoload.php'; $calendar = new Fivedots\NepaliCalendar\Calendar(); // Get English to Nepali converted date print_r($calendar->englishToNepali(2015, 1, 1)); // Get Nepali to English converted date print_r($calendar->nepaliToEnglish(2071, 9, 17));