Branch: Tag:

2008-01-27

2008-01-27 09:32:14 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Year now supports creation straight from time ranges where the first day of the range isn't on the same year as the timerange itself (ie weeks).

Rev: lib/modules/Calendar.pmod/YMD.pike:1.26

1110:   //! method void create("julian",int|float julian_day)   //! method void create(int year)   //! method void create(string year) + //! method void create(TimeRange range)   //! It's possible to create the standard year   //! by using three different methods; either the normal   //! way - from standard unix time or the julian day,
1256:       static void convert_from(TimeRange other)    { +  if (other->y) +  create(other->y); +  else    ::convert_from(other);    if (other->number_of_years)    n=other->number_of_years();