Diff for /parser3/src/classes/date.C between versions 1.78 and 1.79

version 1.78, 2008/02/14 10:11:16 version 1.79, 2008/02/14 10:46:01
Line 406  static void _unix_timestamp(Request& r, Line 406  static void _unix_timestamp(Request& r,
         }          }
 }  }
   
 static void _lastday(Request& r, MethodParams& params) {  static void _last_day(Request& r, MethodParams& params) {
         int year;          int year;
         int month;          int month;
         if(&r.get_self() == date_class) {          if(&r.get_self() == date_class) {
Line 444  MDate::MDate(): Methoded("date") { Line 444  MDate::MDate(): Methoded("date") {
   
         // ^date:lastday(year;month)          // ^date:lastday(year;month)
         // ^date.lastday[]          // ^date.lastday[]
         add_native_method("lastday", Method::CT_ANY, _lastday, 0, 2);          add_native_method("last-day", Method::CT_ANY, _last_day, 0, 2);
   
         // ^date.roll(year|month|day;+/- 1)          // ^date.roll(year|month|day;+/- 1)
         add_native_method("roll", Method::CT_DYNAMIC, _roll, 2, 2);          add_native_method("roll", Method::CT_DYNAMIC, _roll, 2, 2);

Removed from v.1.78  
changed lines
  Added in v.1.79


E-mail: