Roxen.git / server / etc / modules / Roxen.pmod

version» Context lines:

Roxen.git/server/etc/modules/Roxen.pmod:2611:    if (alternative_form) {    res += number2string(lt->mon+1,m,language(lang,"numbered_month",id));    } else {    res += number2string(lt->mon+1,m,language(lang,"month",id));    }    } else    res += ({ "January", "February", "March", "April", "May", "June",    "July", "August", "September", "October", "November", "December" })[lt->mon];    break;    case 'c': // Date and time +  // FIXME: Should be preferred date and time for the locale.    res += strftime(sprintf("%%a %%b %02d %02d:%02d:%02d %04d",    lt->mday, lt->hour, lt->min, lt->sec, 1900 + lt->year), t);    break;    case 'C': // Century number; 0-prefix    res += my_sprintf(prefix, "%02d", 19 + lt->year/100);    break;    case 'd': // Day of month [1,31]; 0-prefix    res += my_sprintf(prefix, "%02d", lt->mday);    break;    case 'D': // Date as %m/%d/%y
Roxen.git/server/etc/modules/Roxen.pmod:2704:    case 's': // Seconds since epoch.    res += my_sprintf(prefix, "%d", t);    break;    case 'S': // Seconds [00,61]; 0-prefix    res += my_sprintf(prefix, "%02d", lt->sec);    break;    case 't': // Tab    res += "\t";    break;    case 'T': // Time as %H:%M:%S -  case 'X': +  case 'X': // FIXME: Time in locale preferred format.    res += sprintf("%02d:%02d:%02d", lt->hour, lt->min, lt->sec);    break;    case 'u': // Weekday as a decimal number [1,7], Monday == 1    res += my_sprintf(prefix, "%d", 1 + ((lt->wday + 6) % 7));    break;    case 'U': // Week number of current year [00,53]; 0-prefix    // Sunday is first day of week.    res += my_sprintf(prefix, "%02d", 1 + (lt->yday - lt->wday)/ 7);    break;    case 'V': // ISO week number of the year as a decimal number [01,53]; 0-prefix    res += my_sprintf(prefix, "%02d", Calendar.ISO.Second(t)->week_no());    break;    case 'w': // Weekday as a decimal number [0,6], Sunday == 0    res += my_sprintf(prefix, "%d", lt->wday);    break;    case 'W': // Week number of year as a decimal number [00,53],    // with Monday as the first day of week 1; 0-prefix    res += my_sprintf(prefix, "%02d", ((lt->yday+(5+lt->wday)%7)/7));    break;    case 'x': // Date -  +  // FIXME: Locale preferred date format.    res += strftime("%a %b %d %Y", t);    break;    case 'y': // Year [00,99]; 0-prefix    res += my_sprintf(prefix, "%02d", lt->year % 100);    break;    case 'Y': // Year [0000.9999]; 0-prefix    res += my_sprintf(prefix, "%04d", 1900 + lt->year);    break;    case 'z': // Time zone as hour offset from UTC.    // Needed for RFC822 dates.    {    int minutes = lt->timezone/60;    int hours = minutes/60;    minutes -= hours * 60;    res += my_sprintf(prefix, "%+05d%", hours*100 + minutes);    }    break;    case 'Z': // FIXME: Time zone name or abbreviation, or no bytes if    // no time zone information exists -  +  break;    }    res+=key[1..];    break;    }    }    return replace(res, "\0", "%");   }      RoxenModule get_module (string modname)   //! Resolves a string as returned by get_modname to a module object if