hi,
why do %D, %M and %Y not work if they are placed directly next to each other?
i know that for yearmonthday i can use %d, but it seems a bit odd that the format specifiers can't be placed right next to each other.
and secondly, Calendar.YMD.Hour()->parse() is an odd place for the parse() docs, took me almost an hour to find that. (just kidding :-)
how could i move that so that it can be found at the top level?
greetings, martin.
While not a direct answer as to the exact cause, %D%M%Y isn't exactly well-defined, the way %D/%M/%Y would be, when it comes to deciding how many digits to eat for each part. If %2D%2M%Y was legal Calendar.parse formatting, it would be well-defined and be guaranteed to have at most one valid interpretation. (A patch that adds something like that would probably be well received.)
Until then, it's probably best to do that bit with sscanf, which does have this feature already.
Coming up with more properly organized refdocs for modules with as much magic business going on behind the scenes as the Calendar module is a challenge nobody has quite taken on yet, I think. It is probably doable, but probably also takes some work.
pike-devel@lists.lysator.liu.se