Which hour is called '2' if there are more then one?
The first one, it seems, both according to constructor and parser. ;-)
Pike v7.5 release 5 running Hilfe v3.5 (Incremental Pike Frontend)
map(enumerate(5),Calendar.Day(2003,10,26)->hour);
(1) Result: ({ /* 5 elements */ Hour(Sun 26 Oct 2003 0:00 CEST), Hour(Sun 26 Oct 2003 1:00 CEST), Hour(Sun 26 Oct 2003 2:00 CEST), Hour(Sun 26 Oct 2003 2:00 CET), Hour(Sun 26 Oct 2003 3:00 CET) })
Calendar.parse("%Y-%M-%D %h:%m:%s %z","2003-10-26 02:00:00 CEST");
(2) Result: Second(Sun 26 Oct 2003 2:00:00 CEST)
Calendar.parse("%Y-%M-%D %h:%m:%s %z","2003-10-26 02:00:00 CET");
(3) Result: Second(Sun 26 Oct 2003 2:00:00 CEST)
/ Johan Sundström (folkskådare)
Previous text:
2003-03-30 14:23: Subject: Calendar failure
Absolutely. But when you construct it,
Calendar.Second(2003,3,30,2,0,0);
(7) Result: Second(Sun 30 Mar 2003 3:00:00 CEST)
do you want the second hour or the hour called '2'? Which hour called '2' if there are more then one?
/ Mirar