add an exemple file

This commit is contained in:
Kazhnuz 2018-11-07 15:30:30 +01:00
parent abc1262176
commit 9495bfdbf2

43
exemple.php Normal file
View file

@ -0,0 +1,43 @@
<?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>gregorian2FrenchDateString :</strong> <?php echo gregorian2FrenchDateString(date('n'), date('j'), date('Y'));?><br />
<strong>gregorian2FrenchDateStringShort :</strong> <?php echo gregorian2FrenchDateStringShort(date('n'), date('j'), date('Y'));?><br />
</p>
</body>
</html>