• Home
  • Raw
  • Download

Lines Matching +full:not +full:- +full:date

5  * Copyright (C) 1996-2016, International Business Machines
26 * <h2> Date Format C API</h2>
28 * Date Format C API consists of functions that convert dates and
30 * language-independent manner. Converting from the internal representation (milliseconds
34 * date formatting and parsing actions.
36 * Date Format helps you to format and parse dates for any locale. Your code can
40 * To format a date for the current Locale with default time and date style,
47 * UDateFormat* dfmt = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, NULL, -1, NULL, -1, &status);
66 * UDateFormat* df = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, NULL, -1, NULL, 0, &status);
79 * To get specific fields of a date, you can use UFieldPosition to
90 * UDateFormat* dfmt = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, -1, NULL, 0, &status);
97 * printf("date format: %s\n", u_austrcpy(buffer, myString));
102 * To format a date for a different Locale, specify it in the call to
106 * UDateFormat* df = udat_open(UDAT_SHORT, UDAT_SHORT, "fr_FR", NULL, -1, NULL, 0, &status);
117 * You can pass in different options for the arguments for date and time style
137 * <p><strong>Date and Time Patterns:</strong></p>
139 * <p>Date and time formats are specified by <em>date and time pattern</em> strings.
140 * Within date and time pattern strings, all unquoted ASCII letters [A-Za-z] are reserved
142 * the date and time formatting algorithm and pattern letters defined by
143 * <a href="http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table">UTS#35
145 …tes.google.com/site/icuprojectuserguide/formatparse/datetime?pli=1#TOC-Date-Field-Symbol-Table">ICU
149 /** A date formatter.
155 /** The possible date/time format styles
170 /** Bitfield for relative date */
183 UDAT_NONE = -1,
190 UDAT_PATTERN = -2,
201 * Constant for date skeleton with year.
206 * Constant for date skeleton with quarter.
211 * Constant for date skeleton with abbreviated quarter.
216 * Constant for date skeleton with year and quarter.
221 * Constant for date skeleton with year and abbreviated quarter.
226 * Constant for date skeleton with month.
231 * Constant for date skeleton with abbreviated month.
236 * Constant for date skeleton with numeric month.
241 * Constant for date skeleton with year and month.
246 * Constant for date skeleton with year and abbreviated month.
251 * Constant for date skeleton with year and numeric month.
256 * Constant for date skeleton with day.
261 * Constant for date skeleton with year, month, and day.
262 * Used in combinations date + time, date + time + zone, or time + zone.
267 * Constant for date skeleton with year, abbreviated month, and day.
268 * Used in combinations date + time, date + time + zone, or time + zone.
273 * Constant for date skeleton with year, numeric month, and day.
274 * Used in combinations date + time, date + time + zone, or time + zone.
279 * Constant for date skeleton with weekday.
284 * Constant for date skeleton with abbreviated weekday.
289 * Constant for date skeleton with year, month, weekday, and day.
290 * Used in combinations date + time, date + time + zone, or time + zone.
295 * Constant for date skeleton with year, abbreviated month, weekday, and day.
296 * Used in combinations date + time, date + time + zone, or time + zone.
301 * Constant for date skeleton with year, numeric month, weekday, and day.
302 * Used in combinations date + time, date + time + zone, or time + zone.
307 * Constant for date skeleton with long month and day.
308 * Used in combinations date + time, date + time + zone, or time + zone.
313 * Constant for date skeleton with abbreviated month and day.
314 * Used in combinations date + time, date + time + zone, or time + zone.
319 * Constant for date skeleton with numeric month and day.
320 * Used in combinations date + time, date + time + zone, or time + zone.
325 * Constant for date skeleton with month, weekday, and day.
326 * Used in combinations date + time, date + time + zone, or time + zone.
331 * Constant for date skeleton with abbreviated month, weekday, and day.
332 * Used in combinations date + time, date + time + zone, or time + zone.
337 * Constant for date skeleton with numeric month, weekday, and day.
338 * Used in combinations date + time, date + time + zone, or time + zone.
346 * Constant for date skeleton with hour, with the locale's preferred hour format (12 or 24).
351 * Constant for date skeleton with hour in 24-hour presentation.
356 * Constant for date skeleton with minute.
361 …* Constant for date skeleton with hour and minute, with the locale's preferred hour format (12 or …
362 * Used in combinations date + time, date + time + zone, or time + zone.
367 * Constant for date skeleton with hour and minute in 24-hour presentation.
368 * Used in combinations date + time, date + time + zone, or time + zone.
373 * Constant for date skeleton with second.
378 * Constant for date skeleton with hour, minute, and second,
380 * Used in combinations date + time, date + time + zone, or time + zone.
385 * Constant for date skeleton with hour, minute, and second in
386 * 24-hour presentation.
387 * Used in combinations date + time, date + time + zone, or time + zone.
392 * Constant for date skeleton with minute and second.
393 * Used in combinations date + time, date + time + zone, or time + zone.
402 * used in combinations date + time + zone, or time + zone.
403 …* @see <a href="http://unicode.org/reports/tr35/#Date_Format_Patterns">LDML Date Format Patterns</…
409 * Constant for <i>generic non-location format</i>, such as Pacific Time;
410 * used in combinations date + time + zone, or time + zone.
411 …* @see <a href="http://unicode.org/reports/tr35/#Date_Format_Patterns">LDML Date Format Patterns</…
417 * Constant for <i>generic non-location format</i>, abbreviated if possible, such as PT;
418 * used in combinations date + time + zone, or time + zone.
419 …* @see <a href="http://unicode.org/reports/tr35/#Date_Format_Patterns">LDML Date Format Patterns</…
425 * Constant for <i>specific non-location format</i>, such as Pacific Daylight Time;
426 * used in combinations date + time + zone, or time + zone.
427 …* @see <a href="http://unicode.org/reports/tr35/#Date_Format_Patterns">LDML Date Format Patterns</…
433 * Constant for <i>specific non-location format</i>, abbreviated if possible, such as PDT;
434 * used in combinations date + time + zone, or time + zone.
435 …* @see <a href="http://unicode.org/reports/tr35/#Date_Format_Patterns">LDML Date Format Patterns</…
441 * Constant for <i>localized GMT/UTC format</i>, such as GMT+8:00 or HPG-8:00;
442 * used in combinations date + time + zone, or time + zone.
443 …* @see <a href="http://unicode.org/reports/tr35/#Date_Format_Patterns">LDML Date Format Patterns</…
453 * Constant for date skeleton with standalone month.
458 * Constant for date skeleton with standalone abbreviated month.
464 * Constant for date skeleton with hour, minute, and generic timezone.
469 * Constant for date skeleton with hour, minute, and timezone.
474 * Constant for date skeleton with hour and generic timezone.
479 * Constant for date skeleton with hour and timezone.
522 * UDAT_HOUR_OF_DAY1_FIELD is used for the one-based 24-hour clock.
531 * UDAT_HOUR_OF_DAY0_FIELD is used for the zero-based 24-hour clock.
557 * resolution and a fractional seconds sub-pattern of SSS. If the
558 * sub-pattern is S or SS, the fractional seconds value will be truncated
559 * (not rounded) to the number of display places specified. If the
560 * fractional seconds sub-pattern is longer than SSS, the additional
611 * UDAT_HOUR1_FIELD is used for the one-based 12-hour clock.
620 * UDAT_HOUR0_FIELD is used for the zero-based 12-hour clock.
710 * corresponding to stand-alone quarters. This is
712 * This displays the stand-alone quarter.
796 * Valid selectors range from 0 to UDAT_FIELD_COUNT-1.
816 * Note: since the mapping is many-to-one, there is no inverse mapping.
832 * are not currently supported).
839 * relative date formatting only affects a limited range of calendar days before or
840 * after the current date, based on the CLDR &lt;field type="day"&gt;/&lt;relative&gt; data: For
842 * dates are formatted using the corresponding non-relative style.
846 * @param tzIDLength The length of tzID, or -1 if null-terminated.
848 * @param patternLength The number of characters in the pattern, or -1 if null-terminated.
894 * e.g. accepting "--mon-02-march-2011" for a pattern of "'--: 'EEE-WW-MMMM-yyyy"
905 // Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API,
917 * If the formatter does not understand the attribute, -1 is returned.
929 …* An example of a boolean attribute is parse leniency control. If the formatter does not understa…
974 * Format a date using a UDateFormat.
975 * The date will be formatted using the conventions specified in {@link #udat_open }
977 * @param dateToFormat The date to format
980 * @param position A pointer to a UFieldPosition. On input, position->field
981 * is read. On output, position->beginIndex and position->endIndex indicate
982 * the beginning and ending indices of field number position->field, if such
1000 * Format a date using an UDateFormat.
1001 * The date will be formatted using the conventions specified in {@link #udat_open }
1004 * mutated if fields are not yet fully calculated, though
1005 * the function won't change the logical date and time held
1009 * @param position A pointer to a UFieldPosition. On input, position->field
1010 * is read. On output, position->beginIndex and position->endIndex indicate
1011 * the beginning and ending indices of field number position->field, if such
1030 * Format a date using a UDateFormat.
1031 * The date will be formatted using the conventions specified in {@link #udat_open}
1035 * The date to format
1042 * (may be NULL if field position information is not needed). Any
1065 * Format a date using a UDateFormat.
1066 * The date will be formatted using the conventions specified in {@link #udat_open }
1071 * are not yet fully calculated, though the function won't change the logical
1072 * date and time held by the instance.
1079 * (may be NULL if field position information is not needed). Any
1104 * Parse a string into an date/time using a UDateFormat.
1105 * The date will be parsed using the conventions specified in {@link #udat_open }.
1107 * Note that the normal date formats associated with some calendars - such
1108 * as the Chinese lunar calendar - do not specify enough fields to enable
1110 * calendar, while the year within the current 60-year cycle is specified,
1111 * the number of such cycles since the start date of the calendar (in the
1112 * UCAL_ERA field of the UCalendar object) is not normally part of the format,
1115 * passed in set to the current date, or to a date within the era/cycle that
1120 * @param textLength The length of text, or -1 if null-terminated.
1121 * @param parsePos If not 0, on input a pointer to an integer specifying the offset at which
1122 * to begin parsing. If not 0, on output the offset at which parsing ended.
1124 * @return The value of the parsed date/time
1136 * Parse a string into an date/time using a UDateFormat.
1137 * The date will be parsed using the conventions specified in {@link #udat_open }.
1139 * @param calendar A calendar set on input to the date and time to be used for
1140 * missing values in the date/time string being parsed, and set
1141 * on output to the parsed date/time. When the calendar type is
1149 * @param textLength The length of text, or -1 if null-terminated.
1150 * @param parsePos If not 0, on input a pointer to an integer specifying the offset at which
1151 * to begin parsing. If not 0, on output the offset at which parsing ended.
1166 * With lenient parsing, the parser may use heuristics to interpret inputs that do not
1178 * With lenient parsing, the parser may use heuristics to interpret inputs that do not
1216 * A UDateFormat uses a UNumberFormat to format numbers within a date,
1244 * If the field is not numeric, then override has no effect (like "MMM" will use abbreviation, not n…
1260 * A UDateFormat uses a UNumberFormat to format numbers within a date,
1275 * A UDateFormat uses a UNumberFormat to format numbers within a date,
1286 * Get a locale for which date/time formatting patterns are available.
1290 * @return A locale for which date/time formatting patterns are available, or 0 if none.
1298 * Determine how many locales have date/time formatting patterns available.
1301 * @return The number of locales for which date/time formatting patterns are available.
1309 * Get the year relative to which all 2-digit years are interpreted.
1310 * For example, if the 2-digit start year is 2100, the year 99 will be
1314 * @return The year relative to which all 2-digit years are interpreted.
1323 * Set the year relative to which all 2-digit years will be interpreted.
1324 * For example, if the 2-digit start year is 2100, the year 99 will be
1327 * @param d The year relative to which all 2-digit years will be interpreted.
1362 * @param patternLength The length of pattern, or -1 if null-terminated.
1373 * The possible types of date format symbols
1383 /** The CLDR-style format "wide" weekday names, for example Monday */
1386 * The CLDR-style format "abbreviated" (not "short") weekday names, for example "Mon."
1387 * For the CLDR-style format "short" weekday names, use UDAT_SHORTER_WEEKDAYS.
1398 /** The CLDR-style format "narrow" weekday names, for example "M" */
1404 /** The CLDR-style stand-alone "wide" weekday names */
1407 * The CLDR-style stand-alone "abbreviated" (not "short") weekday names.
1408 * For the CLDR-style stand-alone "short" weekday names, use UDAT_STANDALONE_SHORTER_WEEKDAYS.
1411 /** The CLDR-style stand-alone "narrow" weekday names */
1421 * The CLDR-style short weekday names, e.g. "Su", Mo", etc.
1423 * above, which actually get the CLDR-style *abbreviated* versions of the
1435 * udat_setSymbols not supported for UDAT_CYCLIC_YEARS_WIDE)
1446 * udat_setSymbols not supported for UDAT_CYCLIC_YEARS_NARROW)
1452 * udat_setSymbols not supported for UDAT_ZODIAC_NAMES_WIDE)
1463 * udat_setSymbols not supported for UDAT_ZODIAC_NAMES_NARROW)
1470 /** Date format symbols.
1478 * The symbols are what a UDateFormat uses to represent locale-specific data,
1518 * The symbols are what a UDateFormat uses to represent locale-specific data,
1525 * @param valueLength The length of value, or -1 if null-terminated
1540 * Get the locale for this date format object.
1578 * Extract the date pattern from a UDateFormat set for relative date formatting.
1595 * Extract the time pattern from a UDateFormat set for relative date formatting.
1612 * Set the date & time patterns used by a UDateFormat set for relative date formatting.
1615 * @param datePattern The new date pattern
1616 * @param datePatternLength The length of datePattern, or -1 if null-terminated.
1618 * @param timePatternLength The length of timePattern, or -1 if null-terminated.
1652 * Un-Register a provider factory