pike.git / lib / modules / Calendar.pmod / CHANGES

version» Context lines:

pike.git/lib/modules/Calendar.pmod/CHANGES:181:    string week_name() - "w42", "v42"    string year_name() - "2000", "437 BC"       int leap_year() - 1 if year is leap year       int|float julian_day() - julian day    int unix_time() - unix time       which should solve the problem better.    + ---------------------------------------------------------------- +  + Comparison: +  a <= b, a >= b should no longer be used other then for +  very known cases. Since Calendar II adds more complex +  timerange objects, it is much better to ask exactly +  what you want to measure: +  +  case predicates +  +  <-- past future -> +  +  |----A----| A strictly preceeds B, +  |----B----| A preceeds B +  +  |----A----| A strictly preceeds B, A preceeds B, +  |----B----| A is previous to B, A touches B +  +  |----A----| A preceeds B, +  |----B----| A overlaps B, A touches B +  +  |-------A-------| A preceeds B, A ends with B +  |----B----| A overlaps B, A contains B, A touches B, +  +  |-------A-------| A preceeds B, A succeeds B, +  |---B---| A overlaps B, A contains B, A touches B +  +  |----A----| A overlaps B, A touches B +  |----B----| A equals B, A starts with B, A ends with B +  +  |-------A-------| A succeeds B, A starts with B +  |----B----| A overlaps B, A contains B, A touches B +  +  |----A----| A succeeds B, +  |----B----| A overlaps B, A touches B +  +  |----A----| A strictly succeeds B, A succeeds B +  |----B----| A is next to B, A touches B +  +  |----A----| A strictly succeeds B, +  |----B----| A succeeds B +  +  +  These are used like, for instance, +  A->succeeds(B) or A->ends_with(B); +  +  Ie, to test if the beginning of A is before +  or at the beginning of B, use +  +  A->preceeds(B) || A->starts_with(B) +    ================================================================      Depricated and removed:       Calendar.Swedish and Calendar.Austrian is to be    replaced by the language rules. Those still exist    for backwards compatibility issues.       Orthodox is removed; it was based on something    that never was accepted. The Orthodox church still    uses the julian calendar to calculate the holidays;    but the holidays are better calculated using the    Events sub-module.      ================================================================