The Calendar class in Pike (http://pike.roxen.com) is really powerful, but very complex. I needed to parse a time and find out the number of days since 1 Jan 1970. This is what I came up with:
> object b=Calendar.dwim_day(“1 jan 1970”);
Result: Day(Thu 1 Jan 1970)
Result: Day(Mon 5 Dec 2011)
I need to find the way to create the 2 dates and get the number of days between them.