Changeset 48
- Timestamp:
- 03/26/06 09:54:26 (6 years ago)
- Files:
-
- branches/date.d (modified) (2 diffs)
- branches/dateparse.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/date.d
r47 r48 269 269 * will be acceptable. 270 270 * 271 * For example "060310", "Mar s10, 2006", "3/10/06", "2006.069", "J2453805",272 * "Mars 10, 2006",and "2006-mar-10", will all yield the 10th of mars 2006 CE.271 * For example "060310", "March 10, 2006", "3/10/06", "2006.069", "J2453805", 272 * and "2006-mar-10", will all yield the 10th of mars 2006 CE. 273 273 * 274 274 * Params: … … 304 304 int y, m, d, yd; 305 305 assert(d1 == toDate("060310")); 306 assert(d1 == toDate("Mar s10, 2006"));306 assert(d1 == toDate("March 10, 2006")); 307 307 assert(d1 == toDate("3/10/06")); 308 308 assert(d1 == toDate("2006.069")); 309 309 assert(d1 == toDate("J2453805")); 310 assert(d1 == toDate("Mars 10, 2006"));311 310 assert(d1 == toDate("2006-mar-10")); 312 311 branches/dateparse.d
r47 r48 1207 1207 specials["january"] = spec(MaskFlag.MONTH, 1); 1208 1208 specials["february"] = spec(MaskFlag.MONTH, 2); 1209 specials["mar s"] = spec(MaskFlag.MONTH, 3);1209 specials["march"] = spec(MaskFlag.MONTH, 3); 1210 1210 specials["april"] = spec(MaskFlag.MONTH, 4); 1211 1211 specials["may"] = spec(MaskFlag.MONTH, 5);
