httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Banan...@grabbarna.nu>
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?

/JB


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message