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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pike:3277:   TimeofDay http_time(string what, void|TimeRange cx)   {    TimeofDay t;       constant date1 = "%D %M %Y"; // 2+1+3+1+4=11    constant date2 = "%D-%M-%y"; // 2+1+3+1+2=9    constant date3 = "%M %*[ ]%D"; // 2+1+2=5    constant time = "%h:%m:%s"; // 2+1+2+1+2=8       // 3+2+ 11 +1+ 8 +4 = 29 +  // RFC 1123 (and RFC 822 which it bases its timestamp format on) +  // supports more variations than we support here.    constant rfc1123_date = "%e, "+date1+" "+time+" %z";       // 6+2+ 9 +1+ 8 +4 = 33    constant rfc850_date = "%e, "+date2+" "+time+" %z";       // 3+1+ 5 +1+ 8 +1+4 = 23    constant asctime_date = "%e "+date3+" "+time+" %Y";       if( sizeof(what)<23 ) return 0;