On 12-04-11 11:20, Mirar @ Pike developers forum wrote:
Or just do ->day(x)->minute(y) or so. :)
Yes, but Calendar.Day()->day(-2)->minute(460); for example doesn't work.
(At least in 7.8.352):
Calendar.Day()->day(-2)->minute(460);
Not in range (Day 1..1 exist). /usr/lib/pike7.8/modules/Calendar.pmod/YMD.pike:818: Day(Tue 12 Apr 2011)->day(0)
HilfeInput:1: HilfeInput()->___HilfeWrapper()
No. I didn't know negative days were involved. Indices like that can only be used inside the timerange in question.
There's other solutions for the above problem too, like
Calendar.Day(Calendar.Day()->julian_day()-2)->minute(480);
(15) Result: Minute(Sun 10 Apr 2011 8:00 CEST)
pike-devel@lists.lysator.liu.se