| 174 return 0; |
174 return 0; |
| 175 } |
175 } |
| 176 } |
176 } |
| 177 |
177 |
| 178 |
178 |
| 179 time_t util_parse_creationdate(char *str) { |
179 time_t util_parse_creationdate(const char *str) { |
| 180 // parse a ISO-8601 date (rfc-3339) |
180 // parse a ISO-8601 date (rfc-3339) |
| 181 // example: 2012-11-29T21:35:35Z |
181 // example: 2012-11-29T21:35:35Z |
| 182 if(!str) { |
182 if(!str) { |
| 183 return 0; |
183 return 0; |
| 184 } |
184 } |
| 185 |
185 |
| 186 return parse_iso8601(str); |
186 return parse_iso8601(str); |
| 187 } |
187 } |
| 188 |
188 |
| 189 time_t util_parse_lastmodified(char *str) { |
189 time_t util_parse_lastmodified(const char *str) { |
| 190 // parse a rfc-1123 date |
190 // parse a rfc-1123 date |
| 191 // example: Thu, 29 Nov 2012 21:35:35 GMT |
191 // example: Thu, 29 Nov 2012 21:35:35 GMT |
| 192 if(!str) { |
192 if(!str) { |
| 193 return 0; |
193 return 0; |
| 194 } else { |
194 } else { |