Branch: Tag:

2000-08-25

2000-08-25 08:00:05 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

added dwim format: "Saturday, August 26, 2000 at 5:00PM EST"

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

2428:    else    low=m->day=cal->Day();    -  if (m->day && zero_type(m->Y) && m->e) +  if (m->day && zero_type(m->Y) && zero_type(m->y) && m->e)    if (m->month)    {    // scan for closest year that matches
2572:      array dwim_day_strings=   ({"%y-%M-%D (%*s) -W%W-%e (%e)", +  "%e%*[, ]%M%*[ ,]%D%*[ ,]%y",    "%D%*[ /]%M%*[- /,]%y",    "%M %D%*[- /,]%y",    "%e%*[, ]%D%*[a-z:]%*[ /]%M%*[-/ ,]%y",
2633:    "%h:%*[ :]%m%*[ :]%s",    "%h:%*[ :]%m %p",    "%h:%*[ :]%m", +  "%h%*[ ]%p",    "%[a-zA-Z.] %h:%*[ :]%m%*[ :]%s %p",    "%[a-zA-Z.] %h:%*[ :]%m%*[ :]%s",    "%[a-zA-Z.] %h:%*[ :]%m %p", -  "%[a-zA-Z.] %h:%*[ :]%m", }), +  "%[a-zA-Z.] %h:%*[ :]%m", +  "%[a-zA-Z.] %h%*[ ]%p", }),    string todformat )    foreach ( dwim_day_strings +    ({""}),