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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pike:2695:         // #define NOCATCH   #ifndef NOCATCH    if (catch {   #else    werror("%O\n",m);   #endif    if (m->n && m->n!="") return 0;    -  string x; +     if (m->Y)    m->Y=default_rules->language[f_year_number_from_name](m->Y);       if (!zero_type(m->Y) && m->D && (int)m->M)    low=m->day=cal->Day(m->Y,(int)m->M,(int)m->D);          if (m->d)    {    int y,mo,d;
pike.git/lib/modules/Calendar.pmod/YMD.pike:2978:    {    cDay d=dwim_day(day);    return (d->week()+1)->place(d);    }       error("Failed to dwim day from %O\n",day);   }      TimeofDay dwim_time(string what,void|TimeRange cx)   { -  string a,h,m,s; +     TimeofDay t;      // #define COLON "$*[ :]"   #define COLON ":"   #define SPACED(X) replace(X," ","%*[ ]")       what = String.trim_all_whites(what);       if (sizeof(what)>12 &&    (t=parse(SPACED("%e %M %D %h:%m:%s %Y"),what,cx))) return t; // ctime