c655ee5347
It make the string easier to use, as the day+month string helps more the user to see where he is in the romme year now.
44 lines
1.4 KiB
PHP
44 lines
1.4 KiB
PHP
<?php
|
|
//
|
|
// republicandate :: 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("republicandate.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>republicandate :: exemple.php</title>
|
|
</head>
|
|
<body>
|
|
<h1>republicandate :: exemple.php</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 gregorian2FrenchDateString($testMois, $testJour, $testAnnee);?><br />
|
|
<strong>gregorian2FrenchDateStringShort :</strong> <?php echo gregorian2FrenchDateStringShort($testMois, $testJour, $testAnnee);?><br />
|
|
|
|
</p>
|
|
</body>
|
|
</html>
|