Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 110492f5122731329f0db69a1df590c3 > files > 4306

kdepimlibs-apidocs-4.10.5-1.fc18.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!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" lang="en" xml:lang="en">
<head>
  <title>KMime::DateFormatter Class Reference</title>
<style type="text/css">
  .cp-doNotDisplay { display: none; }
  @media aural, braille, handheld, tty { .cp-doNotDisplay { display: inline; speak: normal; }}
  .cp-edit { text-align: right; }
  @media print, embossed { .cp-edit { display: none; }}
</style>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <link rel="meta" href="http://www.kde.org/labels.rdf" type="application/rdf+xml" title="ICRA labels" />
  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />
  <meta name="no-email-collection" content="http://www.unspam.com/noemailcollection" />
  <script type="text/javascript" src="jquery.js"></script>
  <script type="text/javascript" src="dynsections.js"></script>
  <link rel="shortcut icon" href="../../favicon.ico" /><link rel="icon" href="../../favicon.ico" />
  <link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../../kde.css" />
  <link rel="stylesheet" media="print, embossed" type="text/css" href="../../print.css" />
  <link rel="stylesheet" media="screen, aural, handheld, tty, braille" type="text/css" title="Flat" href="../../flat.css" />
  <link rel="stylesheet" type="text/css" href="../../doxygen.css" />
  <link rel="stylesheet" type="text/css" href="../../tabs.css" />
</head>
<body>
<ul class="cp-doNotDisplay">
  <li><a href="#cp-content" accesskey="2">Skip to content</a></li>
  <li><a href="#cp-menu" accesskey="5">Skip to link menu</a></li>
</ul>
<div id="container">
<div id="header">
  <div id="header_top"><div><div>
    <img alt ="" src="../../top-kde.jpg"/>
    </div></div></div>
  <div id="header_bottom">
    <div id="location">
      <ul>
        <li><a href="http://api.kde.org">KDE API Reference</a></li>
        <li><a href="../../index.html">kdepimlibs-4.10.5 API Reference</a></li>
      </ul>
    </div>
    <div id="menu">
<ul>
<li><a href="http://www.kde.org/">KDE Home</a></li>
<li><a href="http://kde.org/contact/">Contact Us</a></li>
</ul>
</div>
</div>
</div>
<!-- End page header -->
    <div id="body_wrapper">
      <div id="body">
        <!-- begin main content -->
        <div id="right">
          <div class="content">
          <div id="main">
            <div class="clearer">&nbsp;</div>
<h2><a name="content"></a>KMIME Library</h2>
<!-- BC -->
<div id="top">
<!-- Generated by Doxygen 1.8.3.1 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceKMime.html">KMime</a></li><li class="navelem"><a class="el" href="classKMime_1_1DateFormatter.html">DateFormatter</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classKMime_1_1DateFormatter-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">KMime::DateFormatter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="kmime__dateformatter_8h_source.html">kmime_dateformatter.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:abe6bab89036e1050aa9793be7c5455e0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">FormatType</a> { <br/>
&#160;&#160;<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a5c47e04342e3e0756e04fb76d8c46b97">CTime</a>, 
<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de">Localized</a>, 
<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0af612a72c3593c374f62c70de13c821cb">Fancy</a>, 
<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a83dfb3d6517b9694237675fa9ecdaf96">Iso</a>, 
<br/>
&#160;&#160;<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a108c6c4f49e719d7fc35fb7cb0e040f8">Rfc</a>, 
<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a418592a51dc3b4733a21766d65300aec">Custom</a>
<br/>
 }</td></tr>
<tr class="separator:abe6bab89036e1050aa9793be7c5455e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aee73fc070c0fe833d787d1ca4658a675"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#aee73fc070c0fe833d787d1ca4658a675">DateFormatter</a> (<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">FormatType</a> ftype=<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0af612a72c3593c374f62c70de13c821cb">DateFormatter::Fancy</a>)</td></tr>
<tr class="separator:aee73fc070c0fe833d787d1ca4658a675"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefa9ef4142351525ef676999cc7df9bc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#aefa9ef4142351525ef676999cc7df9bc">~DateFormatter</a> ()</td></tr>
<tr class="separator:aefa9ef4142351525ef676999cc7df9bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ace22571dc754313c883a4d20f645cf"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a8ace22571dc754313c883a4d20f645cf">customFormat</a> () const </td></tr>
<tr class="separator:a8ace22571dc754313c883a4d20f645cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a9ba37dedecf603ae45ba17cb9601e6"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a7a9ba37dedecf603ae45ba17cb9601e6">dateString</a> (time_t t, const QString &amp;lang=QString(), bool shortFormat=true, bool includeSecs=false) const </td></tr>
<tr class="separator:a7a9ba37dedecf603ae45ba17cb9601e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7422ee6f7223874d3cbb3cd414fcc8a"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#ab7422ee6f7223874d3cbb3cd414fcc8a">dateString</a> (const QDateTime &amp;dtime, const QString &amp;lang=QString(), bool shortFormat=true, bool includeSecs=false) const </td></tr>
<tr class="separator:ab7422ee6f7223874d3cbb3cd414fcc8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfb1e6f5f702ba253180efd212c4a534"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">FormatType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#acfb1e6f5f702ba253180efd212c4a534">format</a> () const </td></tr>
<tr class="separator:acfb1e6f5f702ba253180efd212c4a534"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2fd35f5bce959ca1b711f5975ac1fdd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#ae2fd35f5bce959ca1b711f5975ac1fdd">reset</a> ()</td></tr>
<tr class="separator:ae2fd35f5bce959ca1b711f5975ac1fdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30ec835980cac5fcdd6f22104d734343"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a30ec835980cac5fcdd6f22104d734343">setCustomFormat</a> (const QString &amp;<a class="el" href="classKMime_1_1DateFormatter.html#acfb1e6f5f702ba253180efd212c4a534">format</a>)</td></tr>
<tr class="separator:a30ec835980cac5fcdd6f22104d734343"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e81d89c0561457763a279e379c1770a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a3e81d89c0561457763a279e379c1770a">setFormat</a> (<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">FormatType</a> ftype)</td></tr>
<tr class="separator:a3e81d89c0561457763a279e379c1770a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a95442802a088712578e406affcb23578"><td class="memItemLeft" align="right" valign="top">static QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a95442802a088712578e406affcb23578">formatCurrentDate</a> (<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">DateFormatter::FormatType</a> ftype, const QString &amp;data=QString(), bool shortFormat=true, bool includeSecs=false)</td></tr>
<tr class="separator:a95442802a088712578e406affcb23578"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5236dea083da978bbb56a3722c147e06"><td class="memItemLeft" align="right" valign="top">static QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a5236dea083da978bbb56a3722c147e06">formatDate</a> (<a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">DateFormatter::FormatType</a> ftype, time_t t, const QString &amp;data=QString(), bool shortFormat=true, bool includeSecs=false)</td></tr>
<tr class="separator:a5236dea083da978bbb56a3722c147e06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ed0c0c340d76e0accf6408d644ca182"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a7ed0c0c340d76e0accf6408d644ca182">isDaylight</a> ()</td></tr>
<tr class="separator:a7ed0c0c340d76e0accf6408d644ca182"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a3cf8366fb70ef6f76d522d2a0e0f94c4"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a3cf8366fb70ef6f76d522d2a0e0f94c4">cTime</a> (time_t t) const </td></tr>
<tr class="separator:a3cf8366fb70ef6f76d522d2a0e0f94c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c2bd26e44d0fee2f1052df381f92a70"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a9c2bd26e44d0fee2f1052df381f92a70">custom</a> (time_t t) const </td></tr>
<tr class="separator:a9c2bd26e44d0fee2f1052df381f92a70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab603bb5cd05db81c41828dd2f5d24fa6"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#ab603bb5cd05db81c41828dd2f5d24fa6">fancy</a> (time_t t) const </td></tr>
<tr class="separator:ab603bb5cd05db81c41828dd2f5d24fa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8c7b36bbdd181fe665faca6d310889b"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#aa8c7b36bbdd181fe665faca6d310889b">isoDate</a> (time_t t) const </td></tr>
<tr class="separator:aa8c7b36bbdd181fe665faca6d310889b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9925e019c0bfed30af8a7e1465946fa"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#ac9925e019c0bfed30af8a7e1465946fa">localized</a> (time_t t, bool shortFormat=true, bool includeSecs=false, const QString &amp;lang=QString()) const </td></tr>
<tr class="separator:ac9925e019c0bfed30af8a7e1465946fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1be2170f65aff71059aaf6bf53084aee"><td class="memItemLeft" align="right" valign="top">time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a1be2170f65aff71059aaf6bf53084aee">qdateToTimeT</a> (const QDateTime &amp;dt) const </td></tr>
<tr class="separator:a1be2170f65aff71059aaf6bf53084aee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a097b2a0fa48fc2f2e66c0cb20e3941af"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#a097b2a0fa48fc2f2e66c0cb20e3941af">rfc2822</a> (time_t t) const </td></tr>
<tr class="separator:a097b2a0fa48fc2f2e66c0cb20e3941af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af99c4fc7ff896a6b823fbc8c41972188"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKMime_1_1DateFormatter.html#af99c4fc7ff896a6b823fbc8c41972188">zone</a> (time_t t) const </td></tr>
<tr class="separator:af99c4fc7ff896a6b823fbc8c41972188"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class for abstracting date formatting. </p>
<p>This class deals with different kinds of date display formats. The formats supported include:</p>
<ul>
<li><b>fancy</b> "Today 02:08:35"</li>
<li><b>ctime</b> as with the <a class="el" href="kmime__dateformatter_8h.html#ctime">ctime</a> function, eg. "Sun Mar 31 02:08:35 2002"</li>
<li><b>localized</b> according to the control center setting, eg. "2002-03-31 02:08"</li>
<li><b>iso</b> according to the <a class="el" href="kmime__dateformatter_8h.html#ISO8601">ISO8601</a> standard, eg. "2002-03-31 02:08:35"</li>
<li><b>rfc</b> according to <a class="el" href="kmime__dateformatter_8h.html#RFC2822">RFC2822</a> (Section 3.3), eg. "Sun, 31 Mar 2002 02:08:35 -0500"</li>
<li><b>custom</b> "whatever you like" </li>
</ul>

<p>Definition at line <a class="el" href="kmime__dateformatter_8h_source.html#l00070">70</a> of file <a class="el" href="kmime__dateformatter_8h_source.html">kmime_dateformatter.h</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="abe6bab89036e1050aa9793be7c5455e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">KMime::DateFormatter::FormatType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The different types of date formats. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="abe6bab89036e1050aa9793be7c5455e0a5c47e04342e3e0756e04fb76d8c46b97"></a>CTime</em>&nbsp;</td><td class="fielddoc">
<p>ctime "Sun Mar 31 02:08:35 2002" </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de"></a>Localized</em>&nbsp;</td><td class="fielddoc">
<p>localized "2002-03-31 02:08" </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe6bab89036e1050aa9793be7c5455e0af612a72c3593c374f62c70de13c821cb"></a>Fancy</em>&nbsp;</td><td class="fielddoc">
<p>fancy "Today 02:08:35" </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe6bab89036e1050aa9793be7c5455e0a83dfb3d6517b9694237675fa9ecdaf96"></a>Iso</em>&nbsp;</td><td class="fielddoc">
<p>iso "2002-03-31 02:08:35" </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe6bab89036e1050aa9793be7c5455e0a108c6c4f49e719d7fc35fb7cb0e040f8"></a>Rfc</em>&nbsp;</td><td class="fielddoc">
<p>rfc "Sun, 31 Mar 2002 02:08:35 -0500" </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe6bab89036e1050aa9793be7c5455e0a418592a51dc3b4733a21766d65300aec"></a>Custom</em>&nbsp;</td><td class="fielddoc">
<p>custom "whatever you like" </p>
</td></tr>
</table>

<p>Definition at line <a class="el" href="kmime__dateformatter_8h_source.html#l00076">76</a> of file <a class="el" href="kmime__dateformatter_8h_source.html">kmime_dateformatter.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aee73fc070c0fe833d787d1ca4658a675"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">DateFormatter::DateFormatter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">FormatType</a>&#160;</td>
          <td class="paramname"><em>ftype</em> = <code><a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0af612a72c3593c374f62c70de13c821cb">DateFormatter::Fancy</a></code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructs a date formatter with a default <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ftype</td><td>is the default <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> to use. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00051">51</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aefa9ef4142351525ef676999cc7df9bc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DateFormatter::~DateFormatter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroys the date formatter. </p>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00056">56</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a3cf8366fb70ef6f76d522d2a0e0f94c4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::cTime </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a QString containing the specified time_t <code>t</code> formatted with the ctime() function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>is the time_t to use for formatting. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00281">281</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9c2bd26e44d0fee2f1052df381f92a70"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::custom </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a QString containing the specified time_t <code>t</code> formatted with a previously specified custom format. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>time used for formatting </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00115">115</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8ace22571dc754313c883a4d20f645cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::customFormat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the custom format string. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classKMime_1_1DateFormatter.html#a30ec835980cac5fcdd6f22104d734343" title="Sets the custom format for date to string conversions to format.">setCustomFormat()</a>. </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00141">141</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7a9ba37dedecf603ae45ba17cb9601e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::dateString </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>lang</em> = <code>QString()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shortFormat</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeSecs</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a formatted date string from time_t <code>t</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>is the time_t to use for formatting. </td></tr>
    <tr><td class="paramname">lang</td><td>is the language, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>. </td></tr>
    <tr><td class="paramname">shortFormat</td><td>if true, create the short version of the date string, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>. </td></tr>
    <tr><td class="paramname">includeSecs</td><td>if true, include the seconds field in the date string, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a QString containing the formatted date. </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00070">70</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab7422ee6f7223874d3cbb3cd414fcc8a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::dateString </td>
          <td>(</td>
          <td class="paramtype">const QDateTime &amp;&#160;</td>
          <td class="paramname"><em>dtime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>lang</em> = <code>QString()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shortFormat</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeSecs</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a formatted date string from QDateTime <code>dtime</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dtime</td><td>is the QDateTime to use for formatting. </td></tr>
    <tr><td class="paramname">lang</td><td>is the language, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>. </td></tr>
    <tr><td class="paramname">shortFormat</td><td>if true, create the short version of the date string, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>. </td></tr>
    <tr><td class="paramname">includeSecs</td><td>if true, include the seconds field in the date string, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a QString containing the formatted date. </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00096">96</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab603bb5cd05db81c41828dd2f5d24fa6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::fancy </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a QString containing the specified time_t <code>t</code> formatted using the <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0af612a72c3593c374f62c70de13c821cb" title="fancy &quot;Today 02:08:35&quot;">Fancy</a> <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>is the time_t to use for formatting. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00220">220</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acfb1e6f5f702ba253180efd212c4a534"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">DateFormatter::FormatType</a> DateFormatter::format </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> currently set. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classKMime_1_1DateFormatter.html#a3e81d89c0561457763a279e379c1770a" title="Sets the date format to ftype.">setFormat()</a>. </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00060">60</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a95442802a088712578e406affcb23578"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::formatCurrentDate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">DateFormatter::FormatType</a>&#160;</td>
          <td class="paramname"><em>ftype</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>data</em> = <code>QString()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shortFormat</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeSecs</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience function, same as <a class="el" href="classKMime_1_1DateFormatter.html#a5236dea083da978bbb56a3722c147e06" title="Convenience function dateString.">formatDate()</a> but returns the current time formatted. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ftype</td><td>is the <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> to use. </td></tr>
    <tr><td class="paramname">data</td><td>is either the format when <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is Custom, or language when <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>. </td></tr>
    <tr><td class="paramname">shortFormat</td><td>if true, create the short version of the date string, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>. </td></tr>
    <tr><td class="paramname">includeSecs</td><td>if true, include the seconds field in the date string, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a QString containing the formatted date. </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00309">309</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5236dea083da978bbb56a3722c147e06"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::formatDate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">DateFormatter::FormatType</a>&#160;</td>
          <td class="paramname"><em>ftype</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>data</em> = <code>QString()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shortFormat</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeSecs</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience function dateString. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ftype</td><td>is the <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> to use. </td></tr>
    <tr><td class="paramname">t</td><td>is the time_t to use for formatting. </td></tr>
    <tr><td class="paramname">data</td><td>is either the format when <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is Custom, or language when <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>. </td></tr>
    <tr><td class="paramname">shortFormat</td><td>if true, create the short version of the date string, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>. </td></tr>
    <tr><td class="paramname">includeSecs</td><td>if true, include the seconds field in the date string, only used if <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a> is <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a QString containing the formatted date. </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00298">298</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7ed0c0c340d76e0accf6408d644ca182"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool DateFormatter::isDaylight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if the current time is on daylight savings time; else false. </p>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00319">319</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa8c7b36bbdd181fe665faca6d310889b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::isoDate </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a QString containing the specified time_t <code>t</code> in the "%Y-%m-%d %H:%M:%S" <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a83dfb3d6517b9694237675fa9ecdaf96" title="iso &quot;2002-03-31 02:08:35&quot;">Iso</a> <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>is the time_t to use for formatting. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00286">286</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac9925e019c0bfed30af8a7e1465946fa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::localized </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shortFormat</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeSecs</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>lang</em> = <code>QString()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a QString containing the specified time_t <code>t</code> formatted using the <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a2e15a0ddce8a6cc76db540d777a874de" title="localized &quot;2002-03-31 02:08&quot;">Localized</a> <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>is the time_t to use for formatting. </td></tr>
    <tr><td class="paramname">shortFormat</td><td>if true, create the short version of the date string. </td></tr>
    <tr><td class="paramname">includeSecs</td><td>if true, include the seconds field in the date string. </td></tr>
    <tr><td class="paramname">lang</td><td>is a QString containing the language to use. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00261">261</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1be2170f65aff71059aaf6bf53084aee"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">time_t DateFormatter::qdateToTimeT </td>
          <td>(</td>
          <td class="paramtype">const QDateTime &amp;&#160;</td>
          <td class="paramname"><em>dt</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Converts QDateTime <code>dt</code> to a time_t value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dt</td><td>is the QDateTime to be converted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the time_t equivalent of the specified QDateTime. </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00207">207</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae2fd35f5bce959ca1b711f5975ac1fdd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DateFormatter::reset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the cached current date used for calculating the fancy date. </p>
<p>This should be called whenever the current date changed, i.e. on midnight. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000007">Deprecated:</a></b></dt><dd>Can be safely removed. The date change is taken care of internally (as of 4.3). </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00293">293</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a097b2a0fa48fc2f2e66c0cb20e3941af"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString DateFormatter::rfc2822 </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a QString containing the specified time_t <code>t</code> in the <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0a108c6c4f49e719d7fc35fb7cb0e040f8" title="rfc &quot;Sun, 31 Mar 2002 02:08:35 -0500&quot;">Rfc</a> <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>is the time_t to use for formatting. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00102">102</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a30ec835980cac5fcdd6f22104d734343"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DateFormatter::setCustomFormat </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the custom format for date to string conversions to <code>format</code>. </p>
<p>This method accepts the same arguments as QDateTime::toString(), but also supports the "Z" expression which is substituted with the <a class="el" href="kmime__dateformatter_8h.html#RFC2822">RFC2822</a> (Section 3.3) style numeric timezone (-0500).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>is a QString containing the custom format.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd>QDateTime::toString(), <a class="el" href="classKMime_1_1DateFormatter.html#a8ace22571dc754313c883a4d20f645cf" title="Returns the custom format string.">customFormat()</a>. </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00135">135</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3e81d89c0561457763a279e379c1770a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DateFormatter::setFormat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0">FormatType</a>&#160;</td>
          <td class="paramname"><em>ftype</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the date format to <code>ftype</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ftype</td><td>is the <a class="el" href="classKMime_1_1DateFormatter.html#abe6bab89036e1050aa9793be7c5455e0" title="The different types of date formats.">FormatType</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classKMime_1_1DateFormatter.html#acfb1e6f5f702ba253180efd212c4a534" title="Returns the FormatType currently set.">format()</a>. </dd></dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00065">65</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af99c4fc7ff896a6b823fbc8c41972188"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray DateFormatter::zone </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a QString that identifies the timezone (eg. </p>
<p>"-0500") of the specified time_t <code>t</code>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>time to compute timezone from. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kmime__dateformatter_8cpp_source.html#l00146">146</a> of file <a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kmime__dateformatter_8h_source.html">kmime_dateformatter.h</a></li>
<li><a class="el" href="kmime__dateformatter_8cpp_source.html">kmime_dateformatter.cpp</a></li>
</ul>
</div><!-- contents -->
<div class="copyrights">
This file is part of the KDE documentation.<br/>
Documentation copyright &copy; 1996-2013 The KDE developers.<br/>
Generated on Fri Jul 12 2013 16:48:19 by
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.8.3.1 written
by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, &copy;&nbsp;1997-2006
<p>
KDE's <a href="http://techbase.kde.org/Policies/Library_Documentation_Policy">Doxygen guidelines</a> are available online.
</p>
</div>
            </div>
          </div>
        </div>
        <div id="left">
          <div class="menu_box">
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">KMIME Library</h2>
<a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "KMIME Library"</a>
</div></div>
<ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="functions.html">Class Members</a></li><li><a href="files.html">File List</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKMime_1_1Base64Codec.html">kmime::base64codec</option>,  <option value="classKMime_1_1BinaryCodec.html">kmime::binarycodec</option>,  <option value="classKMime_1_1BoolFlags.html">kmime::boolflags</option>,  <option value="classKMime_1_1CharFreq.html">kmime::charfreq</option>,  <option value="classKMime_1_1Codec.html">kmime::codec</option>,  <option value="classKMime_1_1Content.html">kmime::content</option>,  <option value="classKMime_1_1ContentIndex.html">kmime::contentindex</option>,  <option value="classKMime_1_1DateFormatter.html">kmime::dateformatter</option>,  <option value="classKMime_1_1Decoder.html">kmime::decoder</option>,  <option value="classKMime_1_1EightBitCodec.html">kmime::eightbitcodec</option>,  <option value="classKMime_1_1Encoder.html">kmime::encoder</option>,  <option value="classKMime_1_1HeaderFactory.html">kmime::headerfactory</option>,  <option value="classKMime_1_1Headers_1_1Base.html">kmime::headers::base</option>,  <option value="classKMime_1_1Headers_1_1Bcc.html">kmime::headers::bcc</option>,  <option value="classKMime_1_1Headers_1_1Cc.html">kmime::headers::cc</option>,  <option value="classKMime_1_1Headers_1_1ContentDescription.html">kmime::headers::contentdescription</option>,  <option value="classKMime_1_1Headers_1_1ContentDisposition.html">kmime::headers::contentdisposition</option>,  <option value="classKMime_1_1Headers_1_1ContentID.html">kmime::headers::contentid</option>,  <option value="classKMime_1_1Headers_1_1ContentLocation.html">kmime::headers::contentlocation</option>,  <option value="classKMime_1_1Headers_1_1ContentTransferEncoding.html">kmime::headers::contenttransferencoding</option>,  <option value="classKMime_1_1Headers_1_1ContentType.html">kmime::headers::contenttype</option>,  <option value="classKMime_1_1Headers_1_1Control.html">kmime::headers::control</option>,  <option value="classKMime_1_1Headers_1_1Date.html">kmime::headers::date</option>,  <option value="classKMime_1_1Headers_1_1FollowUpTo.html">kmime::headers::followupto</option>,  <option value="classKMime_1_1Headers_1_1From.html">kmime::headers::from</option>,  <option value="classKMime_1_1Headers_1_1Generic.html">kmime::headers::generic</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1Address.html">kmime::headers::generics::address</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1AddressList.html">kmime::headers::generics::addresslist</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1DotAtom.html">kmime::headers::generics::dotatom</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1Ident.html">kmime::headers::generics::ident</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1MailboxList.html">kmime::headers::generics::mailboxlist</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1Parametrized.html">kmime::headers::generics::parametrized</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1PhraseList.html">kmime::headers::generics::phraselist</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1SingleIdent.html">kmime::headers::generics::singleident</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1SingleMailbox.html">kmime::headers::generics::singlemailbox</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1Structured.html">kmime::headers::generics::structured</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1Token.html">kmime::headers::generics::token</option>,  <option value="classKMime_1_1Headers_1_1Generics_1_1Unstructured.html">kmime::headers::generics::unstructured</option>,  <option value="classKMime_1_1Headers_1_1InReplyTo.html">kmime::headers::inreplyto</option>,  <option value="classKMime_1_1Headers_1_1Keywords.html">kmime::headers::keywords</option>,  <option value="classKMime_1_1Headers_1_1Lines.html">kmime::headers::lines</option>,  <option value="classKMime_1_1Headers_1_1MailCopiesTo.html">kmime::headers::mailcopiesto</option>,  <option value="classKMime_1_1Headers_1_1MessageID.html">kmime::headers::messageid</option>,  <option value="classKMime_1_1Headers_1_1MIMEVersion.html">kmime::headers::mimeversion</option>,  <option value="classKMime_1_1Headers_1_1Newsgroups.html">kmime::headers::newsgroups</option>,  <option value="classKMime_1_1Headers_1_1Organization.html">kmime::headers::organization</option>,  <option value="classKMime_1_1Headers_1_1References.html">kmime::headers::references</option>,  <option value="classKMime_1_1Headers_1_1ReplyTo.html">kmime::headers::replyto</option>,  <option value="classKMime_1_1Headers_1_1ReturnPath.html">kmime::headers::returnpath</option>,  <option value="classKMime_1_1Headers_1_1Sender.html">kmime::headers::sender</option>,  <option value="classKMime_1_1Headers_1_1Subject.html">kmime::headers::subject</option>,  <option value="classKMime_1_1Headers_1_1Supersedes.html">kmime::headers::supersedes</option>,  <option value="classKMime_1_1Headers_1_1To.html">kmime::headers::to</option>,  <option value="classKMime_1_1Headers_1_1UserAgent.html">kmime::headers::useragent</option>,  <option value="classKMime_1_1IdentityCodec.html">kmime::identitycodec</option>,  <option value="classKMime_1_1KAutoDeleteHash.html">kmime::kautodeletehash</option>,  <option value="classKMime_1_1Message.html">kmime::message</option>,  <option value="classKMime_1_1Parser_1_1MultiPart.html">kmime::parser::multipart</option>,  <option value="classKMime_1_1Parser_1_1NonMimeParser.html">kmime::parser::nonmimeparser</option>,  <option value="classKMime_1_1Parser_1_1UUEncoded.html">kmime::parser::uuencoded</option>,  <option value="classKMime_1_1Parser_1_1YENCEncoded.html">kmime::parser::yencencoded</option>,  <option value="classKMime_1_1QuotedPrintableCodec.html">kmime::quotedprintablecodec</option>,  <option value="classKMime_1_1Rfc2047BEncodingCodec.html">kmime::rfc2047bencodingcodec</option>,  <option value="classKMime_1_1Rfc2047QEncodingCodec.html">kmime::rfc2047qencodingcodec</option>,  <option value="classKMime_1_1Rfc2231EncodingCodec.html">kmime::rfc2231encodingcodec</option>,  <option value="classKMime_1_1SevenBitCodec.html">kmime::sevenbitcodec</option>,  <option value="classKMime_1_1Types_1_1Mailbox.html">kmime::types::mailbox</option>,  <option value="classKMime_1_1UUCodec.html">kmime::uucodec</option>,
</select>
</form>
</div>
-->
<div class="menu_box">
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">kdepimlibs-4.10.5 API Reference</h2>
<a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "kdepimlibs-4.10.5 API Reference"</a>
</div></div>
<div class="nav_list">
<ul>
<li><a href="../../akonadi/html/index.html">akonadi</a></li><li>&nbsp;&nbsp;<a href="../../akonadi/contact/html/index.html">contact</a></li><li>&nbsp;&nbsp;<a href="../../akonadi/kmime/html/index.html">kmime</a></li><li>&nbsp;&nbsp;<a href="../../akonadi/socialutils/html/index.html">socialutils</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kalarmcal/html/index.html">kalarmcal</a></li><li><a href="../../kblog/html/index.html">kblog</a></li><li><a href="../../kcal/html/index.html">kcal</a></li><li><a href="../../kcalcore/html/index.html">kcalcore</a></li><li><a href="../../kcalutils/html/index.html">kcalutils</a></li><li><a href="../../kholidays/html/index.html">kholidays</a></li><li><a href="../../kimap/html/index.html">kimap</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/imap4/html/index.html">imap4</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/mbox/html/index.html">mbox</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/nntp/html/index.html">nntp</a></li><li><a href="../../kldap/html/index.html">kldap</a></li><li><a href="../../kmbox/html/index.html">kmbox</a></li><li><a href="../../kmime/html/index.html">kmime</a></li><li><a href="../../kontactinterface/html/index.html">kontactinterface</a></li><li><a href="../../kpimidentities/html/index.html">kpimidentities</a></li><li><a href="../../kpimtextedit/html/index.html">kpimtextedit</a></li><li><a href="../../kpimutils/html/index.html">kpimutils</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../ktnef/html/index.html">ktnef</a></li><li><a href="../../kxmlrpcclient/html/index.html">kxmlrpcclient</a></li><li><a href="../../mailtransport/html/index.html">mailtransport</a></li><li><a href="../../microblog/html/index.html">microblog</a></li><li><a href="../../qgpgme/html/index.html">qgpgme</a></li><li><a href="../../syndication/html/index.html">syndication</a></li><li>&nbsp;&nbsp;<a href="../../syndication/atom/html/index.html">atom</a></li><li>&nbsp;&nbsp;<a href="../../syndication/rdf/html/index.html">rdf</a></li><li>&nbsp;&nbsp;<a href="../../syndication/rss2/html/index.html">rss2</a></li>
</ul></div></div>
<!-- api_searchbox -->
          </div>
        </div>
        <div class="clearer"></div>
      </div>
      <div class="clearer"></div>
    </div>
    <div id="end_body"></div>
    <div id="footer"><div id="footer_text">
    Report problems with this website to <a href="https://bugs.kde.org/enter_sysadmin_request.cgi?component=api.kde.org">our bug tracking system</a>.<br>
    Contact the specific authors with questions and comments about the page contents.<p>
    KDE<sup>&#174;</sup> and <a href="/media/images/kde_gear_black.png">the K Desktop Environment<sup>&#174;</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
        <a href="http://www.kde.org/contact/impressum.php">Legal</a></p>
    </div></div>
  </div>
<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-45abe0e0c3bebc77@kde.org">Block me</a>
WARNING END
-->
</body>
</html>