realcoder — 2010-10-08T17:29:13-04:00 — #1
i need user side time which become actally in his country or on his computer.. actually which function i use & how thanks when he post any forum on my site etc
paul_wilkins — 2010-10-09T05:25:54-04:00 — #2
The date object is what you would use. His client will provide his client-side time/date. You can place that info in a hidden field of the form that he submits.
Notice that there's no guarantee that you will obtain a correct time and date. You might have 1980 for the year, or 2038, depending on how the client's computer is set up.
You may just want to get their time zone offset, so that you can apply that to the server time and date.
realcoder — 2010-10-09T13:30:42-04:00 — #3
well date object did not give us user local time that give server side time on which time that script run on server that time
paul_wilkins — 2010-10-09T18:23:48-04:00 — #4
Are you saying that this did not give you what is written in the documentation?
Returns the hour (0-23) in the specified date according to local time.