The last result might not be what you would expect though... :/
/ Mirar
Previous text:
2003-03-31 11:29: Subject: Calendar failure
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)