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:3130:
{ // werror("try: %O\n %O\n", // dayformat+"%*[ ,]"+todformat, // todformat+"%*[ ,]"+dayformat); if (dayformat=="") { if ( (t=parse(todformat+"%*[ ]%n",what,cx)) ) return t; } else {
-
if ( (t=parse(dayformat+"%*[ ,:]"+todformat,what,cx)) ) return t;
+
if ( (t=parse(dayformat+"%*[ ,:
T
]"+todformat,what,cx)) ) return t;
if ( (t=parse(todformat+"%*[ ,:]"+dayformat,what,cx)) ) return t; } } error("Failed to dwim time from %O\n",what); } // Parses time according to HTTP 1.1 (RFC 2616) HTTP-date token. TimeofDay http_time(string what, void|TimeRange cx) {