Branch: Tag:

2001-05-18

2001-05-18 08:35:05 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

added better dwim for am/pm

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

2476:    {   // nfmt=replace(fmt," %","%*[ \t]%"); // whitespace -> whitespace   #define ALNU "%[^- -,./:-?[-`{-¿]" - #define AMPM "%[ampAMP]" + #define AMPM "%[ampAMP.]"   #define NUME "%[0-9]"   #define ZONE "%[-+0-9A-Za-z/]"    nfmt=replace(fmt,
2642:       if (!zero_type(m->p))    { -  switch (lower_case(m->p)) +  switch (lower_case(m->p)-".")    {    case "am":    if (h==12) h=0;