Branch: Tag:

2003-03-13

2003-03-13 02:18:43 by Martin Nilsson <mani@lysator.liu.se>

No imports. Autodoced.

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.8
Rev: lib/modules/Calendar.pmod/ISO.pmod:1.8
Rev: lib/modules/Calendar.pmod/Islamic.pmod:1.8
Rev: lib/modules/Calendar.pmod/Julian.pmod:1.9
Rev: lib/modules/Calendar.pmod/Stardate.pmod:1.10
Rev: lib/modules/Calendar.pmod/Swedish.pmod:1.7
Rev: lib/modules/Calendar.pmod/Time.pmod:1.24
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.23
Rev: lib/modules/Calendar.pmod/YMD.pike:1.2

1: - //! - //! module Calendar - //! submodule Gregorian - //! - //! This is the standard conservative christian calendar, - //! used regularly in some countries - USA, for instance - and - //! which derivate - <ref>the ISO calendar</ref> - is used - //! in most of europe. - //! -  +    #pike __REAL_VERSION__    - import "."; - inherit YMD:YMD; + //! This is the standard conservative christian calendar, + //! used regularly in some countries - USA, for instance - and + //! which derivate - the @[ISO] calendar - is used in most of + //! Europe.    -  + inherit .YMD:YMD; +    #include "constants.h"      string calendar_name() { return "Gregorian"; }
88:    case 12: return ({y,m,31,335+year_leap_year(y)});    }    -  error("month out of range\n"); +  error("Month out of range.\n");   }      static array(int) month_from_yday(int y,int yd)
112:    case 305..334: return ({11,yd-304,30,305+year_leap_year(y)});    case 335..365: return ({12,yd-334,31,335+year_leap_year(y)});    } -  error("yday out of range\n"); +  error("yday out of range.\n");   }      static array(int) week_from_julian_day(int jd)