PDA

View Full Version : PUtting the local time, date, temp/weather on my webpage


pengyou
11-24-2007, 09:08 AM
I once found a post on this forum that told me how to do some of this but I cannot find it now :(

I live in China, and while I ever so do appreciate people giving me a spontaneous phone call, it is not very well received when it is 3 a.m. my time. Because of this I would like to be able to put the local time, day and date on my website.

Also, not related to the first issue, I would like to put the temp and weather on my website.

Any ideas on how to do this?

The Wiz
11-24-2007, 09:47 AM
http://www.timeanddate.com/clocks/free.html Try here,:)

pengyou
11-24-2007, 05:35 PM
Thanks! That takes care of both the time and the date! Way cool! Is there any way I can modify the html code so that the date of the week appears on the top line and the date appears underneath, i.e. put a carriage return after the day of the week? The code I am using is:

<iframe src="http://free.timeanddate.com/clock/iryba4h/n33/tt1/tm2/td1" frameborder="0" width="161" height="18"></iframe>

Also, I cannot get the seconds to be hidden - they always display, even though I choose the option to not display them.

pinetree
11-28-2007, 05:43 PM
for me,
<iframe src="http://free.timeanddate.com/clock/is5q4lw/n158/fc900/tt0/tw1/tm1/th2/ts1" frameborder="0" width="207" height="18"></iframe>
does not show seconds, but the code below does.

So add /ts1 after /th2/ to eliminate seconds, I guess.

<iframe src="http://free.timeanddate.com/clock/is5q4lw/n158/fc900/tt0/tw1/tm1/th2" frameborder="0" width="227" height="18"></iframe>

pengyou
11-29-2007, 10:49 AM
Thanks! How about splitting the date up onto 2 lines?