Simple date visualisation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$now = time(); | |
setlocale(LC_TIME, 'fr_FR.utf8','fra'); | |
$french_date = strftime('%A %d %B %Y %T', $now); | |
?><!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>What time is it ?</title> | |
<style type="text/css">html,body{margin:0;padding:0;text-align:center;font-family:monospace}h1{font-size:5.5em;padding-top:2.5em}h2{font-size:4em;padding-top:1.5em;}</style> | |
</head> | |
<body> | |
<h1><?php echo $french_date ?></h1> | |
<h2><?php echo date('Y-m-d H:i:s', $now) ?></h2> | |
<h2><?php echo $now ?></h2> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment