Home | History | Annotate | Download | only in date

Lines Matching refs:status

46 static void date(const UChar *tz, UDateFormatStyle style, char *format, UErrorCode *status);
66 UErrorCode status = U_ZERO_ERROR;
138 date(tz, style, format, &status);
141 return (U_FAILURE(status) ? 1 : 0);
163 UErrorCode status = U_ZERO_ERROR;
170 tzVer = ucal_getTZDataVersion(&status);
171 if(U_FAILURE(status)) {
172 tzVer = u_errorName(status);
180 status = U_ZERO_ERROR;
181 u_init(&status);
182 len = ucal_getDefaultTimeZone(tzName, len, &status);
183 if(U_FAILURE(status)) {
184 printf(" ** Error getting default zone: %s\n", u_errorName(status));
186 uprint(tzName, stdout, &status);
195 UErrorCode *status)
202 fmt = udat_open(style, style, 0, tz, -1,NULL,0, status);
207 len = udat_format(fmt, ucal_getNow(), 0, len, 0, status);
208 if(*status == U_BUFFER_OVERFLOW_ERROR) {
209 *status = U_ZERO_ERROR;
212 udat_format(fmt, ucal_getNow(), s, len + 1, 0, status);
213 if(U_FAILURE(*status)) goto finish;
217 uprint(s, stdout, status);