romme.php/exemple.php
Kazhnuz 1151e22610 rebrand librairy as a romme republican calendar converter
Rebrand entirely library as a romme republican calendar converting library, as it doesn't (and won't) handle other system of counting. It mean a change in function names, in order to make all more similar.
2018-11-07 16:54:12 +01:00

44 lines
1.4 KiB
PHP

<?php
//
// romme_calendar :: exemple.php
//
// Some exemple to see if everything works in the romme calendar library
//
//
// On commence par inclure le fichier pour pouvoir convertir la date en calendrier romme
include("romme-calendar.php");
$testMois = date('n');
$testJour = date('j');
$testAnnee = date('Y');
$testJulianday = gregoriantojd($testMois, $testJour, $testAnnee);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PHP Romme Republican Calendar exemple</title>
</head>
<body>
<h1>PHP Romme Republican Calendar exemples</h1>
<h2>Date d'aujourd'hui</h2>
<p>
<strong>Date utilisée :</strong> <?php echo $testJour;?>/<?php echo $testMois;?>/<?php echo $testAnnee;?><br />
<strong>Jour julien :</strong> <?php echo $testJulianday; ?> <br />
</p>
<h2>Test des différentes fonctions</h2>
<p>
<strong>jdtoromme :</strong> <?php echo jdtoromme( $testJulianday );?> <br />
<strong>gregoriantoromme :</strong> <?php echo gregoriantoromme($testMois, $testJour, $testAnnee);?><br />
<strong>gregorian2FrenchDateString :</strong> <?php echo gregoriantoromme_completeString($testMois, $testJour, $testAnnee);?><br />
<strong>gregorian2FrenchDateStringShort :</strong> <?php echo gregoriantoromme_simplerString($testMois, $testJour, $testAnnee);?><br />
</p>
</body>
</html>