Lines Matching refs:date
9 * Date Name Description
76 * Headers { "locale","spec", "date", "str"}
78 // spec: either 'PATTERN=y mm h' etc, or 'DATE=SHORT,TIME=LONG'
79 // date: either an unsigned long (millis), or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the locale
84 "DATE=SHORT,TIME=SHORT",
85 "ERA=1,YEAR=2007,MONTH=AUGUST,DATE=8,HOUR=18,MINUTE=54,SECOND=12",
138 UnicodeString date = currentCase->getString("date", status);
140 errln("case %d: No 'date' line.", n);
179 // parse 'date'
180 if(date.startsWith(kMILLIS)) {
181 UnicodeString millis = UnicodeString(date, kMILLIS.length());
184 } else if(date.startsWith(kRELATIVE_MILLIS)) {
185 UnicodeString millis = UnicodeString(date, kRELATIVE_MILLIS.length());
188 } else if(date.startsWith(kRELATIVE_ADD)) {
189 UnicodeString add = UnicodeString(date, kRELATIVE_ADD.length()); // "add" is a string indicating which fields to add
191 errln("case %d: could not parse date as RELATIVE_ADD calendar fields: %s", n, u_errorName(status));
207 errln("case %d: could not apply date as RELATIVE_ADD calendar fields: %s", n, u_errorName(status));
210 } else if(fromSet.parseFrom(date, status)<0 || U_FAILURE(status)) {
211 errln("case %d: could not parse date as calendar fields: %s", n, u_errorName(status));