From d2575b7edbed88f9ecfee7598dfd5dfb3643475b Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 7 Nov 2018 17:57:54 +0100 Subject: [PATCH] romme-calendar: add date_romme Add a function to get the romme string from the current date. --- exemple.php | 1 + romme-calendar.php | 4 ++++ 2 files changed, 5 insertions(+) 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.