Branch: Tag:

2004-08-19

2004-08-19 12:31:55 by Fredrik Noring <noring@nocrew.org>

Make dwim_day throw an error as documented. Thanks to Fredrik Noring.

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

2897:    else return (d->week()+1)->place(d);    }    -  if (sizeof(day)==4) catch { return parse("%M/%D",day/2*"/",context); }; +  if (sizeof(day)==4) +  catch { +  d = parse("%M/%D",day/2*"/",context); +  if(d) return d; +  };       if (day=="today") return t;    if (day=="tomorrow") return t+1;