2026-12-01T19:04:20+01:00
2026-12-01 19:04:20
01/12/2026 19:04
20261201190420
1796148260
6b0f0c24
6B0F0C24
MTc5NjE0ODI2MA==
tpdov8
1796148260.6814
20261201190420681374

<?php

/**
 * @file date_iso.php
 * @brief Affiche la date courante au format ISO 8601 et autres
 * Exemple: 06-03-30T16:15:55+02:00
 * @author hughes monget
 * @see http://monget.com/
 */

header('Pragma: no-cache');
header('Cache-Control: no-cache');
ini_set('date.timezone', 'Europe/Paris');

$int_now = time();

echo 
'<pre>';
echo 
date('c', $int_now),"\n";
echo 
date('Y-m-d H:i:s', $int_now),"\n";
echo 
date('d/m/Y H:i', $int_now),"\n";
echo 
date('YmdHis', $int_now),"\n";
echo 
$int_now,"\n";
echo 
sprintf("%x", $int_now),"\n";
echo 
sprintf("%X", $int_now),"\n";
echo 
base64_encode($int_now),"\n";
echo 
base_convert($int_now, 10, 36),"\n";
$int_precision = 6;
$flo_stamp = microtime(TRUE);
echo 
$flo_stamp,"\n";
echo (
date('YmdHis', $flo_stamp).substr(number_format($flo_stamp, $int_precision), -$int_precision)),"\n";

echo 
'</pre>';

echo 
'<hr />';
highlight_file(__FILE__);

?>