Server IP : 103.119.228.120 / Your IP : 18.191.195.105 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/easy/share/doc/easy-libicu-doc-4.0.1/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.8.5"/> <title>ICU 4.0.1: DateIntervalFormat Class 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="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </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 style="padding-left: 0.5em;"> <div id="projectname">ICU 4.0.1 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#nested-classes">Data Structures</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> </div> <div class="headertitle"> <div class="title">DateIntervalFormat Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> is a class for formatting and parsing date intervals in a language-independent manner. <a href="classDateIntervalFormat.html#details">More...</a></p> <p><code>#include <<a class="el" href="dtitvfmt_8h_source.html">dtitvfmt.h</a>></code></p> <div class="dynheader"> Inheritance diagram for DateIntervalFormat:</div> <div class="dyncontent"> <div class="center"> <img src="classDateIntervalFormat.png" usemap="#DateIntervalFormat_map" alt=""/> <map id="DateIntervalFormat_map" name="DateIntervalFormat_map"> <area href="classFormat.html" title="Base class for all formats. " alt="Format" shape="rect" coords="0,112,119,136"/> <area href="classUObject.html" title="UObject is the common ICU "boilerplate" class. " alt="UObject" shape="rect" coords="0,56,119,80"/> <area href="classUMemory.html" title="UMemory is the common ICU base class. " alt="UMemory" shape="rect" coords="0,0,119,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:aaaed5ba68951e3f5ae353a229f154bee"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#aaaed5ba68951e3f5ae353a229f154bee">~DateIntervalFormat</a> ()</td></tr> <tr class="memdesc:aaaed5ba68951e3f5ae353a229f154bee"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#aaaed5ba68951e3f5ae353a229f154bee">More...</a><br/></td></tr> <tr class="separator:aaaed5ba68951e3f5ae353a229f154bee"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af9a584ad22ff3673323b26923f8c39b4"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classFormat.html">Format</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#af9a584ad22ff3673323b26923f8c39b4">clone</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr> <tr class="memdesc:af9a584ad22ff3673323b26923f8c39b4"><td class="mdescLeft"> </td><td class="mdescRight">Clone this <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> object polymorphically. <a href="#af9a584ad22ff3673323b26923f8c39b4">More...</a><br/></td></tr> <tr class="separator:af9a584ad22ff3673323b26923f8c39b4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adb057520899e7e878c54152f990c6b28"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#adb057520899e7e878c54152f990c6b28">operator==</a> (const <a class="el" href="classFormat.html">Format</a> &other) const </td></tr> <tr class="memdesc:adb057520899e7e878c54152f990c6b28"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the given <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> objects are semantically equal. <a href="#adb057520899e7e878c54152f990c6b28">More...</a><br/></td></tr> <tr class="separator:adb057520899e7e878c54152f990c6b28"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae1cd1ea9874e3da1d8e7c417850360ad"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#ae1cd1ea9874e3da1d8e7c417850360ad">operator!=</a> (const <a class="el" href="classFormat.html">Format</a> &other) const </td></tr> <tr class="memdesc:ae1cd1ea9874e3da1d8e7c417850360ad"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the given <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> objects are not semantically equal. <a href="#ae1cd1ea9874e3da1d8e7c417850360ad">More...</a><br/></td></tr> <tr class="separator:ae1cd1ea9874e3da1d8e7c417850360ad"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad5163151a343dac64ad66c5680332ea3"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#ad5163151a343dac64ad66c5680332ea3">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &fieldPosition, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:ad5163151a343dac64ad66c5680332ea3"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> an object to produce a string. <a href="#ad5163151a343dac64ad66c5680332ea3">More...</a><br/></td></tr> <tr class="separator:ad5163151a343dac64ad66c5680332ea3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a53179e87d3552d5f9f7802896a437947"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#a53179e87d3552d5f9f7802896a437947">format</a> (const <a class="el" href="classDateInterval.html">DateInterval</a> *dtInterval, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &fieldPosition, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a53179e87d3552d5f9f7802896a437947"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> a <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a> to produce a string. <a href="#a53179e87d3552d5f9f7802896a437947">More...</a><br/></td></tr> <tr class="separator:a53179e87d3552d5f9f7802896a437947"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaa08ad2bb46063a00f5b41500617a40d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#aaa08ad2bb46063a00f5b41500617a40d">format</a> (<a class="el" href="classCalendar.html">Calendar</a> &fromCalendar, <a class="el" href="classCalendar.html">Calendar</a> &toCalendar, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &fieldPosition, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:aaa08ad2bb46063a00f5b41500617a40d"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> 2 Calendars to produce a string. <a href="#aaa08ad2bb46063a00f5b41500617a40d">More...</a><br/></td></tr> <tr class="separator:aaa08ad2bb46063a00f5b41500617a40d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a30cd01f77584059579d72912df3e2bea"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#a30cd01f77584059579d72912df3e2bea">parseObject</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &source, <a class="el" href="classFormattable.html">Formattable</a> &result, <a class="el" href="classParsePosition.html">ParsePosition</a> &parse_pos) const </td></tr> <tr class="memdesc:a30cd01f77584059579d72912df3e2bea"><td class="mdescLeft"> </td><td class="mdescRight">Date interval parsing is not supported. <a href="#a30cd01f77584059579d72912df3e2bea">More...</a><br/></td></tr> <tr class="separator:a30cd01f77584059579d72912df3e2bea"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7508e46babb623d1383c8f85f09f1bb0"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#a7508e46babb623d1383c8f85f09f1bb0">getDateIntervalInfo</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr> <tr class="memdesc:a7508e46babb623d1383c8f85f09f1bb0"><td class="mdescLeft"> </td><td class="mdescRight">Gets the date time interval patterns. <a href="#a7508e46babb623d1383c8f85f09f1bb0">More...</a><br/></td></tr> <tr class="separator:a7508e46babb623d1383c8f85f09f1bb0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af90019c51abd9d92960dbe90043697b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#af90019c51abd9d92960dbe90043697b2">setDateIntervalInfo</a> (const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &newIntervalPatterns, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:af90019c51abd9d92960dbe90043697b2"><td class="mdescLeft"> </td><td class="mdescRight">Set the date time interval patterns. <a href="#af90019c51abd9d92960dbe90043697b2">More...</a><br/></td></tr> <tr class="separator:af90019c51abd9d92960dbe90043697b2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acd674a6d5214ef0e7507637b5f8f9c89"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classDateFormat.html">DateFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#acd674a6d5214ef0e7507637b5f8f9c89">getDateFormat</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr> <tr class="memdesc:acd674a6d5214ef0e7507637b5f8f9c89"><td class="mdescLeft"> </td><td class="mdescRight">Gets the date formatter. <a href="#acd674a6d5214ef0e7507637b5f8f9c89">More...</a><br/></td></tr> <tr class="separator:acd674a6d5214ef0e7507637b5f8f9c89"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a476faa13a44ff11411beaeb69158dd68"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#a476faa13a44ff11411beaeb69158dd68">getDynamicClassID</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr> <tr class="memdesc:a476faa13a44ff11411beaeb69158dd68"><td class="mdescLeft"> </td><td class="mdescRight">Returns a unique class ID POLYMORPHICALLY. <a href="#a476faa13a44ff11411beaeb69158dd68">More...</a><br/></td></tr> <tr class="separator:a476faa13a44ff11411beaeb69158dd68"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classFormat"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classFormat')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classFormat.html">Format</a></td></tr> <tr class="memitem:aafee703f14d0f5ddb264b708a75174a8 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#aafee703f14d0f5ddb264b708a75174a8">~Format</a> ()</td></tr> <tr class="memdesc:aafee703f14d0f5ddb264b708a75174a8 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#aafee703f14d0f5ddb264b708a75174a8">More...</a><br/></td></tr> <tr class="separator:aafee703f14d0f5ddb264b708a75174a8 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4f65d87226814931dde8b035f47b69f3 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a4f65d87226814931dde8b035f47b69f3">operator!=</a> (const <a class="el" href="classFormat.html">Format</a> &other) const </td></tr> <tr class="memdesc:a4f65d87226814931dde8b035f47b69f3 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the given <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> objects are not semantically equal. <a href="#a4f65d87226814931dde8b035f47b69f3">More...</a><br/></td></tr> <tr class="separator:a4f65d87226814931dde8b035f47b69f3 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af3f0b157f07d6e9f908da69c99239600 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:af3f0b157f07d6e9f908da69c99239600 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Formats an object to produce a string. <a href="#af3f0b157f07d6e9f908da69c99239600">More...</a><br/></td></tr> <tr class="separator:af3f0b157f07d6e9f908da69c99239600 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a90da11177ef906f464d63ca14300e1c9 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a90da11177ef906f464d63ca14300e1c9">parseObject</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &source, <a class="el" href="classFormattable.html">Formattable</a> &result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a90da11177ef906f464d63ca14300e1c9 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Parses a string to produce an object. <a href="#a90da11177ef906f464d63ca14300e1c9">More...</a><br/></td></tr> <tr class="separator:a90da11177ef906f464d63ca14300e1c9 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4502b04fe77be54f9f0343a87156fbd5 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classLocale.html">Locale</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a4502b04fe77be54f9f0343a87156fbd5">getLocale</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a4502b04fe77be54f9f0343a87156fbd5 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Get the locale for this format object. <a href="#a4502b04fe77be54f9f0343a87156fbd5">More...</a><br/></td></tr> <tr class="separator:a4502b04fe77be54f9f0343a87156fbd5 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad8ca4e4cbd2a11b4de3c748c48c7c536 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#ad8ca4e4cbd2a11b4de3c748c48c7c536">getLocaleID</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:ad8ca4e4cbd2a11b4de3c748c48c7c536 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Get the locale for this format object. <a href="#ad8ca4e4cbd2a11b4de3c748c48c7c536">More...</a><br/></td></tr> <tr class="separator:ad8ca4e4cbd2a11b4de3c748c48c7c536 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classUObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classUObject')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classUObject.html">UObject</a></td></tr> <tr class="memitem:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#ace22cf29a90641ef43350deae5bedb85">~UObject</a> ()</td></tr> <tr class="memdesc:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ace22cf29a90641ef43350deae5bedb85">More...</a><br/></td></tr> <tr class="separator:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr class="memitem:adc7c2da7b2f5e29fb6b4e9caf8f33318"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#adc7c2da7b2f5e29fb6b4e9caf8f33318">createInstance</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &skeleton, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:adc7c2da7b2f5e29fb6b4e9caf8f33318"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> from skeleton and the default locale. <a href="#adc7c2da7b2f5e29fb6b4e9caf8f33318">More...</a><br/></td></tr> <tr class="separator:adc7c2da7b2f5e29fb6b4e9caf8f33318"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aeef98399b07aaceacd7fd58ee33171c5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#aeef98399b07aaceacd7fd58ee33171c5">createInstance</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &skeleton, const <a class="el" href="classLocale.html">Locale</a> &locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:aeef98399b07aaceacd7fd58ee33171c5"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> from skeleton and a given locale. <a href="#aeef98399b07aaceacd7fd58ee33171c5">More...</a><br/></td></tr> <tr class="separator:aeef98399b07aaceacd7fd58ee33171c5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a135df7221deb0e857f1c6d3b66ce7ef5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#a135df7221deb0e857f1c6d3b66ce7ef5">createInstance</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &skeleton, const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &dtitvinf, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a135df7221deb0e857f1c6d3b66ce7ef5"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> from skeleton <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a>, and default locale. <a href="#a135df7221deb0e857f1c6d3b66ce7ef5">More...</a><br/></td></tr> <tr class="separator:a135df7221deb0e857f1c6d3b66ce7ef5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa30507d97f93eb89008c5c907f6ccf27"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#aa30507d97f93eb89008c5c907f6ccf27">createInstance</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &skeleton, const <a class="el" href="classLocale.html">Locale</a> &locale, const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &dtitvinf, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:aa30507d97f93eb89008c5c907f6ccf27"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> from skeleton a <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a>, and the given locale. <a href="#aa30507d97f93eb89008c5c907f6ccf27">More...</a><br/></td></tr> <tr class="separator:aa30507d97f93eb89008c5c907f6ccf27"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad2e287b02ed2899a3dd28d6d1414a352"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#ad2e287b02ed2899a3dd28d6d1414a352">getStaticClassID</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:ad2e287b02ed2899a3dd28d6d1414a352"><td class="mdescLeft"> </td><td class="mdescRight">Return the class ID for this class. <a href="#ad2e287b02ed2899a3dd28d6d1414a352">More...</a><br/></td></tr> <tr class="separator:ad2e287b02ed2899a3dd28d6d1414a352"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_static_methods_classUMemory"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classUMemory')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classUMemory.html">UMemory</a></td></tr> <tr class="memitem:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a309b19b5777e2840b85b202aef5a54fb">operator new</a> (size_t size)</td></tr> <tr class="memdesc:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a309b19b5777e2840b85b202aef5a54fb">More...</a><br/></td></tr> <tr class="separator:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a4d0df3571728e7b8a823dbbea6e9b5c5">operator new[]</a> (size_t size)</td></tr> <tr class="memdesc:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a4d0df3571728e7b8a823dbbea6e9b5c5">More...</a><br/></td></tr> <tr class="separator:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#adcda65a58813749f8f45c5e6c1ed37e1">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr> <tr class="memdesc:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#adcda65a58813749f8f45c5e6c1ed37e1">More...</a><br/></td></tr> <tr class="separator:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a7602a7a8c6fdff21d9fbecea4d899333">operator delete[]</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr> <tr class="memdesc:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a7602a7a8c6fdff21d9fbecea4d899333">More...</a><br/></td></tr> <tr class="separator:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a43b5221fe429f77230b2040f8724c154">operator new</a> (size_t, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *ptr)</td></tr> <tr class="memdesc:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management for STL. <a href="#a43b5221fe429f77230b2040f8724c154">More...</a><br/></td></tr> <tr class="separator:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a9b746b0cdb49c8f8907773002ea5c4ea">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *)</td></tr> <tr class="memdesc:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management for STL. <a href="#a9b746b0cdb49c8f8907773002ea5c4ea">More...</a><br/></td></tr> <tr class="separator:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr class="memitem:afed49bfd80382ac4269241c89aa522d8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#afed49bfd80382ac4269241c89aa522d8">DateIntervalFormat</a> (const <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a> &)</td></tr> <tr class="memdesc:afed49bfd80382ac4269241c89aa522d8"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#afed49bfd80382ac4269241c89aa522d8">More...</a><br/></td></tr> <tr class="separator:afed49bfd80382ac4269241c89aa522d8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a65a1f1d51dd4d5ac269050b220033ea5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalFormat.html#a65a1f1d51dd4d5ac269050b220033ea5">operator=</a> (const <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a> &)</td></tr> <tr class="memdesc:a65a1f1d51dd4d5ac269050b220033ea5"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a65a1f1d51dd4d5ac269050b220033ea5">More...</a><br/></td></tr> <tr class="separator:a65a1f1d51dd4d5ac269050b220033ea5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pro_methods_classFormat"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classFormat')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classFormat.html">Format</a></td></tr> <tr class="memitem:ae15f405ad3805e8d6691354047b500ca inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#ae15f405ad3805e8d6691354047b500ca">setLocaleIDs</a> (const char *valid, const char *actual)</td></tr> <tr class="separator:ae15f405ad3805e8d6691354047b500ca inherit pro_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9326a787208f39b9544fc6fcbcbfcad3 inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a9326a787208f39b9544fc6fcbcbfcad3">Format</a> ()</td></tr> <tr class="memdesc:a9326a787208f39b9544fc6fcbcbfcad3 inherit pro_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor for subclass use only. <a href="#a9326a787208f39b9544fc6fcbcbfcad3">More...</a><br/></td></tr> <tr class="separator:a9326a787208f39b9544fc6fcbcbfcad3 inherit pro_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab69111c370cfe44f9508e78e5431cc65 inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#ab69111c370cfe44f9508e78e5431cc65">Format</a> (const <a class="el" href="classFormat.html">Format</a> &)</td></tr> <tr class="separator:ab69111c370cfe44f9508e78e5431cc65 inherit pro_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7a5276a88c488462eea3a508b71f4d9c inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classFormat.html">Format</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a7a5276a88c488462eea3a508b71f4d9c">operator=</a> (const <a class="el" href="classFormat.html">Format</a> &)</td></tr> <tr class="separator:a7a5276a88c488462eea3a508b71f4d9c inherit pro_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pro_static_methods_classFormat"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_classFormat')"><img src="closed.png" alt="-"/> Static Protected Member Functions inherited from <a class="el" href="classFormat.html">Format</a></td></tr> <tr class="memitem:a98213ada53770537d242f4bf0ba43b73 inherit pro_static_methods_classFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a98213ada53770537d242f4bf0ba43b73">syntaxError</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, int32_t pos, <a class="el" href="structUParseError.html">UParseError</a> &parseError)</td></tr> <tr class="memdesc:a98213ada53770537d242f4bf0ba43b73 inherit pro_static_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Simple function for initializing a <a class="el" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors. ">UParseError</a> from a <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>. <a href="#a98213ada53770537d242f4bf0ba43b73">More...</a><br/></td></tr> <tr class="separator:a98213ada53770537d242f4bf0ba43b73 inherit pro_static_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p><a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> is a class for formatting and parsing date intervals in a language-independent manner. </p> <p>Date interval formatting is supported in Gregorian calendar only. And only formatting is supported. Parsing is not supported.</p> <p>Date interval means from one date to another date, for example, from "Jan 11, 2008" to "Jan 18, 2008". We introduced class <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a> to represent it. <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a> is a pair of UDate, which is the standard milliseconds since 24:00 GMT, Jan 1, 1970.</p> <p><a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> formats a <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a> into text as compactly as possible. For example, the date interval format from "Jan 11, 2008" to "Jan 18,. 2008" is "Jan 11-18, 2008" for English. And it parses text into <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a>, although initially, parsing is not supported.</p> <p>There is no structural information in date time patterns. For any punctuations and string literals inside a date time pattern, we do not know whether it is just a separator, or a prefix, or a suffix. Without such information, so, it is difficult to generate a sub-pattern (or super-pattern) by algorithm. So, formatting a <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a> is pattern-driven. It is very similar to formatting in <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent manne...">SimpleDateFormat</a>. We introduce class <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a> to save date interval patterns, similar to date time pattern in <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent manne...">SimpleDateFormat</a>.</p> <p>Logically, the interval patterns are mappings from (skeleton, the_largest_different_calendar_field) to (date_interval_pattern).</p> <p>A skeleton </p> <ol> <li> only keeps the field pattern letter and ignores all other parts in a pattern, such as space, punctuations, and string literals. </li> <li> hides the order of fields. </li> <li> might hide a field's pattern letter length. </li> </ol> <p>For those non-digit calendar fields, the pattern letter length is important, such as MMM, MMMM, and MMMMM; EEE and EEEE, and the field's pattern letter length is honored.</p> <p>For the digit calendar fields, such as M or MM, d or dd, yy or yyyy, the field pattern length is ignored and the best match, which is defined in date time patterns, will be returned without honor the field pattern letter length in skeleton.</p> <p>The calendar fields we support for interval formatting are: year, month, date, day-of-week, am-pm, hour, hour-of-day, and minute. Those calendar fields can be defined in the following order: year > month > date > hour (in day) > minute</p> <p>The largest different calendar fields between 2 calendars is the first different calendar field in above order.</p> <p>For example: the largest different calendar fields between "Jan 10, 2007" and "Feb 20, 2008" is year.</p> <p>For other calendar fields, the compact interval formatting is not supported. And the interval format will be fall back to fall-back patterns, which is mostly "{date0} - {date1}".</p> <p>There is a set of pre-defined static skeleton strings. There are pre-defined interval patterns for those pre-defined skeletons in locales' resource files. For example, for a skeleton UDAT_YEAR_ABBR_MONTH_DAY, which is "yMMMd", in en_US, if the largest different calendar field between date1 and date2 is "year", the date interval pattern is "MMM d, yyyy - MMM d, yyyy", such as "Jan 10, 2007 - Jan 10, 2008". If the largest different calendar field between date1 and date2 is "month", the date interval pattern is "MMM d - MMM d, yyyy", such as "Jan 10 - Feb 10, 2007". If the largest different calendar field between date1 and date2 is "day", the date interval pattern is ""MMM d-d, yyyy", such as "Jan 10-20, 2007".</p> <p>For date skeleton, the interval patterns when year, or month, or date is different are defined in resource files. For time skeleton, the interval patterns when am/pm, or hour, or minute is different are defined in resource files.</p> <p>If a skeleton is not found in a locale's <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a>, which means the interval patterns for the skeleton is not defined in resource file, the interval pattern will falls back to the interval "fallback" pattern defined in resource file. If the interval "fallback" pattern is not defined, the default fall-back is "{date0} - {data1}".</p> <p>For the combination of date and time, The rule to generate interval patterns are: </p> <ol> <li> when the year, month, or day differs, falls back to fall-back interval pattern, which mostly is the concatenate the two original expressions with a separator between, For example, interval pattern from "Jan 10, 2007 10:10 am" to "Jan 11, 2007 10:10am" is "Jan 10, 2007 10:10 am - Jan 11, 2007 10:10am" </li> <li> otherwise, present the date followed by the range expression for the time. For example, interval pattern from "Jan 10, 2007 10:10 am" to "Jan 10, 2007 11:10am" is "Jan 10, 2007 10:10 am - 11:10am" </li> </ol> <p>If two dates are the same, the interval pattern is the single date pattern. For example, interval pattern from "Jan 10, 2007" to "Jan 10, 2007" is "Jan 10, 2007".</p> <p>Or if the presenting fields between 2 dates have the exact same values, the interval pattern is the single date pattern. For example, if user only requests year and month, the interval pattern from "Jan 10, 2007" to "Jan 20, 2007" is "Jan 2007".</p> <p><a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> needs the following information for correct formatting: time zone, calendar type, pattern, date format symbols, and date interval patterns. It can be instantiated in 2 ways: </p> <ol> <li> create an instance using default or given locale plus given skeleton. Users are encouraged to created date interval formatter this way and to use the pre-defined skeleton macros, such as UDAT_YEAR_NUM_MONTH, which consists the calendar fields and the format style. </li> <li> create an instance using default or given locale plus given skeleton plus a given <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a>. This factory method is for powerful users who want to provide their own interval patterns. <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> provides the timezone, calendar, and format symbols information. Local plus skeleton provides full pattern information. <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a> provides the date interval patterns. </li> </ol> <p>For the calendar field pattern letter, such as G, y, M, d, a, h, H, m, s etc. <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> uses the same syntax as that of DateTime format.</p> <p>Code Sample: general usage </p> <pre> <div class="fragment"><div class="line">* <span class="comment">// the date interval object which the DateIntervalFormat formats on</span></div> <div class="line">* <span class="comment">// and parses into</span></div> <div class="line">* <a class="code" href="classDateInterval.html">DateInterval</a>* dtInterval = <span class="keyword">new</span> <a class="code" href="classDateInterval.html">DateInterval</a>(1000*3600*24, 1000*3600*24*2);</div> <div class="line">* <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> status = <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;</div> <div class="line">* <a class="code" href="classDateIntervalFormat.html">DateIntervalFormat</a>* dtIntervalFmt = <a class="code" href="classDateIntervalFormat.html#adc7c2da7b2f5e29fb6b4e9caf8f33318">DateIntervalFormat::createInstance</a>(</div> <div class="line">* UDAT_YEAR_MONTH_DAY, </div> <div class="line">* <a class="code" href="classLocale.html">Locale</a>(<span class="stringliteral">"en"</span>, <span class="stringliteral">"GB"</span>, <span class="stringliteral">""</span>), status);</div> <div class="line">* UnicodeUnicodeString dateIntervalString;</div> <div class="line">* <a class="code" href="classFieldPosition.html">FieldPosition</a> pos = 0;</div> <div class="line">* <span class="comment">// formatting</span></div> <div class="line">* dtIntervalFmt-><a class="code" href="classDateIntervalFormat.html#ad5163151a343dac64ad66c5680332ea3">format</a>(dtInterval, dateIntervalUnicodeString, pos, status);</div> <div class="line">* <span class="keyword">delete</span> dtIntervalFmt;</div> <div class="line">* </div> </div><!-- fragment --> </pre> <p>Definition at line <a class="el" href="dtitvfmt_8h_source.html#l00217">217</a> of file <a class="el" href="dtitvfmt_8h_source.html">dtitvfmt.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="aaaed5ba68951e3f5ae353a229f154bee"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual DateIntervalFormat::~DateIntervalFormat </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Destructor. </p> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000046">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="afed49bfd80382ac4269241c89aa522d8"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">DateIntervalFormat::DateIntervalFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a> & </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Copy constructor. </p> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000058">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="af9a584ad22ff3673323b26923f8c39b4"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classFormat.html">Format</a>* DateIntervalFormat::clone </td> <td>(</td> <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Clone this <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> object polymorphically. </p> <p>The caller owns the result and should delete it when done. </p> <dl class="section return"><dt>Returns</dt><dd>A copy of the object. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000047">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#a4e7ebd5cfd390c35e2bda88257f8b51a">Format</a>.</p> </div> </div> <a class="anchor" id="adc7c2da7b2f5e29fb6b4e9caf8f33318"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a>* DateIntervalFormat::createInstance </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>skeleton</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Construct a <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> from skeleton and the default locale. </p> <p>This is a convenient override of createInstance(const <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& skeleton, const <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>& locale, UErrorCode&) with the value of locale as default locale.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">skeleton</td><td>the skeleton on which interval format based. </td></tr> <tr><td class="paramname">status</td><td>output param set to success/failure code on exit </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a date time interval formatter which the caller owns. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000042">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="aeef98399b07aaceacd7fd58ee33171c5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a>* DateIntervalFormat::createInstance </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>skeleton</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Construct a <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> from skeleton and a given locale. </p> <p>In this factory method, the date interval pattern information is load from resource files. Users are encouraged to created date interval formatter this way and to use the pre-defined skeleton macros.</p> <p>There are pre-defined skeletons (defined in udate.h) having predefined interval patterns in resource files. Users are encouraged to use those macros. For example: DateIntervalFormat::createInstance(UDAT_MONTH_DAY, status)</p> <p>The given <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> provides the interval patterns. For example, for en_GB, if skeleton is UDAT_YEAR_ABBR_MONTH_WEEKDAY_DAY, which is "yMMMEEEd", the interval patterns defined in resource file to above skeleton are: "EEE, d MMM, yyyy - EEE, d MMM, yyyy" for year differs, "EEE, d MMM - EEE, d MMM, yyyy" for month differs, "EEE, d - EEE, d MMM, yyyy" for day differs, </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">skeleton</td><td>the skeleton on which interval format based. </td></tr> <tr><td class="paramname">locale</td><td>the given locale </td></tr> <tr><td class="paramname">status</td><td>output param set to success/failure code on exit </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a date time interval formatter which the caller owns. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000043">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a135df7221deb0e857f1c6d3b66ce7ef5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a>* DateIntervalFormat::createInstance </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>skeleton</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> & </td> <td class="paramname"><em>dtitvinf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Construct a <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> from skeleton <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a>, and default locale. </p> <p>This is a convenient override of createInstance(const <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& skeleton, const <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>& locale, const <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a>& dtitvinf, UErrorCode&) with the locale value as default locale.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">skeleton</td><td>the skeleton on which interval format based. </td></tr> <tr><td class="paramname">dtitvinf</td><td>the <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a> object. </td></tr> <tr><td class="paramname">status</td><td>output param set to success/failure code on exit </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a date time interval formatter which the caller owns. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000044">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="aa30507d97f93eb89008c5c907f6ccf27"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a>* DateIntervalFormat::createInstance </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>skeleton</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> & </td> <td class="paramname"><em>dtitvinf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Construct a <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...">DateIntervalFormat</a> from skeleton a <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a>, and the given locale. </p> <p>In this factory method, user provides its own date interval pattern information, instead of using those pre-defined data in resource file. This factory method is for powerful users who want to provide their own interval patterns. </p> <p>There are pre-defined skeletons (defined in udate.h) having predefined interval patterns in resource files. Users are encouraged to use those macros. For example: DateIntervalFormat::createInstance(UDAT_MONTH_DAY, status)</p> <p>The <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a> provides the interval patterns. and the <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a> ownership remains to the caller.</p> <p>User are encouraged to set default interval pattern in <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a> as well, if they want to set other interval patterns ( instead of reading the interval patterns from resource files). When the corresponding interval pattern for a largest calendar different field is not found ( if user not set it ), interval format fallback to the default interval pattern. If user does not provide default interval pattern, it fallback to "{date0} - {date1}"</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">skeleton</td><td>the skeleton on which interval format based. </td></tr> <tr><td class="paramname">locale</td><td>the given locale </td></tr> <tr><td class="paramname">dtitvinf</td><td>the <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...">DateIntervalInfo</a> object. </td></tr> <tr><td class="paramname">status</td><td>output param set to success/failure code on exit </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a date time interval formatter which the caller owns. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000045">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="ad5163151a343dac64ad66c5680332ea3"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& DateIntervalFormat::format </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> & </td> <td class="paramname"><em>obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"><em>fieldPosition</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> an object to produce a string. </p> <p>This method handles <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting. ">Formattable</a> objects with a <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a> type. If a the <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting. ">Formattable</a> object type is not a <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a>, then it returns a failing UErrorCode.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">obj</td><td>The object to format. Must be a <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a>. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> <tr><td class="paramname">fieldPosition</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr> <tr><td class="paramname">status</td><td>Output param filled with success/failure status. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000050">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#a12ffb857c5c9a553270dfe9a71fbd8e9">Format</a>.</p> </div> </div> <a class="anchor" id="a53179e87d3552d5f9f7802896a437947"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& DateIntervalFormat::format </td> <td>(</td> <td class="paramtype">const <a class="el" href="classDateInterval.html">DateInterval</a> * </td> <td class="paramname"><em>dtInterval</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"><em>fieldPosition</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> a <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a> to produce a string. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dtInterval</td><td><a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a> to be formatted. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> <tr><td class="paramname">fieldPosition</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr> <tr><td class="paramname">status</td><td>Output param filled with success/failure status. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000051">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="aaa08ad2bb46063a00f5b41500617a40d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& DateIntervalFormat::format </td> <td>(</td> <td class="paramtype"><a class="el" href="classCalendar.html">Calendar</a> & </td> <td class="paramname"><em>fromCalendar</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classCalendar.html">Calendar</a> & </td> <td class="paramname"><em>toCalendar</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"><em>fieldPosition</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> 2 Calendars to produce a string. </p> <p>Note: "fromCalendar" and "toCalendar" are not const, since calendar is not const in SimpleDateFormat::format(Calendar&),</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">fromCalendar</td><td>calendar set to the from date in date interval to be formatted into date interval string </td></tr> <tr><td class="paramname">toCalendar</td><td>calendar set to the to date in date interval to be formatted into date interval string </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> <tr><td class="paramname">fieldPosition</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr> <tr><td class="paramname">status</td><td>Output param filled with success/failure status. Caller needs to make sure it is SUCCESS at the function entrance </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000052">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="acd674a6d5214ef0e7507637b5f8f9c89"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classDateFormat.html">DateFormat</a>* DateIntervalFormat::getDateFormat </td> <td>(</td> <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Gets the date formatter. </p> <dl class="section return"><dt>Returns</dt><dd>the date formatter associated with this date interval formatter. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000055">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a7508e46babb623d1383c8f85f09f1bb0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a>* DateIntervalFormat::getDateIntervalInfo </td> <td>(</td> <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Gets the date time interval patterns. </p> <dl class="section return"><dt>Returns</dt><dd>the date time interval patterns associated with this date interval formatter. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000053">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a476faa13a44ff11411beaeb69158dd68"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> DateIntervalFormat::getDynamicClassID </td> <td>(</td> <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns a unique class ID POLYMORPHICALLY. </p> <p>Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic <a class="el" href="classDateIntervalFormat.html#adb057520899e7e878c54152f990c6b28" title="Return true if the given Format objects are semantically equal. ">operator==()</a> and <a class="el" href="classDateIntervalFormat.html#af9a584ad22ff3673323b26923f8c39b4" title="Clone this Format object polymorphically. ">clone()</a> methods call this method.</p> <dl class="section return"><dt>Returns</dt><dd>The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000057">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#ac961d410d174518e5a3ebb8bbef45cd7">Format</a>.</p> </div> </div> <a class="anchor" id="ad2e287b02ed2899a3dd28d6d1414a352"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> DateIntervalFormat::getStaticClassID </td> <td>(</td> <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return the class ID for this class. </p> <p>This is useful only for comparing to a return value from <a class="el" href="classDateIntervalFormat.html#a476faa13a44ff11411beaeb69158dd68" title="Returns a unique class ID POLYMORPHICALLY. ">getDynamicClassID()</a>. For example: </p> <pre> . Base* polymorphic_pointer = createPolymorphicObject(); . if (polymorphic_pointer-><a class="el" href="classDateIntervalFormat.html#a476faa13a44ff11411beaeb69158dd68" title="Returns a unique class ID POLYMORPHICALLY. ">getDynamicClassID()</a> == . erived::getStaticClassID()) ... </pre> <dl class="section return"><dt>Returns</dt><dd>The class ID for all objects of this class. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000056">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="ae1cd1ea9874e3da1d8e7c417850360ad"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DateIntervalFormat::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormat.html">Format</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return true if the given <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> objects are not semantically equal. </p> <p>Objects of different subclasses are considered unequal. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>the object to be compared with. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>true if the given <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> objects are not semantically equal. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000049">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Definition at line <a class="el" href="dtitvfmt_8h_source.html#l00940">940</a> of file <a class="el" href="dtitvfmt_8h_source.html">dtitvfmt.h</a>.</p> <p>References <a class="el" href="classDateIntervalFormat.html#adb057520899e7e878c54152f990c6b28">operator==()</a>.</p> </div> </div> <a class="anchor" id="a65a1f1d51dd4d5ac269050b220033ea5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a>& DateIntervalFormat::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a> & </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Assignment operator. </p> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000059">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="adb057520899e7e878c54152f990c6b28"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DateIntervalFormat::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormat.html">Format</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return true if the given <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> objects are semantically equal. </p> <p>Objects of different subclasses are considered unequal. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>the object to be compared with. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>true if the given <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> objects are semantically equal. </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000048">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#ad9be7e8b7bef97013ff74ef1be3903a5">Format</a>.</p> <p>Referenced by <a class="el" href="dtitvfmt_8h_source.html#l00940">operator!=()</a>.</p> </div> </div> <a class="anchor" id="a30cd01f77584059579d72912df3e2bea"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> DateIntervalFormat::parseObject </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>source</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFormattable.html">Formattable</a> & </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classParsePosition.html">ParsePosition</a> & </td> <td class="paramname"><em>parse_pos</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Date interval parsing is not supported. </p> <p>Please do not use. </p> <p>This method should handle parsing of date time interval strings into <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting. ">Formattable</a> objects with <a class="el" href="classDateInterval.html" title="This class represents a date interval. ">DateInterval</a> type, which is a pair of UDate. </p> <p>Before calling, set parse_pos.index to the offset you want to start parsing at in the source. After calling, parse_pos.index is the end of the text you parsed. If error occurs, index is unchanged. </p> <p>When parsing, leading whitespace is discarded (with a successful parse), while trailing whitespace is left as is. </p> <p>See <a class="el" href="classFormat.html#aa53bea97b986c2f21e5638aa30aa08b7" title="Parse a string to produce an object. ">Format::parseObject()</a> for more.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">source</td><td>The string to be parsed into an object. </td></tr> <tr><td class="paramname">result</td><td><a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting. ">Formattable</a> to be set to the parse result. If parse fails, return contents are undefined. </td></tr> <tr><td class="paramname">parse_pos</td><td>The position to start parsing at. Since no parsing is supported, upon return this param is unchanged. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A newly created Formattable* object, or NULL on failure. The caller owns this and should delete it when done. </dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000194">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#aa53bea97b986c2f21e5638aa30aa08b7">Format</a>.</p> </div> </div> <a class="anchor" id="af90019c51abd9d92960dbe90043697b2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> DateIntervalFormat::setDateIntervalInfo </td> <td>(</td> <td class="paramtype">const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> & </td> <td class="paramname"><em>newIntervalPatterns</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Set the date time interval patterns. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">newIntervalPatterns</td><td>the given interval patterns to copy. </td></tr> <tr><td class="paramname">status</td><td>output param set to success/failure code on exit </td></tr> </table> </dd> </dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000054">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="dtitvfmt_8h_source.html">dtitvfmt.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>