Skip to content

Instantly share code, notes, and snippets.

Created April 23, 2014 22:55
What would you like to do?
Simple date visualisation
$now = time();
setlocale(LC_TIME, 'fr_FR.utf8','fra');
$french_date = strftime('%A %d %B %Y %T', $now);
?><!DOCTYPE html>
<html lang="fr">
<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>
<h1><?php echo $french_date ?></h1>
<h2><?php echo date('Y-m-d H:i:s', $now) ?></h2>
<h2><?php echo $now ?></h2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment