I was thinking it'd be nice to be able to (en|de)code Calendar
objects, but sadly, that doesn't appear to be possible:
int main()
{
object x = Calendar.Second();
string y = encode_value(x);
werror("%O\n", x);
sleep(3);
werror("%O\n", decode_value(y));
return 0;
}
Cannot find Second(Thu 4 Oct 2007 8:40:34 EDT) in ISO.
/usr/local/pike/7.7.34/lib/master.pike:4118: master()->find_index
(ISO,Second(Thu 4 Oct 2007 8:40:34 EDT),UNDEFINED)
/usr/local/pike/7.7.34/lib/master.pike:4311: master()->nameof
(@0=Second(Thu 4 Oct 2007 8:40:34 EDT),UNDEFINED)
test.pike:4: /main()->main()
Now, I'm pretty sure that Calendar.ISO.Second exists, but I know
there's a lot of black magic in the Calendar module, so I'm not even
sure where to begin. Anyone have any suggestions?
Bill