homepage Welcome to WebmasterWorld Guest from 50.17.86.12
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Time Script
keep it simple please!
Jill

10+ Year Member



 
Msg#: 640 posted 4:21 pm on Dec 1, 2001 (gmt 0)

I need a simple script to add the time to one of my sites. Does anyone have one I could use?

 

oilman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 640 posted 4:35 pm on Dec 1, 2001 (gmt 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].

Jill

10+ Year Member



 
Msg#: 640 posted 5:34 pm on Dec 1, 2001 (gmt 0)

Thanks, Oilman!

Marshall

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 640 posted 9:15 pm on Dec 1, 2001 (gmt 0)

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.

mdharrold

10+ Year Member



 
Msg#: 640 posted 11:39 pm on Dec 1, 2001 (gmt 0)

You enter the code, exactly as Oilman has it shown, anywhere on the page.

heini

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



 
Msg#: 640 posted 11:44 pm on Dec 1, 2001 (gmt 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.

Marshall

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 640 posted 12:21 am on Dec 2, 2001 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved