The Official EHTML Page - Code TIME

To Display The Current Time In Your EHTML Page


The <TIME> code under EHTML displays the current system time embedded within your document.


Setup

The <TIME> code does not require any special setup to be used. You merely embed the code within your EHTML document.

tcsh: getwd: can't open .. tcsh: Trying to start from "/"

Example

URL: http://vaxxine.com/vaxxweb/ehtml/ehd_default.eht
Options: Execute Page


<html>

<head>
<title> VaxxWeb - The EHTML Demo Page - MadeUp, Inc. </title>
</head>

<body>

<a name="start"></a>

<!-- This section creates log files of all types for this page.  You   -->
<!-- would normally choose one way, not all of them.  As well, we      -->
<!-- create a counter for later display.                               -->

<LOG ehd_default>
<DATELOG ehd_default load default page>
<LOCLOG ADD ehd_default>
<COUNTER ADD ehd_default>

<!-- Standard HTML stuff.  Every page should have a proper header      -->

<h1> MadeUp, Inc. </h1>
<h2> Niagara's Source For Widgets! </h2>

<!-- Let's add the location the client is coming from to make them     -->
<!-- feel special. :)                                                  -->

<strong> Visitors from <LOCATION> are always welcome! </strong>

<!-- This section makes use of the EHTML <IF> structure to show custom -->
<!-- messages depending on where a client is loading from.  The EXIT   -->
<!-- code terminates the page if it finds and ICNer.                   -->

<p>
 <strong>

<IF %LOCATION% == *.vaxxine.com>
 Remember:  Vaxxine Users receive 10% off all Widget purchases!
<ELSEIF %LOCATION% == *.niagara.com>
 Sorry, but your system administrators want to surcharge every widget we
 sell to an ICNer.  We can't afford their prices, how can you?
 <EXIT>
<ELSE>
 Deal of the month:  5% off all Widget purchases!
<ENDIF>

 </strong>
</p>

<hr>

<!-- Show our Message Of The Day, which is a special that changes from  -->
<!-- month to month.                                                    -->

<p>
 <MOTD ehd_default>
</p>

<!-- We usually want to display a counter that we create.  Otherwise it -->
<!-- may be a useless counter!  We'll show some more information to     -->
<!-- make the effect better.                                            -->

<hr>

<p align=center>

 As of <DATE>, <TIME>, you are visitor # <COUNTER DISPLAY ehd_default> to 
  this page!

 <!-- We display our standardized footer for our page.  This way, if   -->
 <!-- we ever change the footer, we only have to change it in one file -->

 <DISPLAY ehd_default.disp>

 <!-- We might as well use the chance to promote ourselves a little   -->
 <!-- more by adding a random plug.  This makes for a better effect   -->
 <!-- than having the same old plug each time.                        -->

 <COOKIE ehd_default>

</p>


</body>
</html>


[ EHTML Overview | EHTML Setup | EHTML Codes | EHTML Problems ]
Please Report Problems With This Page To: Vaxxine Web Development, vaxxweb@vaxxine.com


Original EHTML documentation by RK. EHTML originally designed by JP, updates by RK.