Skip to content

Instantly share code, notes, and snippets.

@leblanc-simon
Created April 23, 2014 22:55
Show Gist options
  • Save leblanc-simon/11235366 to your computer and use it in GitHub Desktop.
Save leblanc-simon/11235366 to your computer and use it in GitHub Desktop.
Simple date visualisation
<?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