Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f51238514e2abe817779ad2fe01b0759 > files > 182

icu-doc-4.4-2.1mdv2010.2.i586.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!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"/>
<title>ICU 4.4: SimpleDateFormat Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.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)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>SimpleDateFormat Class Reference</h1><!-- doxytag: class="SimpleDateFormat" --><!-- doxytag: inherits="DateFormat" -->
<p><a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> is a concrete class for formatting and parsing dates in a language-independent manner.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for SimpleDateFormat:</div>
<div class="dynsection">
 <div class="center">
  <img src="classSimpleDateFormat.gif" usemap="#SimpleDateFormat_map" alt=""/>
  <map id="SimpleDateFormat_map" name="SimpleDateFormat_map">
<area href="classDateFormat.html" alt="DateFormat" shape="rect" coords="0,168,114,192"/>
<area href="classFormat.html" alt="Format" shape="rect" coords="0,112,114,136"/>
<area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,114,80"/>
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,114,24"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><b>NSOverride</b></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#aac959d0d6f03e31837e1b7221436f65a">SimpleDateFormat</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the default pattern for the default locale.  <a href="#aac959d0d6f03e31837e1b7221436f65a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#af26818e4c01a1a344f95d2742851e6b6">SimpleDateFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern and the default locale.  <a href="#af26818e4c01a1a344f95d2742851e6b6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a084a4273b739f4225812d3e6aea5660e">SimpleDateFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;override, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern, numbering system override, and the default locale.  <a href="#a084a4273b739f4225812d3e6aea5660e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ac327ded362ebd360f3a3c855ddbbfdba">SimpleDateFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, const <a class="el" href="classLocale.html">Locale</a> &amp;locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern and locale.  <a href="#ac327ded362ebd360f3a3c855ddbbfdba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a61b5c0f0a773f07f418fec03658d0e4d">SimpleDateFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;override, const <a class="el" href="classLocale.html">Locale</a> &amp;locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern, numbering system override, and locale.  <a href="#a61b5c0f0a773f07f418fec03658d0e4d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a6d93e872ff95ab9b13797c3c8df36ed4">SimpleDateFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> *formatDataToAdopt, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern and locale-specific symbol data.  <a href="#a6d93e872ff95ab9b13797c3c8df36ed4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a698e2c463f36eb98c100d7e6b14df019">SimpleDateFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, const <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> &amp;formatData, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern and locale-specific symbol data.  <a href="#a698e2c463f36eb98c100d7e6b14df019"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#aebfb20e1e8ae1dbc51d4e5ac80f7fa75">SimpleDateFormat</a> (const <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#aebfb20e1e8ae1dbc51d4e5ac80f7fa75"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a9150f0dbd293cf22a470e932d77633fe">operator=</a> (const <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator.  <a href="#a9150f0dbd293cf22a470e932d77633fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ae4f200518c4e94db50ea6cf44b54a3b5">~SimpleDateFormat</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#ae4f200518c4e94db50ea6cf44b54a3b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classFormat.html">Format</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a7e779c3f80b4bb518e2e4d4907c3db3f">clone</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clone this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object polymorphically.  <a href="#a7e779c3f80b4bb518e2e4d4907c3db3f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a349ffdf4204e4a6b0fec2c473ceaacb3">operator==</a> (const <a class="el" href="classFormat.html">Format</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</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="#a349ffdf4204e4a6b0fec2c473ceaacb3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49">format</a> (<a class="el" href="classCalendar.html">Calendar</a> &amp;cal, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970.  <a href="#a618b8ffd208cb29851d12d1db5babc49"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a2d35fb3be6fb7c1b6e45608dfb4a2e67">format</a> (<a class="el" href="classCalendar.html">Calendar</a> &amp;cal, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970.  <a href="#a2d35fb3be6fb7c1b6e45608dfb4a2e67"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#af969f9c7fbfc2cc9dd861dd011ef94e0">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &amp;obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970.  <a href="#af969f9c7fbfc2cc9dd861dd011ef94e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a4d850ae27a73071330e44ed64cfc2be9">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &amp;obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970.  <a href="#a4d850ae27a73071330e44ed64cfc2be9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a9e433ca3258272be455b61f0a06c33eb">format</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;fieldPosition) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> method.  <a href="#a9e433ca3258272be455b61f0a06c33eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a6846d871f096d6f51cdc1b48b4efad8a">format</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> method.  <a href="#a6846d871f096d6f51cdc1b48b4efad8a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#aab9dc1c3bc84ac480ee1bc1c05d6126a">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &amp;obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> method.  <a href="#aab9dc1c3bc84ac480ee1bc1c05d6126a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a89fc0802cd8e84902313b585726c4549">format</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> method.  <a href="#a89fc0802cd8e84902313b585726c4549"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a3d26207eb58fd0afc0c41f58e5caf56f">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classCalendar.html">Calendar</a> &amp;cal, <a class="el" href="classParsePosition.html">ParsePosition</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse a date/time string beginning at the given parse position.  <a href="#a3d26207eb58fd0afc0c41f58e5caf56f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a4cfd7300952296fcf2e35ed67e5127dd">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classParsePosition.html">ParsePosition</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse a date/time string starting at the given parse position.  <a href="#a4cfd7300952296fcf2e35ed67e5127dd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ad824c9ccee2a56fb54c2384989bb80f7">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse a date/time string.  <a href="#ad824c9ccee2a56fb54c2384989bb80f7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#abc869d3e1b35b4c8a81e005e3f23c28f">set2DigitYearStart</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> d, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the start UDate used to interpret two-digit year strings.  <a href="#abc869d3e1b35b4c8a81e005e3f23c28f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#af397530a09c5d705210384b7edd237ed">get2DigitYearStart</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the start UDate used to interpret two-digit year strings.  <a href="#af397530a09c5d705210384b7edd237ed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a36952c70a195a18dc2d71e8d8e600d3b">toPattern</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a pattern string describing this date format.  <a href="#a36952c70a195a18dc2d71e8d8e600d3b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ae8afbe51b43dd76856d26b761276b921">toLocalizedPattern</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a localized pattern string describing this date format.  <a href="#ae8afbe51b43dd76856d26b761276b921"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ad6dcbf05065e6b18ef7985cb2ebc01f2">applyPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Apply the given unlocalized pattern string to this date format.  <a href="#ad6dcbf05065e6b18ef7985cb2ebc01f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ab177ad8b128f13bd84c29e419233d3fe">applyLocalizedPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Apply the given localized pattern string to this date format.  <a href="#ab177ad8b128f13bd84c29e419233d3fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#afb3ffb2587d5070769b73f303b592715">getDateFormatSymbols</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the date/time formatting symbols (this is an object carrying the various strings and other symbols used in formatting: e.g., month names and abbreviations, time zone names, AM/PM strings, etc.  <a href="#afb3ffb2587d5070769b73f303b592715"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ad93f7d1db5193ed784cd83ccfb647503">adoptDateFormatSymbols</a> (<a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> *newFormatSymbols)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the date/time formatting symbols.  <a href="#ad93f7d1db5193ed784cd83ccfb647503"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a972ac03adeab58abcafd7c6da2bdf913">setDateFormatSymbols</a> (const <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> &amp;newFormatSymbols)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the date/time formatting data.  <a href="#a972ac03adeab58abcafd7c6da2bdf913"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a8b106f7a1c7ea5757aaca9cc3a16a348">getDynamicClassID</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a unique class ID POLYMORPHICALLY.  <a href="#a8b106f7a1c7ea5757aaca9cc3a16a348"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a66975f632ef7ce796eeaad1e0e6b33b5">adoptCalendar</a> (<a class="el" href="classCalendar.html">Calendar</a> *calendarToAdopt)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the calendar to be used by this date format.  <a href="#a66975f632ef7ce796eeaad1e0e6b33b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ace86b45a8051b15dca1b62587aae533c">isFieldUnitIgnored</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This is for ICU internal use only.  <a href="#ace86b45a8051b15dca1b62587aae533c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a27c253dd7595df456ae736047215109b">getSmpFmtLocale</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This is for ICU internal use only.  <a href="#a27c253dd7595df456ae736047215109b"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a2188b47b32836a2de7d827778b34de87">getStaticClassID</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class ID for this class.  <a href="#a2188b47b32836a2de7d827778b34de87"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a2ab33be44a6cbe7203dd8efc69d69f37">isFieldUnitIgnored</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This is for ICU internal use only.  <a href="#a2ab33be44a6cbe7203dd8efc69d69f37"></a><br/></td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a369bfc31e5e941bae4ec355f203ea9e8"></a><!-- doxytag: member="SimpleDateFormat::DateFormat" ref="a369bfc31e5e941bae4ec355f203ea9e8" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#a369bfc31e5e941bae4ec355f203ea9e8">DateFormat</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> is a concrete class for formatting and parsing dates in a language-independent manner. </p>
<p>It allows for formatting (millis -&gt; text), parsing (text -&gt; millis), and normalization. Formats/Parses a date or time, which is the standard milliseconds since 24:00 GMT, Jan 1, 1970. </p>
<p>Clients are encouraged to create a date-time formatter using DateFormat::getInstance(), getDateInstance(), getDateInstance(), or getDateTimeInstance() rather than explicitly constructing an instance of <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>. This way, the client is guaranteed to get an appropriate formatting pattern for whatever locale the program is running in. However, if the client needs something more unusual than the default patterns in the locales, he can construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> directly and give it an appropriate pattern (or use one of the factory methods on <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> and modify the pattern after the fact with <a class="el" href="classSimpleDateFormat.html#a36952c70a195a18dc2d71e8d8e600d3b" title="Return a pattern string describing this date format.">toPattern()</a> and <a class="el" href="classSimpleDateFormat.html#ad6dcbf05065e6b18ef7985cb2ebc01f2" title="Apply the given unlocalized pattern string to this date format.">applyPattern()</a>. </p>
<p>Date/Time format syntax: </p>
<p>The date/time format is specified by means of a string time pattern. In this pattern, all ASCII letters are reserved as pattern letters, which are defined as the following: </p>
<pre>
 <div class="fragment"><pre class="fragment"> Symbol   Meaning                 Presentation        Example
 ------   -------                 ------------        -------
 G        era designator          (Text)              AD
 y        year                    (Number)            1996
 Y        year (week of year)     (Number)            1997
 u        extended year           (Number)            4601
 Q        Quarter                 (Text &amp; Number)     Q2 &amp; 02
 M        month in year           (Text &amp; Number)     July &amp; 07
 d        day in month            (Number)            10
 h        hour in am/pm (1~12)    (Number)            12
 H        hour in day (0~23)      (Number)            0
 m        minute in hour          (Number)            30
 s        second in minute        (Number)            55
 S        fractional second       (Number)            978
 E        day of week             (Text)              Tuesday
 e        day of week (local 1~7) (Text &amp; Number)     Tues &amp; 2
 D        day in year             (Number)            189
 F        day of week in month    (Number)            2 (2nd Wed in July)
 w        week in year            (Number)            27
 W        week in month           (Number)            2
 a        am/pm marker            (Text)              PM
 k        hour in day (1~24)      (Number)            24
 K        hour in am/pm (0~11)    (Number)            0
 z        time zone               (Time)              Pacific Standard Time
 Z        time zone (RFC 822)     (Number)            -0800
 v        time zone (generic)     (Text)              Pacific Time
 V        time zone (abreviation) (Text)              PT
 VVVV     time zone (location)    (Text)              United States (Los Angeles)
 g        Julian day              (Number)            2451334
 A        milliseconds in day     (Number)            69540000
 q        stand alone quarter     (Text &amp; Number)     Q2 &amp; 02
 L        stand alone month       (Text &amp; Number)     July &amp; 07
 c        stand alone day of week (Text &amp; Number)     Tuesday &amp; 2
 &apos;        escape for text         (Delimiter)         &apos;Date=&apos;
 &apos;&apos;       single quote            (Literal)           &apos;o&apos;&apos;clock&apos;
</pre></div>
 </pre><p> The count of pattern letters determine the format. </p>
<p>(Text): 4 or more, use full form, &lt;4, use short or abbreviated form if it exists. (e.g., "EEEE" produces "Monday", "EEE" produces "Mon") </p>
<p>(Number): the minimum number of digits. Shorter numbers are zero-padded to this amount (e.g. if "m" produces "6", "mm" produces "06"). Year is handled specially; that is, if the count of 'y' is 2, the Year will be truncated to 2 digits. (e.g., if "yyyy" produces "1997", "yy" produces "97".) Unlike other fields, fractional seconds are padded on the right with zero. </p>
<p>(Text &amp; Number): 3 or over, use text, otherwise use number. (e.g., "M" produces "1", "MM" produces "01", "MMM" produces "Jan", and "MMMM" produces "January".) </p>
<p>Any characters in the pattern that are not in the ranges of ['a'..'z'] and ['A'..'Z'] will be treated as quoted text. For instance, characters like ':', '.', ' ', '#' and '@' will appear in the resulting time text even they are not embraced within single quotes. </p>
<p>A pattern containing any invalid pattern letter will result in a failing UErrorCode result during formatting or parsing. </p>
<p>Examples using the US locale: </p>
<pre>
 <div class="fragment"><pre class="fragment">    <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a> Pattern                         Result
    --------------                         -------
    <span class="stringliteral">&quot;yyyy.MM.dd G &apos;at&apos; HH:mm:ss vvvv&quot;</span> -&gt;&gt;  1996.07.10 AD at 15:08:56 Pacific Time
    <span class="stringliteral">&quot;EEE, MMM d, &apos;&apos;yy&quot;</span>                -&gt;&gt;  Wed, July 10, <span class="stringliteral">&apos;96</span>
<span class="stringliteral">    &quot;h:mm a&quot;                          -&gt;&gt;  12:08 PM</span>
<span class="stringliteral">    &quot;hh &apos;</span>o<span class="stringliteral">&apos;&apos;</span>clock<span class="stringliteral">&apos; a, zzzz&quot;           -&gt;&gt;  12 o&apos;</span>clock PM, Pacific Daylight Time
    <span class="stringliteral">&quot;K:mm a, vvv&quot;</span>                     -&gt;&gt;  0:00 PM, PT
    <span class="stringliteral">&quot;yyyyy.MMMMM.dd GGG hh:mm aaa&quot;</span>    -&gt;&gt;  1996.July.10 AD 12:08 PM
</pre></div>
 </pre><p> Code Sample: </p>
<pre>
 <div class="fragment"><pre class="fragment">     <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> success = <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9" title="No error, no warning.">U_ZERO_ERROR</a>;
     <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>* pdt = <span class="keyword">new</span> <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>(-8 * 60 * 60 * 1000, <span class="stringliteral">&quot;PST&quot;</span>);
     pdt-&gt;<a class="code" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule</a>( Calendar::APRIL, 1, Calendar::SUNDAY, 2*60*60*1000);
     pdt-&gt;<a class="code" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797" title="Sets the daylight savings ending rule.">setEndRule</a>( Calendar::OCTOBER, -1, Calendar::SUNDAY, 2*60*60*1000);

     <span class="comment">// Format the current time.</span>
     <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>* formatter
         = <span class="keyword">new</span> <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> (<span class="stringliteral">&quot;yyyy.MM.dd G &apos;at&apos; hh:mm:ss a zzz&quot;</span>, success );
     <a class="code" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> cal(success);
     <a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> currentTime_1 = cal.getTime(success);
     <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a> fp(0);
     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> dateString;
     formatter-&gt;<a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">format</a>( currentTime_1, dateString, fp );
     cout &lt;&lt; <span class="stringliteral">&quot;result: &quot;</span> &lt;&lt; dateString &lt;&lt; endl;

     <span class="comment">// Parse the previous string back into a Date.</span>
     <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a> pp(0);
     <a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> currentTime_2 = formatter-&gt;<a class="code" href="classSimpleDateFormat.html#a3d26207eb58fd0afc0c41f58e5caf56f" title="Parse a date/time string beginning at the given parse position.">parse</a>(dateString, pp );
</pre></div>
 </pre><p> In the above example, the time value "currentTime_2" obtained from parsing will be equal to currentTime_1. However, they may not be equal if the am/pm marker 'a' is left out from the format pattern while the "hour in am/pm" pattern symbol is used. This information loss can happen when formatting the time in PM.</p>
<p>When parsing a date string using the abbreviated year pattern ("y" or "yy"), <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> must interpret the abbreviated year relative to some century. It does this by adjusting dates to be within 80 years before and 20 years after the time the <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> instance is created. For example, using a pattern of "MM/dd/yy" and a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> instance created on Jan 1, 1997, the string "01/11/12" would be interpreted as Jan 11, 2012 while the string "05/04/64" would be interpreted as May 4, 1964. During parsing, only strings consisting of exactly two digits, as defined by <code>Unicode::isDigit()</code>, will be parsed into the default century. Any other numeric string, such as a one digit string, a three or more digit string, or a two digit string that isn't all digits (for example, "-1"), is interpreted literally. So "01/02/3" or "01/02/003" are parsed, using the same pattern, as Jan 2, 3 AD. Likewise, "01/02/-3" is parsed as Jan 2, 4 BC.</p>
<p>If the year pattern has more than two 'y' characters, the year is interpreted literally, regardless of the number of digits. So using the pattern "MM/dd/yyyy", "01/11/12" parses to Jan 11, 12 A.D.</p>
<p>When numeric fields abut one another directly, with no intervening delimiter characters, they constitute a run of abutting numeric fields. Such runs are parsed specially. For example, the format "HHmmss" parses the input text "123456" to 12:34:56, parses the input text "12345" to 1:23:45, and fails to parse "1234". In other words, the leftmost field of the run is flexible, while the others keep a fixed width. If the parse fails anywhere in the run, then the leftmost field is shortened by one character, and the entire run is parsed again. This is repeated until either the parse succeeds or the leftmost field is one character in length. If the parse still fails at that point, the parse of the run fails.</p>
<p>For time zones that have no names, <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> uses strings GMT+hours:minutes or GMT-hours:minutes. </p>
<p>The calendar defines what is the first day of the week, the first week of the year, whether hours are zero based or not (0 vs 12 or 24), and the timezone. There is one common number format to handle all the numbers; the digit count is handled programmatically according to the pattern.</p>
<p><em>User subclasses are not supported.</em> While clients may write subclasses, such code will not necessarily work and will not be guaranteed to work stably from release to release. </p>

<p>Definition at line <a class="el" href="smpdtfmt_8h_source.html#l00215">215</a> of file <a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aac959d0d6f03e31837e1b7221436f65a"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="aac959d0d6f03e31837e1b7221436f65a" args="(UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleDateFormat::SimpleDateFormat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the default pattern for the default locale. </p>
<p>[Note:] Not all locales support <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>; for full generality, use the factory methods in the <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> class. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003111">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="af26818e4c01a1a344f95d2742851e6b6"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="af26818e4c01a1a344f95d2742851e6b6" args="(const UnicodeString &amp;pattern, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleDateFormat::SimpleDateFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern and the default locale. </p>
<p>The locale is used to obtain the symbols used in formatting (e.g., the names of the months), but not to provide the pattern. </p>
<p>[Note:] Not all locales support <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>; for full generality, use the factory methods in the <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> class. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>the pattern for the format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003112">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a084a4273b739f4225812d3e6aea5660e"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="a084a4273b739f4225812d3e6aea5660e" args="(const UnicodeString &amp;pattern, const UnicodeString &amp;override, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleDateFormat::SimpleDateFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>override</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern, numbering system override, and the default locale. </p>
<p>The locale is used to obtain the symbols used in formatting (e.g., the names of the months), but not to provide the pattern. </p>
<p>A numbering system override is a string containing either the name of a known numbering system, or a set of field and numbering system pairs that specify which fields are to be formattied with the alternate numbering system. For example, to specify that all numeric fields in the specified date or time pattern are to be rendered using Thai digits, simply specify the numbering system override as "thai". To specify that just the year portion of the date be formatted using Hebrew numbering, use the override string "y=hebrew". Numbering system overrides can be combined using a semi-colon character in the override string, such as "d=decimal;M=arabic;y=hebrew", etc.</p>
<p>[Note:] Not all locales support <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>; for full generality, use the factory methods in the <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> class. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>the pattern for the format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>override</em>&nbsp;</td><td>the override string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003113">Stable:</a></b></dt><dd>ICU 4.2 </dd></dl>

</div>
</div>
<a class="anchor" id="ac327ded362ebd360f3a3c855ddbbfdba"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="ac327ded362ebd360f3a3c855ddbbfdba" args="(const UnicodeString &amp;pattern, const Locale &amp;locale, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleDateFormat::SimpleDateFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern and locale. </p>
<p>The locale is used to obtain the symbols used in formatting (e.g., the names of the months), but not to provide the pattern. </p>
<p>[Note:] Not all locales support <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>; for full generality, use the factory methods in the <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> class. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>the pattern for the format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the given locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003114">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a61b5c0f0a773f07f418fec03658d0e4d"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="a61b5c0f0a773f07f418fec03658d0e4d" args="(const UnicodeString &amp;pattern, const UnicodeString &amp;override, const Locale &amp;locale, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleDateFormat::SimpleDateFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>override</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern, numbering system override, and locale. </p>
<p>The locale is used to obtain the symbols used in formatting (e.g., the names of the months), but not to provide the pattern. </p>
<p>A numbering system override is a string containing either the name of a known numbering system, or a set of field and numbering system pairs that specify which fields are to be formattied with the alternate numbering system. For example, to specify that all numeric fields in the specified date or time pattern are to be rendered using Thai digits, simply specify the numbering system override as "thai". To specify that just the year portion of the date be formatted using Hebrew numbering, use the override string "y=hebrew". Numbering system overrides can be combined using a semi-colon character in the override string, such as "d=decimal;M=arabic;y=hebrew", etc. </p>
<p>[Note:] Not all locales support <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>; for full generality, use the factory methods in the <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> class. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>the pattern for the format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>override</em>&nbsp;</td><td>the numbering system override. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the given locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003115">Stable:</a></b></dt><dd>ICU 4.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a6d93e872ff95ab9b13797c3c8df36ed4"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="a6d93e872ff95ab9b13797c3c8df36ed4" args="(const UnicodeString &amp;pattern, DateFormatSymbols *formatDataToAdopt, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleDateFormat::SimpleDateFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> *&nbsp;</td>
          <td class="paramname"> <em>formatDataToAdopt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern and locale-specific symbol data. </p>
<p>The formatter takes ownership of the <a class="el" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a> object; the caller is no longer responsible for deleting it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>the given pattern for the format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>formatDataToAdopt</em>&nbsp;</td><td>the symbols to be adopted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/faulure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003116">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a698e2c463f36eb98c100d7e6b14df019"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="a698e2c463f36eb98c100d7e6b14df019" args="(const UnicodeString &amp;pattern, const DateFormatSymbols &amp;formatData, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleDateFormat::SimpleDateFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>formatData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> using the given pattern and locale-specific symbol data. </p>
<p>The <a class="el" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a> object is NOT adopted; the caller remains responsible for deleting it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>the given pattern for the format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>formatData</em>&nbsp;</td><td>the formatting symbols to be use. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/faulure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003117">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aebfb20e1e8ae1dbc51d4e5ac80f7fa75"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="aebfb20e1e8ae1dbc51d4e5ac80f7fa75" args="(const SimpleDateFormat &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleDateFormat::SimpleDateFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> &amp;&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy constructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003118">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ae4f200518c4e94db50ea6cf44b54a3b5"></a><!-- doxytag: member="SimpleDateFormat::~SimpleDateFormat" ref="ae4f200518c4e94db50ea6cf44b54a3b5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual SimpleDateFormat::~SimpleDateFormat </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003120">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a66975f632ef7ce796eeaad1e0e6b33b5"></a><!-- doxytag: member="SimpleDateFormat::adoptCalendar" ref="a66975f632ef7ce796eeaad1e0e6b33b5" args="(Calendar *calendarToAdopt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SimpleDateFormat::adoptCalendar </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html">Calendar</a> *&nbsp;</td>
          <td class="paramname"> <em>calendarToAdopt</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the calendar to be used by this date format. </p>
<p>Initially, the default calendar for the specified or default locale is used. The caller should not delete the <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object after it is adopted by this call. Adopting a new calendar will change to the default symbols.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>calendarToAdopt</em>&nbsp;</td><td><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object to be adopted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003142">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#a82d9d571d5764024766bb3750759bb4b">DateFormat</a>.</p>

</div>
</div>
<a class="anchor" id="ad93f7d1db5193ed784cd83ccfb647503"></a><!-- doxytag: member="SimpleDateFormat::adoptDateFormatSymbols" ref="ad93f7d1db5193ed784cd83ccfb647503" args="(DateFormatSymbols *newFormatSymbols)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SimpleDateFormat::adoptDateFormatSymbols </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> *&nbsp;</td>
          <td class="paramname"> <em>newFormatSymbols</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the date/time formatting symbols. </p>
<p>The caller no longer owns the <a class="el" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a> object and should not delete it after making this call. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newFormatSymbols</em>&nbsp;</td><td>the given date-time formatting symbols to copy. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003138">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ab177ad8b128f13bd84c29e419233d3fe"></a><!-- doxytag: member="SimpleDateFormat::applyLocalizedPattern" ref="ab177ad8b128f13bd84c29e419233d3fe" args="(const UnicodeString &amp;pattern, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SimpleDateFormat::applyLocalizedPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Apply the given localized pattern string to this date format. </p>
<p>(see <a class="el" href="classSimpleDateFormat.html#ae8afbe51b43dd76856d26b761276b921" title="Return a localized pattern string describing this date format.">toLocalizedPattern()</a> for more information on localized patterns.)</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>The localized pattern to be applied. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If the pattern is invalid, this will be set to a failure result. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003136">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ad6dcbf05065e6b18ef7985cb2ebc01f2"></a><!-- doxytag: member="SimpleDateFormat::applyPattern" ref="ad6dcbf05065e6b18ef7985cb2ebc01f2" args="(const UnicodeString &amp;pattern)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SimpleDateFormat::applyPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Apply the given unlocalized pattern string to this date format. </p>
<p>(i.e., after this call, this formatter will format dates according to the new pattern)</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>The pattern to be applied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003135">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a7e779c3f80b4bb518e2e4d4907c3db3f"></a><!-- doxytag: member="SimpleDateFormat::clone" ref="a7e779c3f80b4bb518e2e4d4907c3db3f" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classFormat.html">Format</a>* SimpleDateFormat::clone </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></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="return"><dt><b>Returns:</b></dt><dd>A copy of the object. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003121">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classFormat.html#a4e7ebd5cfd390c35e2bda88257f8b51a">Format</a>.</p>

</div>
</div>
<a class="anchor" id="a89fc0802cd8e84902313b585726c4549"></a><!-- doxytag: member="SimpleDateFormat::format" ref="a89fc0802cd8e84902313b585726c4549" args="(UDate date, UnicodeString &amp;appendTo) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; SimpleDateFormat::format </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redeclared <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> method. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>Date value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003127">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#a85657ecb3891e2f94b7aadcf0741528a">DateFormat</a>.</p>

<p>Definition at line <a class="el" href="smpdtfmt_8h_source.html#l01199">1199</a> of file <a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</a>.</p>

<p>References <a class="el" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49">format()</a>.</p>

</div>
</div>
<a class="anchor" id="aab9dc1c3bc84ac480ee1bc1c05d6126a"></a><!-- doxytag: member="SimpleDateFormat::format" ref="aab9dc1c3bc84ac480ee1bc1c05d6126a" args="(const Formattable &amp;obj, UnicodeString &amp;appendTo, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; SimpleDateFormat::format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redeclared <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> method. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>obj</em>&nbsp;</td><td>Object to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Input/output success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003126">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#a5f83e587088badccff4ef25b4b8fcd78">DateFormat</a>.</p>

<p>Definition at line <a class="el" href="smpdtfmt_8h_source.html#l01149">1149</a> of file <a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</a>.</p>

<p>References <a class="el" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49">format()</a>.</p>

</div>
</div>
<a class="anchor" id="a6846d871f096d6f51cdc1b48b4efad8a"></a><!-- doxytag: member="SimpleDateFormat::format" ref="a6846d871f096d6f51cdc1b48b4efad8a" args="(UDate date, UnicodeString &amp;appendTo, FieldPositionIterator *posIter, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; SimpleDateFormat::format </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>posIter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redeclared <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> method. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>the Date value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>posIter</em>&nbsp;</td><td>On return, can be used to iterate over positions of fields generated by this format call. Field values are defined in UDateFormatField. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Input/output param set to success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000199">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#a0ffa389af7f314f345ab092e2d8d07cb">DateFormat</a>.</p>

<p>Definition at line <a class="el" href="smpdtfmt_8h_source.html#l01189">1189</a> of file <a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</a>.</p>

<p>References <a class="el" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49">format()</a>.</p>

</div>
</div>
<a class="anchor" id="a9e433ca3258272be455b61f0a06c33eb"></a><!-- doxytag: member="SimpleDateFormat::format" ref="a9e433ca3258272be455b61f0a06c33eb" args="(UDate date, UnicodeString &amp;appendTo, FieldPosition &amp;fieldPosition) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; SimpleDateFormat::format </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>fieldPosition</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redeclared <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> method. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>the Date value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fieldPosition</em>&nbsp;</td><td>The formatting position. On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003125">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#a8eef30d8294185a29bc755292219daf7">DateFormat</a>.</p>

<p>Definition at line <a class="el" href="smpdtfmt_8h_source.html#l01180">1180</a> of file <a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</a>.</p>

<p>References <a class="el" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49">format()</a>.</p>

</div>
</div>
<a class="anchor" id="a4d850ae27a73071330e44ed64cfc2be9"></a><!-- doxytag: member="SimpleDateFormat::format" ref="a4d850ae27a73071330e44ed64cfc2be9" args="(const Formattable &amp;obj, UnicodeString &amp;appendTo, FieldPositionIterator *posIter, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; SimpleDateFormat::format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>posIter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970. </p>
<p>Overrides <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> pure virtual method. </p>
<p>Example: using the US locale: "yyyy.MM.dd e 'at' HH:mm:ss zzz" -&gt;&gt; 1996.07.10 AD at 15:08:56 PDT</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>obj</em>&nbsp;</td><td>A <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> containing the date-time value to be formatted into a date-time string. If the type of the <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> is a numeric type, it is treated as if it were an instance of Date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>posIter</em>&nbsp;</td><td>On return, can be used to iterate over positions of fields generated by this format call. Field values are defined in UDateFormatField. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Input/output param set to success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000198">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#ada22d0b844417bdcf425d5613fd9979e">DateFormat</a>.</p>

<p>Definition at line <a class="el" href="smpdtfmt_8h_source.html#l01169">1169</a> of file <a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</a>.</p>

<p>References <a class="el" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49">format()</a>.</p>

</div>
</div>
<a class="anchor" id="af969f9c7fbfc2cc9dd861dd011ef94e0"></a><!-- doxytag: member="SimpleDateFormat::format" ref="af969f9c7fbfc2cc9dd861dd011ef94e0" args="(const Formattable &amp;obj, UnicodeString &amp;appendTo, FieldPosition &amp;pos, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; SimpleDateFormat::format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970. </p>
<p>Overrides <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> pure virtual method. </p>
<p>Example: using the US locale: "yyyy.MM.dd e 'at' HH:mm:ss zzz" -&gt;&gt; 1996.07.10 AD at 15:08:56 PDT</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>obj</em>&nbsp;</td><td>A <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> containing the date-time value to be formatted into a date-time string. If the type of the <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> is a numeric type, it is treated as if it were an instance of Date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>The formatting position. On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Input/output param set to success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003124">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d">DateFormat</a>.</p>

<p>Definition at line <a class="el" href="smpdtfmt_8h_source.html#l01158">1158</a> of file <a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</a>.</p>

<p>References <a class="el" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49">format()</a>.</p>

</div>
</div>
<a class="anchor" id="a2d35fb3be6fb7c1b6e45608dfb4a2e67"></a><!-- doxytag: member="SimpleDateFormat::format" ref="a2d35fb3be6fb7c1b6e45608dfb4a2e67" args="(Calendar &amp;cal, UnicodeString &amp;appendTo, FieldPositionIterator *posIter, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; SimpleDateFormat::format </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html">Calendar</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>cal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>posIter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970. </p>
<p>Overrides <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> pure virtual method. </p>
<p>Example: using the US locale: "yyyy.MM.dd e 'at' HH:mm:ss zzz" -&gt;&gt; 1996.07.10 AD at 15:08:56 PDT</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cal</em>&nbsp;</td><td><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> set to the date and time to be formatted into a date/time string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>posIter</em>&nbsp;</td><td>On return, can be used to iterate over positions of fields generated by this format call. Field values are defined in UDateFormatField. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Input/output param set to success/failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000197">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#aefc3666fdfe047d71f8fcda1b5a0786d">DateFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a618b8ffd208cb29851d12d1db5babc49"></a><!-- doxytag: member="SimpleDateFormat::format" ref="a618b8ffd208cb29851d12d1db5babc49" args="(Calendar &amp;cal, UnicodeString &amp;appendTo, FieldPosition &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; SimpleDateFormat::format </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html">Calendar</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>cal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970. </p>
<p>Overrides <a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> pure virtual method. </p>
<p>Example: using the US locale: "yyyy.MM.dd e 'at' HH:mm:ss zzz" -&gt;&gt; 1996.07.10 AD at 15:08:56 PDT</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cal</em>&nbsp;</td><td><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> set to the date and time to be formatted into a date/time string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>The formatting position. On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003123">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

<p>Implements <a class="el" href="classDateFormat.html#a6a43ee1f7a2db50e70675fe365e26bd5">DateFormat</a>.</p>

<p>Referenced by <a class="el" href="smpdtfmt_8h_source.html#l01149">format()</a>.</p>

</div>
</div>
<a class="anchor" id="af397530a09c5d705210384b7edd237ed"></a><!-- doxytag: member="SimpleDateFormat::get2DigitYearStart" ref="af397530a09c5d705210384b7edd237ed" args="(UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> SimpleDateFormat::get2DigitYearStart </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the start UDate used to interpret two-digit year strings. </p>
<p>When dates are parsed having 2-digit year strings, they are placed within a assumed range of 100 years starting on the two digit start date. For example, the string "24-Jan-17" may be in the year 1817, 1917, 2017, or some other year. <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> chooses a year so that the resultant date is on or after the two digit start date and within 100 years of the two digit start date. </p>
<p>By default, the two digit start date is set to 80 years before the current time at which a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> object is created. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Filled in with U_ZERO_ERROR if the parse was successful, and with an error value if there was a parse error. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003132">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="smpdtfmt_8h_source.html#l01143">1143</a> of file <a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</a>.</p>

</div>
</div>
<a class="anchor" id="afb3ffb2587d5070769b73f303b592715"></a><!-- doxytag: member="SimpleDateFormat::getDateFormatSymbols" ref="afb3ffb2587d5070769b73f303b592715" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a>* SimpleDateFormat::getDateFormatSymbols </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the date/time formatting symbols (this is an object carrying the various strings and other symbols used in formatting: e.g., month names and abbreviations, time zone names, AM/PM strings, etc. </p>
<p>) </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a copy of the date-time formatting data associated with this date-time formatter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003137">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a8b106f7a1c7ea5757aaca9cc3a16a348"></a><!-- doxytag: member="SimpleDateFormat::getDynamicClassID" ref="a8b106f7a1c7ea5757aaca9cc3a16a348" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> SimpleDateFormat::getDynamicClassID </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></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="classSimpleDateFormat.html#a349ffdf4204e4a6b0fec2c473ceaacb3" title="Return true if the given Format objects are semantically equal.">operator==()</a> and <a class="el" href="classSimpleDateFormat.html#a7e779c3f80b4bb518e2e4d4907c3db3f" title="Clone this Format object polymorphically.">clone()</a> methods call this method.</p>
<dl class="return"><dt><b>Returns:</b></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="stable"><dt><b><a class="el" href="stable.html#_stable003141">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classFormat.html#ac961d410d174518e5a3ebb8bbef45cd7">Format</a>.</p>

</div>
</div>
<a class="anchor" id="a27c253dd7595df456ae736047215109b"></a><!-- doxytag: member="SimpleDateFormat::getSmpFmtLocale" ref="a27c253dd7595df456ae736047215109b" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classLocale.html">Locale</a>&amp; SimpleDateFormat::getSmpFmtLocale </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is for ICU internal use only. </p>
<p>Please do not use. Get the locale of this simple date formatter. It is used in <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>locale in this simple date formatter </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000358">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a2188b47b32836a2de7d827778b34de87"></a><!-- doxytag: member="SimpleDateFormat::getStaticClassID" ref="a2188b47b32836a2de7d827778b34de87" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> SimpleDateFormat::getStaticClassID </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></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="classSimpleDateFormat.html#a8b106f7a1c7ea5757aaca9cc3a16a348" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a>. For example: </p>
<pre>
 .   Base* polymorphic_pointer = createPolymorphicObject();
 .   if (polymorphic_pointer-&gt;<a class="el" href="classSimpleDateFormat.html#a8b106f7a1c7ea5757aaca9cc3a16a348" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a> ==
 .       erived::getStaticClassID()) ...
 </pre> <dl class="return"><dt><b>Returns:</b></dt><dd>The class ID for all objects of this class. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003140">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a2ab33be44a6cbe7203dd8efc69d69f37"></a><!-- doxytag: member="SimpleDateFormat::isFieldUnitIgnored" ref="a2ab33be44a6cbe7203dd8efc69d69f37" args="(const UnicodeString &amp;pattern, UCalendarDateFields field)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> SimpleDateFormat::isFieldUnitIgnored </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is for ICU internal use only. </p>
<p>Please do not use. Check whether the 'field' is smaller than all the fields covered in pattern, return TRUE if it is. The sequence of calendar field, from large to small is: ERA, YEAR, MONTH, DATE, AM_PM, HOUR, MINUTE,... </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>the pattern to check against </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the calendar field need to check against </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the 'field' is smaller than all the fields covered in pattern. FALSE otherwise. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000357">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ace86b45a8051b15dca1b62587aae533c"></a><!-- doxytag: member="SimpleDateFormat::isFieldUnitIgnored" ref="ace86b45a8051b15dca1b62587aae533c" args="(UCalendarDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> SimpleDateFormat::isFieldUnitIgnored </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is for ICU internal use only. </p>
<p>Please do not use. Check whether the 'field' is smaller than all the fields covered in pattern, return TRUE if it is. The sequence of calendar field, from large to small is: ERA, YEAR, MONTH, DATE, AM_PM, HOUR, MINUTE,... </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the calendar field need to check against </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the 'field' is smaller than all the fields covered in pattern. FALSE otherwise. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000356">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a9150f0dbd293cf22a470e932d77633fe"></a><!-- doxytag: member="SimpleDateFormat::operator=" ref="a9150f0dbd293cf22a470e932d77633fe" args="(const SimpleDateFormat &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a>&amp; SimpleDateFormat::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> &amp;&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assignment operator. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003119">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#acc1631f81d9ce43f827a88a92e9e3b6a">DateFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a349ffdf4204e4a6b0fec2c473ceaacb3"></a><!-- doxytag: member="SimpleDateFormat::operator==" ref="a349ffdf4204e4a6b0fec2c473ceaacb3" args="(const Format &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> SimpleDateFormat::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormat.html">Format</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></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><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>other</em>&nbsp;</td><td>the object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></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="stable"><dt><b><a class="el" href="stable.html#_stable003122">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#a4b11dc83bba269b4a5966b91f0dde5b5">DateFormat</a>.</p>

</div>
</div>
<a class="anchor" id="ad824c9ccee2a56fb54c2384989bb80f7"></a><!-- doxytag: member="SimpleDateFormat::parse" ref="ad824c9ccee2a56fb54c2384989bb80f7" args="(const UnicodeString &amp;text, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> SimpleDateFormat::parse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse a date/time string. </p>
<p>For example, a time text "07/10/96 4:5 PM, PDT" will be parsed into a UDate that is equivalent to Date(837039928046). Parsing begins at the beginning of the string and proceeds as far as possible. Assuming no parse errors were encountered, this function doesn't return any information about how much of the string was consumed by the parsing. If you need that information, use the version of <a class="el" href="classSimpleDateFormat.html#a3d26207eb58fd0afc0c41f58e5caf56f" title="Parse a date/time string beginning at the given parse position.">parse()</a> that takes a <a class="el" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The date/time string to be parsed </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Filled in with U_ZERO_ERROR if the parse was successful, and with an error value if there was a parse error. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A valid UDate if the input could be parsed. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003130">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#a9b9493fd564b7268f8e42921e4ac6822">DateFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a4cfd7300952296fcf2e35ed67e5127dd"></a><!-- doxytag: member="SimpleDateFormat::parse" ref="a4cfd7300952296fcf2e35ed67e5127dd" args="(const UnicodeString &amp;text, ParsePosition &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> SimpleDateFormat::parse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classParsePosition.html">ParsePosition</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse a date/time string starting at the given parse position. </p>
<p>For example, a time text "07/10/96 4:5 PM, PDT" will be parsed into a Date that is equivalent to Date(837039928046). </p>
<p>By default, parsing is lenient: If the input is not in the form used by this object's format method but can still be parsed as a date, then the parse succeeds. Clients may insist on strict adherence to the format by calling setLenient(false).</p>
<dl class="see"><dt><b>See also:</b></dt><dd>DateFormat::setLenient(boolean)</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The date/time string to be parsed </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input, the position at which to start parsing; on output, the position at which parsing terminated, or the start position if the parse failed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A valid UDate if the input could be parsed. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003129">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classDateFormat.html#a3b6df3a263da2d8e4ea72e79a1f61071">DateFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a3d26207eb58fd0afc0c41f58e5caf56f"></a><!-- doxytag: member="SimpleDateFormat::parse" ref="a3d26207eb58fd0afc0c41f58e5caf56f" args="(const UnicodeString &amp;text, Calendar &amp;cal, ParsePosition &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SimpleDateFormat::parse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classCalendar.html">Calendar</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>cal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classParsePosition.html">ParsePosition</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse a date/time string beginning at the given parse position. </p>
<p>For example, a time text "07/10/96 4:5 PM, PDT" will be parsed into a Date that is equivalent to Date(837039928046). </p>
<p>By default, parsing is lenient: If the input is not in the form used by this object's format method but can still be parsed as a date, then the parse succeeds. Clients may insist on strict adherence to the format by calling setLenient(false).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The date/time string to be parsed </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cal</em>&nbsp;</td><td>a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> set to the date and time to be formatted into a date/time string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input, the position at which to start parsing; on output, the position at which parsing terminated, or the start position if the parse failed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A valid UDate if the input could be parsed. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003128">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

<p>Implements <a class="el" href="classDateFormat.html#a7b659b020ec1dc76c6cc1032b878289c">DateFormat</a>.</p>

</div>
</div>
<a class="anchor" id="abc869d3e1b35b4c8a81e005e3f23c28f"></a><!-- doxytag: member="SimpleDateFormat::set2DigitYearStart" ref="abc869d3e1b35b4c8a81e005e3f23c28f" args="(UDate d, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SimpleDateFormat::set2DigitYearStart </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the start UDate used to interpret two-digit year strings. </p>
<p>When dates are parsed having 2-digit year strings, they are placed within a assumed range of 100 years starting on the two digit start date. For example, the string "24-Jan-17" may be in the year 1817, 1917, 2017, or some other year. <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> chooses a year so that the resultant date is on or after the two digit start date and within 100 years of the two digit start date. </p>
<p>By default, the two digit start date is set to 80 years before the current time at which a <a class="el" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a> object is created. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td>start UDate used to interpret two-digit year strings. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Filled in with U_ZERO_ERROR if the parse was successful, and with an error value if there was a parse error. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003131">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a972ac03adeab58abcafd7c6da2bdf913"></a><!-- doxytag: member="SimpleDateFormat::setDateFormatSymbols" ref="a972ac03adeab58abcafd7c6da2bdf913" args="(const DateFormatSymbols &amp;newFormatSymbols)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SimpleDateFormat::setDateFormatSymbols </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>newFormatSymbols</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the date/time formatting data. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newFormatSymbols</em>&nbsp;</td><td>the given date-time formatting symbols to copy. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003139">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ae8afbe51b43dd76856d26b761276b921"></a><!-- doxytag: member="SimpleDateFormat::toLocalizedPattern" ref="ae8afbe51b43dd76856d26b761276b921" args="(UnicodeString &amp;result, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; SimpleDateFormat::toLocalizedPattern </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return a localized pattern string describing this date format. </p>
<p>In most cases, this will return the same thing as <a class="el" href="classSimpleDateFormat.html#a36952c70a195a18dc2d71e8d8e600d3b" title="Return a pattern string describing this date format.">toPattern()</a>, but a locale can specify characters to use in pattern descriptions in place of the ones described in this class's class documentation. (Presumably, letters that would be more mnemonic in that locale's language.) This function would produce a pattern using those letters.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Receives the localized pattern. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If the pattern is invalid, this will be set to a failure result. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003134">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a36952c70a195a18dc2d71e8d8e600d3b"></a><!-- doxytag: member="SimpleDateFormat::toPattern" ref="a36952c70a195a18dc2d71e8d8e600d3b" args="(UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; SimpleDateFormat::toPattern </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return a pattern string describing this date format. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Output param to receive the pattern. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003133">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="smpdtfmt_8h_source.html">smpdtfmt.h</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">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>