There are various commands for getting date & time using html and SSI/shtml.
The commands don't all work the same way and which one you should use depends sometimes on the way they work.
Date & Time Commands:
These give the date & time of the source server, not the receiving server.
The reference is
SSI: Dates and Times.
Commands:
The version linked to this page is
.
The version linked to the current
Wikipedia year page is---well it would
be if this were an SSI page---all one gets here is:
">
.
The version linked to this page is---nix without an SSI page:
.
The original JavaScript command is
JavaScript: Today's Date.
This JavaScript command is the best one I've found.
I've modified it slightly---after much imprecation because of the unforgiving syntax.
The modified script is in
date_creamer.html.
The SSI (shtml) command is
The command is linked to this page. The result is for the receiving server.???
The JavaScript div insert
does NOT work!!!!
php require("/home/jeffery/public_html/astro/date/date_creamer.html");?>
The command is
The original JavaScript script came from
somewhere. I've lost track of it.
It has not been modified.
The command is
A second call in the same page gives
????. Nothing. The
Khatri JavaScript command
works once only per page. It's a bug, not a feature.
The original JavaScript script came from
Chirag S Khatri.
It has not been modified.
The intrinsic SSI/shtml date & times
can be used as parameters in html/shtml commands unlike the
JavaScript commands.
<!--#config timefmt="--"--><!--#echo var="DATE_LOCAL"-->
The codes for timefmt are given by
SSI: Dates and Times.
<!--#config timefmt="%Y"--><--#echo var="DATE_LOCAL"-->
to get year .
<!--#config timefmt="%Y %B %d, %A, %I:%M:%S:%p" --><!--#echo var="DATE_LOCAL" -->
to get---nix without an SSI page:
.
<!--#include virtual="/~jeffery/astro/date/date_creamer.html"-->
which gives
what is seen at
date_creamer.html.
Space/No space? There is a forced space at the end
of the date result.
<!--#include virtual="/~jeffery/astro/date/date_time_only_24h.html"-->
which gives---nix without an SSI page
,
which is linked to this page. The result is for the receiving server.
<!--#include virtual="/~jeffery/astro/date/date_time_only_khatri.html"-->
which gives---nix without an SSI page:
,
which is linked to this page. The result is for the receiving server.