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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pike:2890:    if ( (d=parse(dayformat+"%n",day,context)) )    return d;       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 (sizeof(day)==4) catch { return parse("%M/%D",day/2*"/",context); }; +  if (sizeof(day)==4) +  catch { +  if (d = parse("%M/%D",day/2*"/",context)) return d; +  };       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))