httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan>
Subject Re: [users@httpd] Count in SSI
Date Sun, 30 Mar 2003 16:53:34 GMT
> > I'm uisng SSI in a shtml-page for getting the current time with:
> >    <!--#config timefmt="%H%M%S" --><!--#echo var="DATE_LOCAL" -->
> > So the result may look like "181923". Of a certain reason I want to always
> > lower the time with two seconds... is that possible?
> > Eg 181923 -> 181921
> >    181901 -> 181859
> I don't think that this is possible with simple SSI. You may need to
> call some external program to do the math. Or you could just set your
> clock back 2 seconds, if that's really what you're trying to accomplish.
> I really think that your easiest route here would be to have Javascript
> do something with the number created by SSI.

Right now I have the clock set back two seconds to solve this but I think 
there must be a better way :-)
Anyway, is it possible to do math at all in SSI?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message