44 lines
1.2 KiB
PHP
44 lines
1.2 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>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>
|