Branch: Tag:

2004-12-15

2004-12-15 02:15:22 by Martin Nilsson <mani@lysator.liu.se>

Safer %O

Rev: lib/modules/Calendar.pmod/YMD.pike:1.11

2084:    switch (t)    {    case 'O': +  catch {    if (n!=1)    return sprintf("Day(%s)",nice_print_period());    return sprintf("Day(%s)",nice_print()); -  +  }; +  return sprintf("Day(%d)", unix_time());    case 't':    return "Calendar."+calendar_name()+".Day";    default: