pike.git
/
lib
/
modules
/
Calendar.pmod
/
YMD.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Calendar.pmod/YMD.pike:419:
year_name()); } string format_http() { if (wd==CALUNKNOWN) make_week(); if (md==CALUNKNOWN) make_month(); return sprintf("%s, %02d %s %04d 00:00:00 GMT",
+
("SunMonTueWedThuFriSat"/3)[compat_week_day(wd)],
+
md,
+
("zzzJanFebMarAprMayJunJulAugSepOctNovDec"/3)[m],
+
((yd < 1)?y-1:y));
+
}
+
+
string format_ext_time_short()
+
{
+
if (wd==CALUNKNOWN) make_week();
+
if (md==CALUNKNOWN) make_month();
+
+
return
+
sprintf("%s, %02d %s %04d 00:00:00 GMT",
week_day_shortname(), month_day(),month_shortname(),year_no()); } string format_ymd() { if (m==CALUNKNOWN) make_month(); return sprintf("%04d-%02d-%02d",((yd < 1)?y-1:y),m,md); }