D
David Graham
Hi
I have asked this question in alt.php as the time() function as used in
setcookie belongs to php - or does it belong equally in the javascript
camp - bit confused about that. Anyway, can anyone here put me straight on
the following:
I had a look at the time() function came across this:
"To clarify, it seems this function returns the time of the computer's clock
and does not do any timezone adjustments to return GMT, so you are given the
local time. The description says that it's supposed to return the number of
seconds from 1970 12am GMT, when the seconds are actually counted from 12am
in the computer's local time.
Hope it saves some confusion. "
This seems to be saying that the time() function retreaves the date in
seconds from 1970 12a.m from the users pc clock. This is great for me, it
means I don't need to worry about time zones. My cookie will expire in
60seconds (time() + 60) regardless of where the user lives. Have I
interpreted things correctly?
thanks
David
I have asked this question in alt.php as the time() function as used in
setcookie belongs to php - or does it belong equally in the javascript
camp - bit confused about that. Anyway, can anyone here put me straight on
the following:
I had a look at the time() function came across this:
"To clarify, it seems this function returns the time of the computer's clock
and does not do any timezone adjustments to return GMT, so you are given the
local time. The description says that it's supposed to return the number of
seconds from 1970 12am GMT, when the seconds are actually counted from 12am
in the computer's local time.
Hope it saves some confusion. "
This seems to be saying that the time() function retreaves the date in
seconds from 1970 12a.m from the users pc clock. This is great for me, it
means I don't need to worry about time zones. My cookie will expire in
60seconds (time() + 60) regardless of where the user lives. Have I
interpreted things correctly?
thanks
David