Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Date & Time

Quote Reply
Date & Time
Hello, a basic question, hope you don't mind me asking...

What do I include on my HTML templates so today's time and date appears on my pages ?
I would like to use the long version... (Sunday, December 5, 1999)

I've tried %date% and %DATE% but nothing happened ??

Thank you//

------------------
P.Espinoza
Qdice.com
Quote Reply
Re: Date & Time In reply to
You need to use the following tags:

Code:
<%date%> <%time%>

BTW: GO TO THE TEMPLATE HELP PAGES in the LINKS MANAGER where you will find tags that you can use in your template files.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Date & Time In reply to
Hi Elliot!

Dont't those codes just state the date or time that the page was updated. I think Patricio wants to show to a visitor the actual day and time.

Why I say this is as I use both <%date%> <%time%> and thats all they show up - when the page was updated.


------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory




Quote Reply
Re: Date & Time In reply to
Ian you are right, what I would like is to show the actual time and date to users qhen the visit the site.

So, would <%date%> and <%time%> do it ?
I'll try anyway, thank you !

------------------
P.Espinoza
Qdice.com
Quote Reply
Re: Date & Time In reply to
Hi Patricio!

All they will do is show the time the page was updated. There are java scripts around that will do exactly what you want. you can just insert these where you want the date and time to show up.

Check out the cgi resources web sites bound to find one.

Added later!

Just a thought - Alex has a script running on his main index which you can download. it gives a greeting and the date and time. it is a nice script and I had it running on my site for a while. Check the resource centre under "Other scripts" Personalised Greeting. That should meet your need.


HTHs

------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory






[This message has been edited by Ian Conza (edited December 06, 1999).]
Quote Reply
Re: Date & Time In reply to
If you have SSI, you can use this on all but .cgi pages (modify, search, etc.)

<!--#config timefmt="%A, %B %e, %Y" -->
<!--#echo var="DATE_LOCAL" -->

Quote Reply
Re: Date & Time In reply to
Hi Ian!

Where can I pick up this script Alex has on the index page and what is it called?

By the way, how does it identify where are you visiting from?

Quote Reply
Re: Date & Time In reply to
Ian,

I found the script. But I can't figure out how to include it into my index.htm page. Can you please explain!
Quote Reply
Re: Date & Time In reply to
you have to call the program with SSI

like:
<!--#exec cgi="/cgi-bin/something.cgi"-->

Of course, if all you wanted was just the date, like you posted, then the SSI command I posted previously does exactly that, in the format you wanted, without CGI.

[This message has been edited by lordmouse (edited December 07, 1999).]