diff --git a/exemple.php b/exemple.php index ee3891e..af16ced 100644 --- a/exemple.php +++ b/exemple.php @@ -36,6 +36,7 @@ $testJulianday = gregoriantojd($testMois, $testJour, $testAnnee);

jdtoromme :
gregoriantoromme :
+ date_romme :

Getting the month/day/year

diff --git a/romme-calendar.php b/romme-calendar.php index 20a9f49..e92464a 100644 --- a/romme-calendar.php +++ b/romme-calendar.php @@ -118,6 +118,10 @@ function gregoriantoromme($m, $d, $y) { return $romme_date_string; } +function date_romme() { + return gregoriantoromme(date('n'), date('j'), date('Y')); +} + /* 2. getting the romme array These functions report an array instead of the romme string.