PNG  IHDR pHYs   OiCCPPhotoshop ICC profilexڝSgTS=BKKoR RB&*! J!QEEȠQ, !{kּ> H3Q5 B.@ $pd!s#~<<+"x M0B\t8K@zB@F&S`cbP-`'{[! eDh;VEX0fK9-0IWfH  0Q){`##xFW<+*x<$9E[-qWW.(I+6aa@.y24x6_-"bbϫp@t~,/;m%h^ uf@Wp~<5j>{-]cK'Xto(hw?G%fIq^D$.Tʳ?D*A, `6B$BB dr`)B(Ͱ*`/@4Qhp.U=pa( Aa!ڈbX#!H$ ɈQ"K5H1RT UH=r9\F;2G1Q= C7F dt1r=6Ыhڏ>C03l0.B8, c˱" VcϱwE 6wB aAHXLXNH $4 7 Q'"K&b21XH,#/{C7$C2'ITFnR#,4H#dk9, +ȅ3![ b@qS(RjJ4e2AURݨT5ZBRQ4u9̓IKhhitݕNWGw Ljg(gwLӋT071oUX**| J&*/Tު UUT^S}FU3S ԖUPSSg;goT?~YYLOCQ_ cx,!k u5&|v*=9C3J3WRf?qtN (~))4L1e\kXHQG6EYAJ'\'GgSSݧ M=:.kDwn^Loy}/TmG X $ <5qo</QC]@Caaᄑ.ȽJtq]zۯ6iܟ4)Y3sCQ? 0k߬~OCOg#/c/Wװwa>>r><72Y_7ȷOo_C#dz%gA[z|!?:eAAA!h쐭!ΑiP~aa~ 'W?pX15wCsDDDޛg1O9-J5*>.j<74?.fYXXIlK9.*6nl {/]py.,:@LN8A*%w% yg"/6шC\*NH*Mz쑼5y$3,幄'L Lݛ:v m2=:1qB!Mggfvˬen/kY- BTZ(*geWf͉9+̳ې7ᒶKW-X潬j9(xoʿܔĹdff-[n ڴ VE/(ۻCɾUUMfeI?m]Nmq#׹=TR+Gw- 6 U#pDy  :v{vg/jBFS[b[O>zG499?rCd&ˮ/~јѡ򗓿m|x31^VwwO| (hSЧc3- cHRMz%u0`:o_F@8N ' p @8N@8}' p '#@8N@8N pQ9p!i~}|6-ӪG` VP.@*j>[ K^<֐Z]@8N'KQ<Q(`s" 'hgpKB`R@Dqj '  'P$a ( `D$Na L?u80e J,K˷NI'0eݷ(NI'؀ 2ipIIKp`:O'`ʤxB8Ѥx Ѥx $ $P6 :vRNb 'p,>NB 'P]-->P T+*^h& p '‰a ‰ (ĵt#u33;Nt̵'ޯ; [3W ~]0KH1q@8]O2]3*̧7# *p>us p _6]/}-4|t'|Smx= DoʾM×M_8!)6lq':l7!|4} '\ne t!=hnLn (~Dn\+‰_4k)0e@OhZ`F `.m1} 'vp{F`ON7Srx 'D˸nV`><;yMx!IS钦OM)Ե٥x 'DSD6bS8!" ODz#R >S8!7ّxEh0m$MIPHi$IvS8IN$I p$O8I,sk&I)$IN$Hi$I^Ah.p$MIN$IR8I·N "IF9Ah0m$MIN$IR8IN$I 3jIU;kO$ɳN$+ q.x* tEXtComment

Viewing File: /opt/alt/alt-nodejs18/root/usr/share/doc/alt-nodejs18-libicu-doc/udateintervalformat_8h.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ICU 74.2: i18n/unicode/udateintervalformat.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ICU 74.2
   &#160;<span id="projectnumber">74.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_73bc6a9bb617ea1bc89a10aa59ce84e4.html">i18n</a></li><li class="navelem"><a class="el" href="dir_0119ce638985e8a1561a00fdb5f76ff6.html">unicode</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">udateintervalformat.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>C API: Format a date interval.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="utypes_8h_source.html">unicode/utypes.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="ucal_8h_source.html">unicode/ucal.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="umisc_8h_source.html">unicode/umisc.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="uformattedvalue_8h_source.html">unicode/uformattedvalue.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="udisplaycontext_8h_source.html">unicode/udisplaycontext.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="localpointer_8h_source.html">unicode/localpointer.h</a>&quot;</code><br />
</div>
<p><a href="udateintervalformat_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceicu"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceicu.html">icu</a></td></tr>
<tr class="memdesc:namespaceicu"><td class="mdescLeft">&#160;</td><td class="mdescRight">File <a class="el" href="coll_8h.html" title="C++ API: Collation Service.">coll.h</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a884c867de15c3243320a1edc2395c019"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a></td></tr>
<tr class="memdesc:a884c867de15c3243320a1edc2395c019"><td class="mdescLeft">&#160;</td><td class="mdescRight">C typedef for struct UDateIntervalFormat.  <a href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">More...</a><br /></td></tr>
<tr class="separator:a884c867de15c3243320a1edc2395c019"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d8d6e61255582547db24061c99a4e2c"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a></td></tr>
<tr class="memdesc:a3d8d6e61255582547db24061c99a4e2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opaque struct to contain the results of a UDateIntervalFormat operation.  <a href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">More...</a><br /></td></tr>
<tr class="separator:a3d8d6e61255582547db24061c99a4e2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7bd23cfe2e7176774fae6cdacede6166"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#a7bd23cfe2e7176774fae6cdacede6166">udtitvfmt_open</a> (const char *locale, const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *skeleton, int32_t skeletonLength, const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *tzID, int32_t tzIDLength, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *status)</td></tr>
<tr class="memdesc:a7bd23cfe2e7176774fae6cdacede6166"><td class="mdescLeft">&#160;</td><td class="mdescRight">Open a new UDateIntervalFormat object using the predefined rules for a given locale plus a specified skeleton.  <a href="udateintervalformat_8h.html#a7bd23cfe2e7176774fae6cdacede6166">More...</a><br /></td></tr>
<tr class="separator:a7bd23cfe2e7176774fae6cdacede6166"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a840ce2c69af3ded3897a5b5bef8de768"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#a840ce2c69af3ded3897a5b5bef8de768">udtitvfmt_close</a> (<a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *formatter)</td></tr>
<tr class="memdesc:a840ce2c69af3ded3897a5b5bef8de768"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close a UDateIntervalFormat object.  <a href="udateintervalformat_8h.html#a840ce2c69af3ded3897a5b5bef8de768">More...</a><br /></td></tr>
<tr class="separator:a840ce2c69af3ded3897a5b5bef8de768"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24cbaed13501aada943e6eb6fbb6725c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#a24cbaed13501aada943e6eb6fbb6725c">udtitvfmt_openResult</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *ec)</td></tr>
<tr class="memdesc:a24cbaed13501aada943e6eb6fbb6725c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an object to hold the result of a UDateIntervalFormat operation.  <a href="udateintervalformat_8h.html#a24cbaed13501aada943e6eb6fbb6725c">More...</a><br /></td></tr>
<tr class="separator:a24cbaed13501aada943e6eb6fbb6725c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d8bdb44ecb595895f0ba4d559fef4ac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const <a class="el" href="uformattedvalue_8h.html#af64a1850f6a746a6130aa79ae7fed97f">UFormattedValue</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#a1d8bdb44ecb595895f0ba4d559fef4ac">udtitvfmt_resultAsValue</a> (const <a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> *uresult, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *ec)</td></tr>
<tr class="memdesc:a1d8bdb44ecb595895f0ba4d559fef4ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a representation of a UFormattedDateInterval as a UFormattedValue, which can be subsequently passed to any API requiring that type.  <a href="udateintervalformat_8h.html#a1d8bdb44ecb595895f0ba4d559fef4ac">More...</a><br /></td></tr>
<tr class="separator:a1d8bdb44ecb595895f0ba4d559fef4ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae60f1ac39c4447d4993e3cb9e2ca866c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#ae60f1ac39c4447d4993e3cb9e2ca866c">udtitvfmt_closeResult</a> (<a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> *uresult)</td></tr>
<tr class="memdesc:ae60f1ac39c4447d4993e3cb9e2ca866c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Releases the UFormattedDateInterval created by <a class="el" href="udateintervalformat_8h.html#a24cbaed13501aada943e6eb6fbb6725c" title="Creates an object to hold the result of a UDateIntervalFormat operation.">udtitvfmt_openResult()</a>.  <a href="udateintervalformat_8h.html#ae60f1ac39c4447d4993e3cb9e2ca866c">More...</a><br /></td></tr>
<tr class="separator:ae60f1ac39c4447d4993e3cb9e2ca866c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7afa7aa482f6be85b69947fab80cfd82"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#a7afa7aa482f6be85b69947fab80cfd82">udtitvfmt_format</a> (const <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *formatter, <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> fromDate, <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> toDate, <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *result, int32_t resultCapacity, <a class="el" href="structUFieldPosition.html">UFieldPosition</a> *position, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *status)</td></tr>
<tr class="memdesc:a7afa7aa482f6be85b69947fab80cfd82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats a date/time range using the conventions established for the UDateIntervalFormat object.  <a href="udateintervalformat_8h.html#a7afa7aa482f6be85b69947fab80cfd82">More...</a><br /></td></tr>
<tr class="separator:a7afa7aa482f6be85b69947fab80cfd82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa513f52fa26d63b369956eed0ab9bf06"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#aa513f52fa26d63b369956eed0ab9bf06">udtitvfmt_formatToResult</a> (const <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *formatter, <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> fromDate, <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> toDate, <a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> *result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *status)</td></tr>
<tr class="memdesc:aa513f52fa26d63b369956eed0ab9bf06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats a date/time range using the conventions established for the UDateIntervalFormat object.  <a href="udateintervalformat_8h.html#aa513f52fa26d63b369956eed0ab9bf06">More...</a><br /></td></tr>
<tr class="separator:aa513f52fa26d63b369956eed0ab9bf06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0e0bd2b2beb374feaaa8654f808a00d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#ad0e0bd2b2beb374feaaa8654f808a00d">udtitvfmt_formatCalendarToResult</a> (const <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *formatter, <a class="el" href="ucal_8h.html#afb45437aa9182d9fdcd96a2119e1e144">UCalendar</a> *fromCalendar, <a class="el" href="ucal_8h.html#afb45437aa9182d9fdcd96a2119e1e144">UCalendar</a> *toCalendar, <a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> *result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *status)</td></tr>
<tr class="memdesc:ad0e0bd2b2beb374feaaa8654f808a00d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats a date/time range using the conventions established for the UDateIntervalFormat object.  <a href="udateintervalformat_8h.html#ad0e0bd2b2beb374feaaa8654f808a00d">More...</a><br /></td></tr>
<tr class="separator:ad0e0bd2b2beb374feaaa8654f808a00d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63b903075cc333f64d543bac99e3eb5f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#a63b903075cc333f64d543bac99e3eb5f">udtitvfmt_setContext</a> (<a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *formatter, <a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a> value, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *status)</td></tr>
<tr class="memdesc:a63b903075cc333f64d543bac99e3eb5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a particular UDisplayContext value in the formatter, such as UDISPCTX_CAPITALIZATION_FOR_STANDALONE.  <a href="udateintervalformat_8h.html#a63b903075cc333f64d543bac99e3eb5f">More...</a><br /></td></tr>
<tr class="separator:a63b903075cc333f64d543bac99e3eb5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68dd69cd2fed958cd3edcadbb18c31f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="udateintervalformat_8h.html#a68dd69cd2fed958cd3edcadbb18c31f4">udtitvfmt_getContext</a> (const <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *formatter, <a class="el" href="udisplaycontext_8h.html#a7ce674e7cd26fb195f7344b861af5427">UDisplayContextType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *status)</td></tr>
<tr class="memdesc:a68dd69cd2fed958cd3edcadbb18c31f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the formatter's UDisplayContext value for the specified UDisplayContextType, such as UDISPCTX_TYPE_CAPITALIZATION.  <a href="udateintervalformat_8h.html#a68dd69cd2fed958cd3edcadbb18c31f4">More...</a><br /></td></tr>
<tr class="separator:a68dd69cd2fed958cd3edcadbb18c31f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>C API: Format a date interval. </p>
<p>A UDateIntervalFormat is used to format the range between two UDate values in a locale-sensitive way, using a skeleton that specifies the precision and completeness of the information to show. If the range smaller than the resolution specified by the skeleton, a single date format will be produced. If the range is larger than the format specified by the skeleton, a locale-specific fallback will be used to format the items missing from the skeleton.</p>
<p>For example, if the range is 2010-03-04 07:56 - 2010-03-04 19:56 (12 hours)</p><ul>
<li>The skeleton jm will produce for en_US, "7:56 AM - 7:56 PM" for en_GB, "7:56 - 19:56"</li>
<li>The skeleton MMMd will produce for en_US, "Mar 4" for en_GB, "4 Mar" If the range is 2010-03-04 07:56 - 2010-03-08 16:11 (4 days, 8 hours, 15 minutes)</li>
<li>The skeleton jm will produce for en_US, "3/4/2010 7:56 AM - 3/8/2010 4:11 PM" for en_GB, "4/3/2010 7:56 - 8/3/2010 16:11"</li>
<li>The skeleton MMMd will produce for en_US, "Mar 4-8" for en_GB, "4-8 Mar"</li>
</ul>
<p>Note: the "-" characters in the above sample output will actually be Unicode 2013, EN_DASH, in all but the last example.</p>
<p>Note, in ICU 4.4 the standard skeletons for which date interval format data is usually available are as follows; best results will be obtained by using skeletons from this set, or those formed by combining these standard skeletons (note that for these skeletons, the length of digit field such as d, y, or M vs MM is irrelevant (but for non-digit fields such as MMM vs MMMM it is relevant). Note that a skeleton involving h or H generally explicitly requests that time style (12- or 24-hour time respectively). For a skeleton that requests the locale's default time style (h or H), use 'j' instead of h or H. h, H, hm, Hm, hv, Hv, hmv, Hmv, d, M, MMM, MMMM, Md, MMMd, MEd, MMMEd, y, yM, yMMM, yMMMM, yMd, yMMMd, yMEd, yMMMEd</p>
<p>Locales for which ICU 4.4 seems to have a reasonable amount of this data include: af, am, ar, be, bg, bn, ca, cs, da, de (_AT), el, en (_AU,_CA,_GB,_IE,_IN...), eo, es (_AR,_CL,_CO,...,_US) et, fa, fi, fo, fr (_BE,_CH,_CA), fur, gsw, he, hr, hu, hy, is, it (_CH), ja, kk, km, ko, lt, lv, mk, ml, mt, nb, nl )_BE), nn, pl, pt (_PT), rm, ro, ru (_UA), sk, sl, so, sq, sr, sr_Latn, sv, th, to, tr, uk, ur, vi, zh (_SG), zh_Hant (_HK,_MO) </p>

<p class="definition">Definition in file <a class="el" href="udateintervalformat_8h_source.html">udateintervalformat.h</a>.</p>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a id="a884c867de15c3243320a1edc2395c019"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a884c867de15c3243320a1edc2395c019">&#9670;&nbsp;</a></span>UDateIntervalFormat</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>C typedef for struct UDateIntervalFormat. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006209">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>

<p class="definition">Definition at line <a class="el" href="udateintervalformat_8h_source.html#l00001">1</a> of file <a class="el" href="udateintervalformat_8h_source.html">udateintervalformat.h</a>.</p>

</div>
</div>
<a id="a3d8d6e61255582547db24061c99a4e2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d8d6e61255582547db24061c99a4e2c">&#9670;&nbsp;</a></span>UFormattedDateInterval</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> <a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Opaque struct to contain the results of a UDateIntervalFormat operation. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006210">Stable:</a></b></dt><dd>ICU 64 </dd></dl>

<p class="definition">Definition at line <a class="el" href="udateintervalformat_8h_source.html#l00001">1</a> of file <a class="el" href="udateintervalformat_8h_source.html">udateintervalformat.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a840ce2c69af3ded3897a5b5bef8de768"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a840ce2c69af3ded3897a5b5bef8de768">&#9670;&nbsp;</a></span>udtitvfmt_close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void udtitvfmt_close </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *&#160;</td>
          <td class="paramname"><em>formatter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Close a UDateIntervalFormat object. </p>
<p>Once closed it may no longer be used. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">formatter</td><td>The UDateIntervalFormat object to close. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006212">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>

</div>
</div>
<a id="ae60f1ac39c4447d4993e3cb9e2ca866c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae60f1ac39c4447d4993e3cb9e2ca866c">&#9670;&nbsp;</a></span>udtitvfmt_closeResult()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void udtitvfmt_closeResult </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> *&#160;</td>
          <td class="paramname"><em>uresult</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Releases the UFormattedDateInterval created by <a class="el" href="udateintervalformat_8h.html#a24cbaed13501aada943e6eb6fbb6725c" title="Creates an object to hold the result of a UDateIntervalFormat operation.">udtitvfmt_openResult()</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uresult</td><td>The object to release. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006215">Stable:</a></b></dt><dd>ICU 64 </dd></dl>

</div>
</div>
<a id="a7afa7aa482f6be85b69947fab80cfd82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7afa7aa482f6be85b69947fab80cfd82">&#9670;&nbsp;</a></span>udtitvfmt_format()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> int32_t udtitvfmt_format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *&#160;</td>
          <td class="paramname"><em>formatter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&#160;</td>
          <td class="paramname"><em>fromDate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&#160;</td>
          <td class="paramname"><em>toDate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>resultCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUFieldPosition.html">UFieldPosition</a> *&#160;</td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Formats a date/time range using the conventions established for the UDateIntervalFormat object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">formatter</td><td>The UDateIntervalFormat object specifying the format conventions. </td></tr>
    <tr><td class="paramname">fromDate</td><td>The starting point of the range. </td></tr>
    <tr><td class="paramname">toDate</td><td>The ending point of the range. </td></tr>
    <tr><td class="paramname">result</td><td>A pointer to a buffer to receive the formatted range. </td></tr>
    <tr><td class="paramname">resultCapacity</td><td>The maximum size of result. </td></tr>
    <tr><td class="paramname">position</td><td>A pointer to a <a class="el" href="structUFieldPosition.html" title="A struct representing a range of text containing a specific field.">UFieldPosition</a>. On input, position-&gt;field is read. On output, position-&gt;beginIndex and position-&gt;endIndex indicate the beginning and ending indices of field number position-&gt;field, if such a field exists. This parameter may be NULL, in which case no field position data is returned. There may be multiple instances of a given field type in an interval format; in this case the position indices refer to the first instance. </td></tr>
    <tr><td class="paramname">status</td><td>A pointer to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The total buffer size needed; if greater than resultLength, the output was truncated. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006216">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>

</div>
</div>
<a id="ad0e0bd2b2beb374feaaa8654f808a00d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0e0bd2b2beb374feaaa8654f808a00d">&#9670;&nbsp;</a></span>udtitvfmt_formatCalendarToResult()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void udtitvfmt_formatCalendarToResult </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *&#160;</td>
          <td class="paramname"><em>formatter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#afb45437aa9182d9fdcd96a2119e1e144">UCalendar</a> *&#160;</td>
          <td class="paramname"><em>fromCalendar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#afb45437aa9182d9fdcd96a2119e1e144">UCalendar</a> *&#160;</td>
          <td class="paramname"><em>toCalendar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> *&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Formats a date/time range using the conventions established for the UDateIntervalFormat object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">formatter</td><td>The UDateIntervalFormat object specifying the format conventions. </td></tr>
    <tr><td class="paramname">fromCalendar</td><td>The starting point of the range. </td></tr>
    <tr><td class="paramname">toCalendar</td><td>The ending point of the range. </td></tr>
    <tr><td class="paramname">result</td><td>The UFormattedDateInterval to contain the result of the formatting operation. </td></tr>
    <tr><td class="paramname">status</td><td>A pointer to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006218">Stable:</a></b></dt><dd>ICU 67 </dd></dl>

</div>
</div>
<a id="aa513f52fa26d63b369956eed0ab9bf06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa513f52fa26d63b369956eed0ab9bf06">&#9670;&nbsp;</a></span>udtitvfmt_formatToResult()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void udtitvfmt_formatToResult </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *&#160;</td>
          <td class="paramname"><em>formatter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&#160;</td>
          <td class="paramname"><em>fromDate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&#160;</td>
          <td class="paramname"><em>toDate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> *&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Formats a date/time range using the conventions established for the UDateIntervalFormat object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">formatter</td><td>The UDateIntervalFormat object specifying the format conventions. </td></tr>
    <tr><td class="paramname">fromDate</td><td>The starting point of the range. </td></tr>
    <tr><td class="paramname">toDate</td><td>The ending point of the range. </td></tr>
    <tr><td class="paramname">result</td><td>The UFormattedDateInterval to contain the result of the formatting operation. </td></tr>
    <tr><td class="paramname">status</td><td>A pointer to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006217">Stable:</a></b></dt><dd>ICU 67 </dd></dl>

</div>
</div>
<a id="a68dd69cd2fed958cd3edcadbb18c31f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68dd69cd2fed958cd3edcadbb18c31f4">&#9670;&nbsp;</a></span>udtitvfmt_getContext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a> udtitvfmt_getContext </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *&#160;</td>
          <td class="paramname"><em>formatter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="udisplaycontext_8h.html#a7ce674e7cd26fb195f7344b861af5427">UDisplayContextType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the formatter's UDisplayContext value for the specified UDisplayContextType, such as UDISPCTX_TYPE_CAPITALIZATION. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">formatter</td><td>The formatter to query. </td></tr>
    <tr><td class="paramname">type</td><td>The UDisplayContextType whose value to return </td></tr>
    <tr><td class="paramname">status</td><td>A pointer to an UErrorCode to receive any errors </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The UDisplayContextValue for the specified type. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006220">Stable:</a></b></dt><dd>ICU 68 </dd></dl>

</div>
</div>
<a id="a7bd23cfe2e7176774fae6cdacede6166"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bd23cfe2e7176774fae6cdacede6166">&#9670;&nbsp;</a></span>udtitvfmt_open()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a>* udtitvfmt_open </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&#160;</td>
          <td class="paramname"><em>skeleton</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>skeletonLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&#160;</td>
          <td class="paramname"><em>tzID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>tzIDLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Open a new UDateIntervalFormat object using the predefined rules for a given locale plus a specified skeleton. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>The locale for whose rules should be used; may be NULL for default locale. </td></tr>
    <tr><td class="paramname">skeleton</td><td>A pattern containing only the fields desired for the interval format, for example "Hm", "yMMMd", or "yMMMEdHm". </td></tr>
    <tr><td class="paramname">skeletonLength</td><td>The length of skeleton; may be -1 if the skeleton is zero-terminated. </td></tr>
    <tr><td class="paramname">tzID</td><td>A timezone ID specifying the timezone to use. If 0, use the default timezone. </td></tr>
    <tr><td class="paramname">tzIDLength</td><td>The length of tzID, or -1 if null-terminated. If 0, use the default timezone. </td></tr>
    <tr><td class="paramname">status</td><td>A pointer to a UErrorCode to receive any errors. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to a UDateIntervalFormat object for the specified locale, or NULL if an error occurred. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006211">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>

</div>
</div>
<a id="a24cbaed13501aada943e6eb6fbb6725c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24cbaed13501aada943e6eb6fbb6725c">&#9670;&nbsp;</a></span>udtitvfmt_openResult()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a>* udtitvfmt_openResult </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>ec</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates an object to hold the result of a UDateIntervalFormat operation. </p>
<p>The object can be used repeatedly; it is cleared whenever passed to a format function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ec</td><td>Set if an error occurs. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer needing ownership. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006213">Stable:</a></b></dt><dd>ICU 64 </dd></dl>

</div>
</div>
<a id="a1d8bdb44ecb595895f0ba4d559fef4ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d8bdb44ecb595895f0ba4d559fef4ac">&#9670;&nbsp;</a></span>udtitvfmt_resultAsValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const <a class="el" href="uformattedvalue_8h.html#af64a1850f6a746a6130aa79ae7fed97f">UFormattedValue</a>* udtitvfmt_resultAsValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="udateintervalformat_8h.html#a3d8d6e61255582547db24061c99a4e2c">UFormattedDateInterval</a> *&#160;</td>
          <td class="paramname"><em>uresult</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>ec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a representation of a UFormattedDateInterval as a UFormattedValue, which can be subsequently passed to any API requiring that type. </p>
<p>The returned object is owned by the UFormattedDateInterval and is valid only as long as the UFormattedDateInterval is present and unchanged in memory.</p>
<p>You can think of this method as a cast between types.</p>
<p>When calling <a class="el" href="uformattedvalue_8h.html#adc62e7ad87db65ba86e4b72bfb232906" title="Iterates over field positions in the UFormattedValue.">ufmtval_nextPosition()</a>: The fields are returned from left to right. The special field category UFIELD_CATEGORY_DATE_INTERVAL_SPAN is used to indicate which datetime primitives came from which arguments: 0 means fromCalendar, and 1 means toCalendar. The span category will always occur before the corresponding fields in UFIELD_CATEGORY_DATE in the <a class="el" href="uformattedvalue_8h.html#adc62e7ad87db65ba86e4b72bfb232906" title="Iterates over field positions in the UFormattedValue.">ufmtval_nextPosition()</a> iterator.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uresult</td><td>The object containing the formatted string. </td></tr>
    <tr><td class="paramname">ec</td><td>Set if an error occurs. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A UFormattedValue owned by the input object. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006214">Stable:</a></b></dt><dd>ICU 64 </dd></dl>

</div>
</div>
<a id="a63b903075cc333f64d543bac99e3eb5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63b903075cc333f64d543bac99e3eb5f">&#9670;&nbsp;</a></span>udtitvfmt_setContext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void udtitvfmt_setContext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="udateintervalformat_8h.html#a884c867de15c3243320a1edc2395c019">UDateIntervalFormat</a> *&#160;</td>
          <td class="paramname"><em>formatter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a>&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set a particular UDisplayContext value in the formatter, such as UDISPCTX_CAPITALIZATION_FOR_STANDALONE. </p>
<p>This causes the formatted result to be capitalized appropriately for the context in which it is intended to be used, considering both the locale and the type of field at the beginning of the formatted result. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">formatter</td><td>The formatter for which to set a UDisplayContext value. </td></tr>
    <tr><td class="paramname">value</td><td>The UDisplayContext value to set. </td></tr>
    <tr><td class="paramname">status</td><td>A pointer to an UErrorCode to receive any errors </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable006219">Stable:</a></b></dt><dd>ICU 68 </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
Back to Directory=ceiIENDB`