Branch: Tag:

2001-01-11

2001-01-11 18:49:22 by Johan Sundström <oyasumi@gmail.com>

Lighter code.

Rev: lib/modules/Calendar.pmod/YMD.pmod:1.28

2761:       if (strlen(day)==4) catch { return parse("%M/%D",day/2*"/",context); };    -  if (day=="today") return context?context->day():t; -  if (day=="tomorrow") return (context?context->day():t)+1; -  if (day=="yesterday") return (context?context->day():t)-1; +  if (day=="today") return t; +  if (day=="tomorrow") return t+1; +  if (day=="yesterday") return t-1;    if (sscanf(day,"last %s",day))    {    cDay d=dwim_day(day);