PHP Classes

File: realhour_test.php

Recommend this page to a friend!
  Classes of Pierre FAUQUE   PHP Real Time Hour Class   realhour_test.php   Download  
File: realhour_test.php
Role: Example script
Content type: text/plain
Description: Example of use
Class: PHP Real Time Hour Class
Get the real time according to the day of the year
Author: By
Last change:
Date: 1 year ago
Size: 845 bytes
 

Contents

Class file image Download
<?php
require("class.realhour.php");
$h = new realhour();
?><!DOCTYPE html>
<html>

<head>

  <meta name="author" content="Pierre FAUQUE, pierre@fauque.net">
  <title>Test: class.realhour.php</title>

  <style type="text/css">
    body { margin-left:2em; margin-top:2em; }
    h1 { font-family:times; font-size:20pt; font-style:italic; color:#000080; }
  </style>

</head>

<body>

<h1>Demonstartion of the realhour Class</h1>

<?php
echo "At this very moment we are on :<br/>&nbsp;<br/>\n";

echo
"&mdash; ".$h->now("m/d/Y H:i:s")." (Standard English writing)<br/>\n";
echo
"&mdash; ".$h->now("m/d/Y \a\\t H:i:s")." (English writing)<br/>&nbsp;<br/>\n";

echo
"&mdash; ".$h->now()." (Standard French writing)<br/>\n";
echo
"&mdash; ".$h->now("d/m/Y ? H:i:s")." (French writing)<br/>\n";
?>

</body>

</html>