FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » browser time
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: browser time [message #173266 is a reply to message #173264] Thu, 31 March 2011 21:32 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
suresh wrote:
> thanks for the replies.
>
> I just wanted to write a greeting in my web page based on the local client time...like Good Morning/Afternoon/Evening...But I have no clue about javascript and let me see what to do now...
>

Oh ok..

Send the GMT to the client, and write a little bit of script to turn it
into local time, and pop it in to an empty div..

getTimeOffset() returns the number of *minutes* between browser time and
GMT.

According to my javascript manual..


> suresh
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mssql_select_db problem
Next Topic: relative v. absolute paths
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 16:36:11 GMT 2024

Total time taken to generate the page: 0.06265 seconds