pike.git / lib / modules / Calendar.pmod / YMD.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pmod:2754:       cDay t=context?context->day():Day();    if ( (d=parse("%e",day,context)) )    {    if (d>=t) return d;    else return (d->week()+1)->place(d);    }       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);    return (d->week()-1)->place(d);    }    if (sscanf(day,"next %s",day))    {    cDay d=dwim_day(day);    return (d->week()+1)->place(d);    }