Welcome to WebmasterWorld Guest from 54.162.19.123

Forum Moderators: phranque

Message Too Old, No Replies

Time Script

keep it simple please!

     
4:21 pm on Dec 1, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:May 29, 2000
posts:649
votes: 0


I need a simple script to add the time to one of my sites. Does anyone have one I could use?
4:35 pm on Dec 1, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 10, 2000
posts:2151
votes: 0


If can use SSI on your page you can drop the time in simply with this:

<!--#config timefmt="%H:%M" --> <!--#echo var="DATE_LOCAL" -->
it will give time like: 12:30

There a whole host of switches to determine how the date displays. Nice summary here [htmlite.com].

5:34 pm on Dec 1, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:May 29, 2000
posts:649
votes: 0


Thanks, Oilman!
9:15 pm on Dec 1, 2001 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 4, 2001
posts:2201
votes: 34


Oilman,

I'm really clueless when it comes to SSI and inserting the script you mentioned. Does it have to be enclosed within <script language="">the script</script> and if so, what would it say? Thanks.

11:39 pm on Dec 1, 2001 (gmt 0)

Full Member

10+ Year Member

joined:Mar 19, 2001
posts:220
votes: 0


You enter the code, exactly as Oilman has it shown, anywhere on the page.
11:44 pm on Dec 1, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member heini is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Jan 31, 2001
posts:4404
votes: 0


Marshall, the link oilman provided is really most useful. Gives you the very basics on SSI.
If it doesn´t work - try renaming your file to shtml. Many hosts require that extension. Spent hours scratching my head before I found out that one.
12:21 am on Dec 2, 2001 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 4, 2001
posts:2201
votes: 34


I already bookmarked the link. Doesn't surprise me about the SHTML extension. Thanks everyone.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members