Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 280da2a01a3d16776505ea3f476de84f > files > 139

icu-doc-3.8.1-2mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ICU 3.8: SimpleDateFormat Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li id="current"><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</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>
<h1>SimpleDateFormat Class Reference</h1><!-- doxytag: class="SimpleDateFormat" --><!-- doxytag: inherits="DateFormat" --><a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> is a concrete class for formatting and parsing dates in a language-independent manner.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="smpdtfmt_8h-source.html">smpdtfmt.h</a>&gt;</code>
<p>
<p>Inheritance diagram for SimpleDateFormat:
<p><center><img src="classSimpleDateFormat.png" usemap="#SimpleDateFormat_map" border="0" alt=""></center>
<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>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ac959d0d6f03e31837e1b7221436f65a">SimpleDateFormat</a> (<a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the default pattern for the default locale.  <a href="#ac959d0d6f03e31837e1b7221436f65a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#f26818e4c01a1a344f95d2742851e6b6">SimpleDateFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the given pattern and the default locale.  <a href="#f26818e4c01a1a344f95d2742851e6b6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#c327ded362ebd360f3a3c855ddbbfdba">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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the given pattern and locale.  <a href="#c327ded362ebd360f3a3c855ddbbfdba"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#6d93e872ff95ab9b13797c3c8df36ed4">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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the given pattern and locale-specific symbol data.  <a href="#6d93e872ff95ab9b13797c3c8df36ed4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#698e2c463f36eb98c100d7e6b14df019">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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the given pattern and locale-specific symbol data.  <a href="#698e2c463f36eb98c100d7e6b14df019"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#ebfb20e1e8ae1dbc51d4e5ac80f7fa75">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="#ebfb20e1e8ae1dbc51d4e5ac80f7fa75"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#9150f0dbd293cf22a470e932d77633fe">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="#9150f0dbd293cf22a470e932d77633fe"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#e4f200518c4e94db50ea6cf44b54a3b5">~SimpleDateFormat</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#e4f200518c4e94db50ea6cf44b54a3b5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#7e779c3f80b4bb518e2e4d4907c3db3f">clone</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clone this <a class="el" href="classFormat.html">Format</a> object polymorphically.  <a href="#7e779c3f80b4bb518e2e4d4907c3db3f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#349ffdf4204e4a6b0fec2c473ceaacb3">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">Format</a> objects are semantically equal.  <a href="#349ffdf4204e4a6b0fec2c473ceaacb3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#618b8ffd208cb29851d12d1db5babc49">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">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970.  <a href="#618b8ffd208cb29851d12d1db5babc49"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#5246aae538ec88510b10b1a87a8e14cd">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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970.  <a href="#5246aae538ec88510b10b1a87a8e14cd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#9e433ca3258272be455b61f0a06c33eb">format</a> (<a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">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">DateFormat</a> method.  <a href="#9e433ca3258272be455b61f0a06c33eb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#ab9dc1c3bc84ac480ee1bc1c05d6126a">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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classDateFormat.html">DateFormat</a> method.  <a href="#ab9dc1c3bc84ac480ee1bc1c05d6126a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#23bb4a7bb2388b86b933897e871df8bf">format</a> (<a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">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">DateFormat</a> method.  <a href="#23bb4a7bb2388b86b933897e871df8bf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#e0602731300b1fda0d9e4553dfb275b6">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="#e0602731300b1fda0d9e4553dfb275b6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#4cfd7300952296fcf2e35ed67e5127dd">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="#4cfd7300952296fcf2e35ed67e5127dd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#d824c9ccee2a56fb54c2384989bb80f7">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse a date/time string.  <a href="#d824c9ccee2a56fb54c2384989bb80f7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#bc869d3e1b35b4c8a81e005e3f23c28f">set2DigitYearStart</a> (<a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> d, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">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="#bc869d3e1b35b4c8a81e005e3f23c28f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#c9f751ed459a1fa85445186353a4ef3a">get2DigitYearStart</a> (<a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">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="#c9f751ed459a1fa85445186353a4ef3a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#bdaee3175016a7fd054d650d2b08606f">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="#bdaee3175016a7fd054d650d2b08606f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#e8afbe51b43dd76856d26b761276b921">toLocalizedPattern</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">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="#e8afbe51b43dd76856d26b761276b921"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#d6dcbf05065e6b18ef7985cb2ebc01f2">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="#d6dcbf05065e6b18ef7985cb2ebc01f2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#b177ad8b128f13bd84c29e419233d3fe">applyLocalizedPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">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="#b177ad8b128f13bd84c29e419233d3fe"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#fb3ffb2587d5070769b73f303b592715">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="#fb3ffb2587d5070769b73f303b592715"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#d93f7d1db5193ed784cd83ccfb647503">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="#d93f7d1db5193ed784cd83ccfb647503"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#972ac03adeab58abcafd7c6da2bdf913">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="#972ac03adeab58abcafd7c6da2bdf913"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#8b106f7a1c7ea5757aaca9cc3a16a348">getDynamicClassID</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a unique class ID POLYMORPHICALLY.  <a href="#8b106f7a1c7ea5757aaca9cc3a16a348"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#66975f632ef7ce796eeaad1e0e6b33b5">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="#66975f632ef7ce796eeaad1e0e6b33b5"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#2188b47b32836a2de7d827778b34de87">getStaticClassID</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class ID for this class.  <a href="#2188b47b32836a2de7d827778b34de87"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="369bfc31e5e941bae4ec355f203ea9e8"></a><!-- doxytag: member="SimpleDateFormat::DateFormat" ref="369bfc31e5e941bae4ec355f203ea9e8" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleDateFormat.html#369bfc31e5e941bae4ec355f203ea9e8">DateFormat</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> is a concrete class for formatting and parsing dates in a language-independent manner. 
<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>
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">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">SimpleDateFormat</a> directly and give it an appropriate pattern (or use one of the factory methods on <a class="el" href="classDateFormat.html">DateFormat</a> and modify the pattern after the fact with <a class="el" href="classSimpleDateFormat.html#bdaee3175016a7fd054d650d2b08606f">toPattern()</a> and <a class="el" href="classSimpleDateFormat.html#d6dcbf05065e6b18ef7985cb2ebc01f2">applyPattern()</a>. <p>
Date/Time format syntax: <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: <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
 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) (Number)            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
 g        Julian day              (Number)            2451334
 A        milliseconds in day     (Number)            69540000
 '        escape for text         (Delimiter)         'Date='
 ''       single quote            (Literal)           'o''clock'
</pre></div>
 </pre> The count of pattern letters determine the format. <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>
(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>
(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>
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>
A pattern containing any invalid pattern letter will result in a failing UErrorCode result during formatting or parsing. <p>
Examples using the US locale: <pre>
<div class="fragment"><pre class="fragment">    <a class="code" href="classFormat.html">Format</a> Pattern                         Result
    --------------                         -------
    <span class="stringliteral">"yyyy.MM.dd G 'at' HH:mm:ss vvvv"</span> -&gt;&gt;  1996.07.10 AD at 15:08:56 Pacific Time
    <span class="stringliteral">"EEE, MMM d, ''yy"</span>                -&gt;&gt;  Wed, July 10, '96
    <span class="stringliteral">"h:mm a"</span>                          -&gt;&gt;  12:08 PM
    <span class="stringliteral">"hh 'o''clock' a, zzzz"</span>           -&gt;&gt;  12 o'clock PM, Pacific Daylight Time
    <span class="stringliteral">"K:mm a, vvv"</span>                     -&gt;&gt;  0:00 PM, PT
    <span class="stringliteral">"yyyyy.MMMMM.dd GGG hh:mm aaa"</span>    -&gt;&gt;  1996.July.10 AD 12:08 PM
</pre></div>
 </pre> Code Sample: <pre>
<div class="fragment"><pre class="fragment">     <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> success = <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78ca43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;
     <a class="code" href="classSimpleTimeZone.html">SimpleTimeZone</a>* pdt = <span class="keyword">new</span> <a class="code" href="classSimpleTimeZone.html">SimpleTimeZone</a>(-8 * 60 * 60 * 1000, <span class="stringliteral">"PST"</span>);
     pdt-&gt;<a class="code" href="classSimpleTimeZone.html#8c4a9581b04860da2c1cee479a47f196">setStartRule</a>( Calendar::APRIL, 1, Calendar::SUNDAY, 2*60*60*1000);
     pdt-&gt;<a class="code" href="classSimpleTimeZone.html#e2eee23700f7405a563cf01e3cedd797">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">SimpleDateFormat</a>* formatter
         = <span class="keyword">new</span> <a class="code" href="classSimpleDateFormat.html">SimpleDateFormat</a> (<span class="stringliteral">"yyyy.MM.dd G 'at' hh:mm:ss a zzz"</span>, success );
     <a class="code" href="classGregorianCalendar.html">GregorianCalendar</a> cal(success);
     <a class="code" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> currentTime_1 = cal.getTime(success);
     <a class="code" href="classFieldPosition.html">FieldPosition</a> fp(0);
     <a class="code" href="classUnicodeString.html">UnicodeString</a> dateString;
     formatter-&gt;<a class="code" href="classSimpleDateFormat.html#618b8ffd208cb29851d12d1db5babc49">format</a>( currentTime_1, dateString, fp );
     cout &lt;&lt; <span class="stringliteral">"result: "</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">ParsePosition</a> pp(0);
     <a class="code" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> currentTime_2 = formatter-&gt;<a class="code" href="classSimpleDateFormat.html#e0602731300b1fda0d9e4553dfb275b6">parse</a>(dateString, pp );
</pre></div>
 </pre> 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>
When parsing a date string using the abbreviated year pattern ("y" or "yy"), <a class="el" href="classSimpleDateFormat.html">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">SimpleDateFormat</a> instance is created. For example, using a pattern of "MM/dd/yy" and a <a class="el" href="classSimpleDateFormat.html">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>
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>
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>
For time zones that have no names, <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> uses strings GMT+hours:minutes or GMT-hours:minutes. <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>
<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#l00206">206</a> of file <a class="el" href="smpdtfmt_8h-source.html">smpdtfmt.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="ac959d0d6f03e31837e1b7221436f65a"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="ac959d0d6f03e31837e1b7221436f65a" 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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the default pattern for the default locale. 
<p>
[Note:] Not all locales support <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a>; for full generality, use the factory methods in the <a class="el" href="classDateFormat.html">DateFormat</a> class. <dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002732">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f26818e4c01a1a344f95d2742851e6b6"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="f26818e4c01a1a344f95d2742851e6b6" 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#3343c1c8a8377277046774691c98d78c">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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the given pattern and the default locale. 
<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>
[Note:] Not all locales support <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a>; for full generality, use the factory methods in the <a class="el" href="classDateFormat.html">DateFormat</a> class. <dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002733">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c327ded362ebd360f3a3c855ddbbfdba"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="c327ded362ebd360f3a3c855ddbbfdba" 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#3343c1c8a8377277046774691c98d78c">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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the given pattern and locale. 
<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>
[Note:] Not all locales support <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a>; for full generality, use the factory methods in the <a class="el" href="classDateFormat.html">DateFormat</a> class. <dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002734">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="6d93e872ff95ab9b13797c3c8df36ed4"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="6d93e872ff95ab9b13797c3c8df36ed4" 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#3343c1c8a8377277046774691c98d78c">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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the given pattern and locale-specific symbol data. 
<p>
The formatter takes ownership of the <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> object; the caller is no longer responsible for deleting it. <dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002735">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="698e2c463f36eb98c100d7e6b14df019"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="698e2c463f36eb98c100d7e6b14df019" 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#3343c1c8a8377277046774691c98d78c">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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct a <a class="el" href="classSimpleDateFormat.html">SimpleDateFormat</a> using the given pattern and locale-specific symbol data. 
<p>
The <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> object is NOT adopted; the caller remains responsible for deleting it. <dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002736">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="ebfb20e1e8ae1dbc51d4e5ac80f7fa75"></a><!-- doxytag: member="SimpleDateFormat::SimpleDateFormat" ref="ebfb20e1e8ae1dbc51d4e5ac80f7fa75" 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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="e4f200518c4e94db50ea6cf44b54a3b5"></a><!-- doxytag: member="SimpleDateFormat::~SimpleDateFormat" ref="e4f200518c4e94db50ea6cf44b54a3b5" 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 width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="9150f0dbd293cf22a470e932d77633fe"></a><!-- doxytag: member="SimpleDateFormat::operator=" ref="9150f0dbd293cf22a470e932d77633fe" 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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="7e779c3f80b4bb518e2e4d4907c3db3f"></a><!-- doxytag: member="SimpleDateFormat::clone" ref="7e779c3f80b4bb518e2e4d4907c3db3f" 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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Clone this <a class="el" href="classFormat.html">Format</a> object polymorphically. 
<p>
The caller owns the result and should delete it when done. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A copy of the object. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002740">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implements <a class="el" href="classFormat.html#a636e43fefeb57ed01add9db32dd91cb">Format</a>.
</div>
</div><p>
<a class="anchor" name="349ffdf4204e4a6b0fec2c473ceaacb3"></a><!-- doxytag: member="SimpleDateFormat::operator==" ref="349ffdf4204e4a6b0fec2c473ceaacb3" 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#349ef00011f20ccd1d3b424445681aa5">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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return true if the given <a class="el" href="classFormat.html">Format</a> objects are semantically equal. 
<p>
Objects of different subclasses are considered unequal. <dl compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the given <a class="el" href="classFormat.html">Format</a> objects are semantically equal. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002741">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classDateFormat.html#a9d5d7aa8dff8b32d3122dd936e40d9c">DateFormat</a>.
</div>
</div><p>
<a class="anchor" name="618b8ffd208cb29851d12d1db5babc49"></a><!-- doxytag: member="SimpleDateFormat::format" ref="618b8ffd208cb29851d12d1db5babc49" 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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classFormat.html">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970. 
<p>
Overrides <a class="el" href="classDateFormat.html">DateFormat</a> pure virtual method. <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 compact><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">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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002742">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

<p>
Implements <a class="el" href="classDateFormat.html#6a43ee1f7a2db50e70675fe365e26bd5">DateFormat</a>.
</div>
</div><p>
<a class="anchor" name="5246aae538ec88510b10b1a87a8e14cd"></a><!-- doxytag: member="SimpleDateFormat::format" ref="5246aae538ec88510b10b1a87a8e14cd" 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">virtual <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#3343c1c8a8377277046774691c98d78c">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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classFormat.html">Format</a> a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970. 
<p>
Overrides <a class="el" href="classDateFormat.html">DateFormat</a> pure virtual method. <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 compact><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">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">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>Output param set to success/faulure code. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002743">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classDateFormat.html#dea8203c980d0d5a7bca1fa859e804bf">DateFormat</a>.
</div>
</div><p>
<a class="anchor" name="9e433ca3258272be455b61f0a06c33eb"></a><!-- doxytag: member="SimpleDateFormat::format" ref="9e433ca3258272be455b61f0a06c33eb" 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#ce1704e9e77d407d1eaaa2e73ec0c039">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 width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Redeclared <a class="el" href="classDateFormat.html">DateFormat</a> method. 
<p>
<dl compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002744">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

<p>
Reimplemented from <a class="el" href="classDateFormat.html#8eef30d8294185a29bc755292219daf7">DateFormat</a>.
<p>
Definition at line <a class="el" href="smpdtfmt_8h-source.html#l00878">878</a> of file <a class="el" href="smpdtfmt_8h-source.html">smpdtfmt.h</a>.
<p>
References <a class="el" href="classDateFormat.html#dea8203c980d0d5a7bca1fa859e804bf">DateFormat::format()</a>.
</div>
</div><p>
<a class="anchor" name="ab9dc1c3bc84ac480ee1bc1c05d6126a"></a><!-- doxytag: member="SimpleDateFormat::format" ref="ab9dc1c3bc84ac480ee1bc1c05d6126a" 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#3343c1c8a8377277046774691c98d78c">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 width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Redeclared <a class="el" href="classDateFormat.html">DateFormat</a> method. 
<p>
<dl compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002745">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classDateFormat.html#5f83e587088badccff4ef25b4b8fcd78">DateFormat</a>.
<p>
Definition at line <a class="el" href="smpdtfmt_8h-source.html#l00869">869</a> of file <a class="el" href="smpdtfmt_8h-source.html">smpdtfmt.h</a>.
<p>
References <a class="el" href="classDateFormat.html#dea8203c980d0d5a7bca1fa859e804bf">DateFormat::format()</a>.
</div>
</div><p>
<a class="anchor" name="23bb4a7bb2388b86b933897e871df8bf"></a><!-- doxytag: member="SimpleDateFormat::format" ref="23bb4a7bb2388b86b933897e871df8bf" 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#ce1704e9e77d407d1eaaa2e73ec0c039">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 width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Redeclared <a class="el" href="classDateFormat.html">DateFormat</a> method. 
<p>
<dl compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002746">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classDateFormat.html#1ea65b30ce7fc2cf275b249004a9c313">DateFormat</a>.
<p>
Definition at line <a class="el" href="smpdtfmt_8h-source.html#l00887">887</a> of file <a class="el" href="smpdtfmt_8h-source.html">smpdtfmt.h</a>.
<p>
References <a class="el" href="classDateFormat.html#dea8203c980d0d5a7bca1fa859e804bf">DateFormat::format()</a>.
</div>
</div><p>
<a class="anchor" name="e0602731300b1fda0d9e4553dfb275b6"></a><!-- doxytag: member="SimpleDateFormat::parse" ref="e0602731300b1fda0d9e4553dfb275b6" 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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parse a date/time string beginning at the given parse position. 
<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>
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 compact><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">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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A valid UDate if the input could be parsed. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002747">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>

<p>
Implements <a class="el" href="classDateFormat.html#ce8abd911ff8f539570b63478e5cfee3">DateFormat</a>.
</div>
</div><p>
<a class="anchor" name="4cfd7300952296fcf2e35ed67e5127dd"></a><!-- doxytag: member="SimpleDateFormat::parse" ref="4cfd7300952296fcf2e35ed67e5127dd" 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#ce1704e9e77d407d1eaaa2e73ec0c039">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 width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parse a date/time string starting at the given parse position. 
<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>
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" compact><dt><b>See also:</b></dt><dd>DateFormat::setLenient(boolean)</dd></dl>
<dl compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A valid UDate if the input could be parsed. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002748">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classDateFormat.html#3b6df3a263da2d8e4ea72e79a1f61071">DateFormat</a>.
</div>
</div><p>
<a class="anchor" name="d824c9ccee2a56fb54c2384989bb80f7"></a><!-- doxytag: member="SimpleDateFormat::parse" ref="d824c9ccee2a56fb54c2384989bb80f7" 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#ce1704e9e77d407d1eaaa2e73ec0c039">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#3343c1c8a8377277046774691c98d78c">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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parse a date/time string. 
<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#e0602731300b1fda0d9e4553dfb275b6">parse()</a> that takes a <a class="el" href="classParsePosition.html">ParsePosition</a>.<p>
<dl compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A valid UDate if the input could be parsed. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002749">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classDateFormat.html#9b9493fd564b7268f8e42921e4ac6822">DateFormat</a>.
</div>
</div><p>
<a class="anchor" name="bc869d3e1b35b4c8a81e005e3f23c28f"></a><!-- doxytag: member="SimpleDateFormat::set2DigitYearStart" ref="bc869d3e1b35b4c8a81e005e3f23c28f" 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#ce1704e9e77d407d1eaaa2e73ec0c039">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#3343c1c8a8377277046774691c98d78c">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 width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the start UDate used to interpret two-digit year strings. 
<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">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>
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">SimpleDateFormat</a> object is created. <dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002750">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c9f751ed459a1fa85445186353a4ef3a"></a><!-- doxytag: member="SimpleDateFormat::get2DigitYearStart" ref="c9f751ed459a1fa85445186353a4ef3a" 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#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> SimpleDateFormat::get2DigitYearStart           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the start UDate used to interpret two-digit year strings. 
<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">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>
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">SimpleDateFormat</a> object is created. <dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002751">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="smpdtfmt_8h-source.html#l00863">863</a> of file <a class="el" href="smpdtfmt_8h-source.html">smpdtfmt.h</a>.
</div>
</div><p>
<a class="anchor" name="bdaee3175016a7fd054d650d2b08606f"></a><!-- doxytag: member="SimpleDateFormat::toPattern" ref="bdaee3175016a7fd054d650d2b08606f" 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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return a pattern string describing this date format. 
<p>
<dl compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002752">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="e8afbe51b43dd76856d26b761276b921"></a><!-- doxytag: member="SimpleDateFormat::toLocalizedPattern" ref="e8afbe51b43dd76856d26b761276b921" 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#3343c1c8a8377277046774691c98d78c">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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return a localized pattern string describing this date format. 
<p>
In most cases, this will return the same thing as <a class="el" href="classSimpleDateFormat.html#bdaee3175016a7fd054d650d2b08606f">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 compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002753">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="d6dcbf05065e6b18ef7985cb2ebc01f2"></a><!-- doxytag: member="SimpleDateFormat::applyPattern" ref="d6dcbf05065e6b18ef7985cb2ebc01f2" 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 width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Apply the given unlocalized pattern string to this date format. 
<p>
(i.e., after this call, this formatter will format dates according to the new pattern)<p>
<dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002754">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b177ad8b128f13bd84c29e419233d3fe"></a><!-- doxytag: member="SimpleDateFormat::applyLocalizedPattern" ref="b177ad8b128f13bd84c29e419233d3fe" 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#3343c1c8a8377277046774691c98d78c">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 width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Apply the given localized pattern string to this date format. 
<p>
(see <a class="el" href="classSimpleDateFormat.html#e8afbe51b43dd76856d26b761276b921">toLocalizedPattern()</a> for more information on localized patterns.)<p>
<dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002755">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="fb3ffb2587d5070769b73f303b592715"></a><!-- doxytag: member="SimpleDateFormat::getDateFormatSymbols" ref="fb3ffb2587d5070769b73f303b592715" 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 width="100%"> 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>
) <dl class="return" compact><dt><b>Returns:</b></dt><dd>a copy of the date-time formatting data associated with this date-time formatter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002756">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="d93f7d1db5193ed784cd83ccfb647503"></a><!-- doxytag: member="SimpleDateFormat::adoptDateFormatSymbols" ref="d93f7d1db5193ed784cd83ccfb647503" 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 width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the date/time formatting symbols. 
<p>
The caller no longer owns the <a class="el" href="classDateFormatSymbols.html">DateFormatSymbols</a> object and should not delete it after making this call. <dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002757">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="972ac03adeab58abcafd7c6da2bdf913"></a><!-- doxytag: member="SimpleDateFormat::setDateFormatSymbols" ref="972ac03adeab58abcafd7c6da2bdf913" 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 width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the date/time formatting data. 
<p>
<dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002758">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="2188b47b32836a2de7d827778b34de87"></a><!-- doxytag: member="SimpleDateFormat::getStaticClassID" ref="2188b47b32836a2de7d827778b34de87" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> SimpleDateFormat::getStaticClassID           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the class ID for this class. 
<p>
This is useful only for comparing to a return value from <a class="el" href="classSimpleDateFormat.html#8b106f7a1c7ea5757aaca9cc3a16a348">getDynamicClassID()</a>. For example: <pre>
 .   Base* polymorphic_pointer = createPolymorphicObject();
 .   if (polymorphic_pointer-&gt;<a class="el" href="classSimpleDateFormat.html#8b106f7a1c7ea5757aaca9cc3a16a348">getDynamicClassID()</a> ==
 .       erived::getStaticClassID()) ...
 </pre> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The class ID for all objects of this class. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002759">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="8b106f7a1c7ea5757aaca9cc3a16a348"></a><!-- doxytag: member="SimpleDateFormat::getDynamicClassID" ref="8b106f7a1c7ea5757aaca9cc3a16a348" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> SimpleDateFormat::getDynamicClassID           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a unique class ID POLYMORPHICALLY. 
<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#349ffdf4204e4a6b0fec2c473ceaacb3">operator==()</a> and <a class="el" href="classSimpleDateFormat.html#7e779c3f80b4bb518e2e4d4907c3db3f">clone()</a> methods call this method.<p>
<dl class="return" compact><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 compact><dt><b><a class="el" href="stable.html#_stable002760">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implements <a class="el" href="classFormat.html#5bb95eb0d807a3ce319ebc2fe19a5f3f">Format</a>.
</div>
</div><p>
<a class="anchor" name="66975f632ef7ce796eeaad1e0e6b33b5"></a><!-- doxytag: member="SimpleDateFormat::adoptCalendar" ref="66975f632ef7ce796eeaad1e0e6b33b5" 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 width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the calendar to be used by this date format. 
<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">Calendar</a> object after it is adopted by this call. Adopting a new calendar will change to the default symbols.<p>
<dl compact><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">Calendar</a> object to be adopted. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002761">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classDateFormat.html#82d9d571d5764024766bb3750759bb4b">DateFormat</a>.
</div>
</div><p>
<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></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 14 12:59:46 2007 for ICU 3.8 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>