Calendar->set_timezone() does not seem to apply to unix_time() at present. Is this intentional? The two operations below should IMO return the same number:
Pike v7.3 release 58 running Hilfe v3.5 (Incremental Pike Frontend)
Calendar.TimeRange t = Calendar.Second(); t->unix_time() + t->utc_offset();
(1) Result: 1036154266
t->set_timezone("UTC")->unix_time();
(2) Result: 1036157866
Or are those integers time zone independent, as in defined in UTC? *hopes*
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Previous text:
2002-11-01 14:43: Subject: unix_time and UTC
Calendar->set_timezone() does not seem to apply to unix_time() at present. Is this intentional? The two operations below should IMO return the same number:
Pike v7.3 release 58 running Hilfe v3.5 (Incremental Pike Frontend)
Calendar.TimeRange t = Calendar.Second(); t->unix_time() + t->utc_offset();
(1) Result: 1036154266
t->set_timezone("UTC")->unix_time();
(2) Result: 1036157866
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Seems so. Now I'll sleep better at night. ;-)
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Previous text:
2002-11-01 14:45: Subject: unix_time and UTC
Or are those integers time zone independent, as in defined in UTC? *hopes*
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Seems so. Now I'll sleep better at night. ;-)
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Previous text:
2002-11-01 14:45: Subject: unix_time and UTC
Or are those integers time zone independent, as in defined in UTC? *hopes*
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Or are those integers time zone independent, as in defined in UTC? *hopes*
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Previous text:
2002-11-01 14:43: Subject: unix_time and UTC
Calendar->set_timezone() does not seem to apply to unix_time() at present. Is this intentional? The two operations below should IMO return the same number:
Pike v7.3 release 58 running Hilfe v3.5 (Incremental Pike Frontend)
Calendar.TimeRange t = Calendar.Second(); t->unix_time() + t->utc_offset();
(1) Result: 1036154266
t->set_timezone("UTC")->unix_time();
(2) Result: 1036157866
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
pike-devel@lists.lysator.liu.se