1151e22610
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.
44 lines
1.4 KiB
PHP
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>
|