Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Afficher les date en plusieurs formats

 date
{filelink=15260}

<?php

  $time = time();
  $formats = array(
                    'U',
                    'r',
                    'c',
                    'l, F jS, Y, g:i A',
                    'H:i:s D d M y',
                    'm/j/y g:i:s a O (T)'
                  );

  foreach($formats as $format)
  {
    print ("<p><b>$format</b>: "
    . date($format)). "</p><br />";
  }
?>

No comments yet.

Leave a Comment