Sophie

Sophie

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

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>KCalCore::Duration 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>KCalCore 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="namespaceKCalCore.html">KCalCore</a></li><li class="navelem"><a class="el" href="classKCalCore_1_1Duration.html">Duration</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="classKCalCore_1_1Duration-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">KCalCore::Duration Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="duration_8h_source.html">duration.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:add0db43ca0bb3f936a2ccf8778057d29"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29">Type</a> { <a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29ade2c85ab82b166be706b07f42cff869d">Seconds</a>, 
<a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29ac727ff73a7858ae931dc61e395bdd08a">Days</a>
 }</td></tr>
<tr class="separator:add0db43ca0bb3f936a2ccf8778057d29"><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:a688948a87d69e8982cf7e292c7fe4b0a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a688948a87d69e8982cf7e292c7fe4b0a">Duration</a> ()</td></tr>
<tr class="separator:a688948a87d69e8982cf7e292c7fe4b0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0350a3dd099354f9920c71020ab08774"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a0350a3dd099354f9920c71020ab08774">Duration</a> (const KDateTime &amp;start, const KDateTime &amp;<a class="el" href="classKCalCore_1_1Duration.html#a24b371e0538c0c7b737a3254624f473b">end</a>)</td></tr>
<tr class="separator:a0350a3dd099354f9920c71020ab08774"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3b95d1642e787b13706fc8741d963b9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#ad3b95d1642e787b13706fc8741d963b9">Duration</a> (const KDateTime &amp;start, const KDateTime &amp;<a class="el" href="classKCalCore_1_1Duration.html#a24b371e0538c0c7b737a3254624f473b">end</a>, <a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29">Type</a> <a class="el" href="classKCalCore_1_1Duration.html#a1a90a30c608ac275965bd8f5d09d48da">type</a>)</td></tr>
<tr class="separator:ad3b95d1642e787b13706fc8741d963b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fc3d162136472f7b66535d54a8f5577"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a4fc3d162136472f7b66535d54a8f5577">Duration</a> (int duration, <a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29">Type</a> <a class="el" href="classKCalCore_1_1Duration.html#a1a90a30c608ac275965bd8f5d09d48da">type</a>=<a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29ade2c85ab82b166be706b07f42cff869d">Seconds</a>)</td></tr>
<tr class="separator:a4fc3d162136472f7b66535d54a8f5577"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a932e850f255d45ac2db58c27863a0202"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a932e850f255d45ac2db58c27863a0202">Duration</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;duration)</td></tr>
<tr class="separator:a932e850f255d45ac2db58c27863a0202"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32b4f7a84922729de9fd5d2cd6762c42"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a32b4f7a84922729de9fd5d2cd6762c42">~Duration</a> ()</td></tr>
<tr class="separator:a32b4f7a84922729de9fd5d2cd6762c42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37a3891ef78b74c49f823d9cad86bdff"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a37a3891ef78b74c49f823d9cad86bdff">asDays</a> () const </td></tr>
<tr class="separator:a37a3891ef78b74c49f823d9cad86bdff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34b69f5167fc798461a45971619227f6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a34b69f5167fc798461a45971619227f6">asSeconds</a> () const </td></tr>
<tr class="separator:a34b69f5167fc798461a45971619227f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24b371e0538c0c7b737a3254624f473b"><td class="memItemLeft" align="right" valign="top">KDateTime&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a24b371e0538c0c7b737a3254624f473b">end</a> (const KDateTime &amp;start) const </td></tr>
<tr class="separator:a24b371e0538c0c7b737a3254624f473b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2a85ef5ca397444bf87f77a320d6128"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#ab2a85ef5ca397444bf87f77a320d6128">isDaily</a> () const </td></tr>
<tr class="separator:ab2a85ef5ca397444bf87f77a320d6128"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d79dd20dc41df4ef7b1cea8e2bc4cda"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a5d79dd20dc41df4ef7b1cea8e2bc4cda">operator bool</a> () const </td></tr>
<tr class="separator:a5d79dd20dc41df4ef7b1cea8e2bc4cda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affdd58431f8e1edb327f0b25a6934820"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#affdd58431f8e1edb327f0b25a6934820">operator!</a> () const </td></tr>
<tr class="separator:affdd58431f8e1edb327f0b25a6934820"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60f23f17df175fb25cf5bcf292c997fa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a60f23f17df175fb25cf5bcf292c997fa">operator!=</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other) const </td></tr>
<tr class="separator:a60f23f17df175fb25cf5bcf292c997fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab45565ba99267c39d1d5c0a82d9fc4d1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#ab45565ba99267c39d1d5c0a82d9fc4d1">operator*</a> (int <a class="el" href="classKCalCore_1_1Duration.html#aa1fc4dd65f888e8d2087bf5563233cf4">value</a>) const </td></tr>
<tr class="separator:ab45565ba99267c39d1d5c0a82d9fc4d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec40f552d9d291fd1fa8893b29457718"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#aec40f552d9d291fd1fa8893b29457718">operator*=</a> (int <a class="el" href="classKCalCore_1_1Duration.html#aa1fc4dd65f888e8d2087bf5563233cf4">value</a>)</td></tr>
<tr class="separator:aec40f552d9d291fd1fa8893b29457718"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4551cdaa8e12f62dd9c8d03b3b3c7ff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#aa4551cdaa8e12f62dd9c8d03b3b3c7ff">operator+</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other) const </td></tr>
<tr class="separator:aa4551cdaa8e12f62dd9c8d03b3b3c7ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7957ba6164a1b61f1509f77815af8c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#ab7957ba6164a1b61f1509f77815af8c3">operator+=</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other)</td></tr>
<tr class="separator:ab7957ba6164a1b61f1509f77815af8c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98de8f3ae7e0dca59f6ee66cb97e5201"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a98de8f3ae7e0dca59f6ee66cb97e5201">operator-</a> () const </td></tr>
<tr class="separator:a98de8f3ae7e0dca59f6ee66cb97e5201"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a232f0f94853a6ccb8c16efcf3382769e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a232f0f94853a6ccb8c16efcf3382769e">operator-</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other) const </td></tr>
<tr class="separator:a232f0f94853a6ccb8c16efcf3382769e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0582debb1006999f499087266d5fae4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#ae0582debb1006999f499087266d5fae4">operator-=</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other)</td></tr>
<tr class="separator:ae0582debb1006999f499087266d5fae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7448580dadff9570e92889ac1c0cd423"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a7448580dadff9570e92889ac1c0cd423">operator/</a> (int <a class="el" href="classKCalCore_1_1Duration.html#aa1fc4dd65f888e8d2087bf5563233cf4">value</a>) const </td></tr>
<tr class="separator:a7448580dadff9570e92889ac1c0cd423"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf6cbd8a0a099ee7f2e5870dc07244f2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#aaf6cbd8a0a099ee7f2e5870dc07244f2">operator/=</a> (int <a class="el" href="classKCalCore_1_1Duration.html#aa1fc4dd65f888e8d2087bf5563233cf4">value</a>)</td></tr>
<tr class="separator:aaf6cbd8a0a099ee7f2e5870dc07244f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c7d2c1989e37a3fade759427100621d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a1c7d2c1989e37a3fade759427100621d">operator&lt;</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other) const </td></tr>
<tr class="separator:a1c7d2c1989e37a3fade759427100621d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbc5e625e1ecbddd576fc9dffb68cb3f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#adbc5e625e1ecbddd576fc9dffb68cb3f">operator&lt;=</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other) const </td></tr>
<tr class="separator:adbc5e625e1ecbddd576fc9dffb68cb3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42d941a830ff3aa2fa9f0af430372337"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a42d941a830ff3aa2fa9f0af430372337">operator=</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;duration)</td></tr>
<tr class="separator:a42d941a830ff3aa2fa9f0af430372337"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a195c274bc9635ec1a5ce31b6c6a40523"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a195c274bc9635ec1a5ce31b6c6a40523">operator==</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other) const </td></tr>
<tr class="separator:a195c274bc9635ec1a5ce31b6c6a40523"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67144a4a5206af366b983c88db6b9cf7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a67144a4a5206af366b983c88db6b9cf7">operator&gt;</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other) const </td></tr>
<tr class="separator:a67144a4a5206af366b983c88db6b9cf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a798cb515524ee5ca42be0fdcb8bce700"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a798cb515524ee5ca42be0fdcb8bce700">operator&gt;=</a> (const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;other) const </td></tr>
<tr class="separator:a798cb515524ee5ca42be0fdcb8bce700"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a90a30c608ac275965bd8f5d09d48da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29">Type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#a1a90a30c608ac275965bd8f5d09d48da">type</a> () const </td></tr>
<tr class="separator:a1a90a30c608ac275965bd8f5d09d48da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1fc4dd65f888e8d2087bf5563233cf4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKCalCore_1_1Duration.html#aa1fc4dd65f888e8d2087bf5563233cf4">value</a> () const </td></tr>
<tr class="separator:aa1fc4dd65f888e8d2087bf5563233cf4"><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>Represents a span of time measured in seconds or days. </p>
<p>A duration is a span of time measured in seconds or days. Construction can be done by specifying a stop and end time, or simply by specifying the number of seconds or days.</p>
<p>Much of the time, it does not matter whether a duration is specified in seconds or in days. But it does make a difference when a duration is used to define a time period encompassing a daylight saving time change. </p>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00052">52</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="add0db43ca0bb3f936a2ccf8778057d29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29">KCalCore::Duration::Type</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The unit of time used to define the duration. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="add0db43ca0bb3f936a2ccf8778057d29ade2c85ab82b166be706b07f42cff869d"></a>Seconds</em>&nbsp;</td><td class="fielddoc">
<p>duration is a number of seconds </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="add0db43ca0bb3f936a2ccf8778057d29ac727ff73a7858ae931dc61e395bdd08a"></a>Days</em>&nbsp;</td><td class="fielddoc">
<p>duration is a number of days </p>
</td></tr>
</table>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00058">58</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a688948a87d69e8982cf7e292c7fe4b0a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Duration::Duration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a duration of 0 seconds. </p>
<p>Private class that helps to provide binary compatibility between releases.</p>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00054">54</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0350a3dd099354f9920c71020ab08774"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Duration::Duration </td>
          <td>(</td>
          <td class="paramtype">const KDateTime &amp;&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const KDateTime &amp;&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a duration from <code>start</code> to <code>end</code>. </p>
<p>If the time of day in <code>start</code> and <code>end</code> is equal, and their time specifications (i.e. time zone etc.) are the same, the duration will be set in terms of days. Otherwise, the duration will be set in terms of seconds.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>is the time the duration begins. </td></tr>
    <tr><td class="paramname">end</td><td>is the time the duration ends. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00059">59</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad3b95d1642e787b13706fc8741d963b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Duration::Duration </td>
          <td>(</td>
          <td class="paramtype">const KDateTime &amp;&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const KDateTime &amp;&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29">Type</a>&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a duration from <code>start</code> to <code>end</code>. </p>
<p>If <code>type</code> is Days, and the time of day in <code>start's</code> time zone differs between <code>start</code> and <code>end</code>, the duration will be rounded down to the nearest whole number of days.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>is the time the duration begins. </td></tr>
    <tr><td class="paramname">end</td><td>is the time the duration ends. </td></tr>
    <tr><td class="paramname">type</td><td>the unit of time to use (seconds or days) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00071">71</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4fc3d162136472f7b66535d54a8f5577"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Duration::Duration </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>duration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29">Type</a>&#160;</td>
          <td class="paramname"><em>type</em> = <code><a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29ade2c85ab82b166be706b07f42cff869d">Seconds</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a duration with a number of seconds or days. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">duration</td><td>the number of seconds or days in the duration </td></tr>
    <tr><td class="paramname">type</td><td>the unit of time to use (seconds or days) </td></tr>
  </table>
  </dd>
</dl>

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

</div>
</div>
<a class="anchor" id="a932e850f255d45ac2db58c27863a0202"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Duration::Duration </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>duration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a duration by copying another duration object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">duration</td><td>is the duration to copy. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00103">103</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

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

<p>Destroys a duration. </p>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00108">108</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a37a3891ef78b74c49f823d9cad86bdff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Duration::asDays </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the length of the duration in days. </p>
<p>If the duration is not an exact number of days, it is rounded down to return the number of whole days. </p>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00203">203</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a34b69f5167fc798461a45971619227f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Duration::asSeconds </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the length of the duration in seconds. </p>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00198">198</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a24b371e0538c0c7b737a3254624f473b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KDateTime Duration::end </td>
          <td>(</td>
          <td class="paramtype">const KDateTime &amp;&#160;</td>
          <td class="paramname"><em>start</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes a duration end time by adding the number of seconds or days in the duration to the specified <code>start</code> time. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>is the start time. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>end time. </dd></dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00182">182</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab2a85ef5ca397444bf87f77a320d6128"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Duration::isDaily </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns whether the duration is specified in terms of days rather than seconds. </p>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00193">193</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5d79dd20dc41df4ef7b1cea8e2bc4cda"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Duration::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns true if this duration is non-zero. </p>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00124">124</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="affdd58431f8e1edb327f0b25a6934820"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool KCalCore::Duration::operator! </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if this duration is zero. </p>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00130">130</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<a class="anchor" id="a60f23f17df175fb25cf5bcf292c997fa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classKCalCore_1_1Duration.html#affdd58431f8e1edb327f0b25a6934820">KCalCore::Duration::operator!</a>= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if this duration is not equal to the <code>other</code>. </p>
<p>Daily and non-daily durations are always considered unequal, since a day's duration may differ from 24 hours if it happens to span a daylight saving time change. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>is the other duration to compare. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00175">175</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab45565ba99267c39d1d5c0a82d9fc4d1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> KCalCore::Duration::operator* </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Multiplies a duration by a value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>value to multiply by </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>resultant duration </dd></dl>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00234">234</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<a class="anchor" id="aec40f552d9d291fd1fa8893b29457718"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp; Duration::operator*= </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Multiplies this duration by a value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>value to multiply by </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00170">170</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa4551cdaa8e12f62dd9c8d03b3b3c7ff"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> KCalCore::Duration::operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Adds two durations. </p>
<p>If one is in terms of days and the other in terms of seconds, the result is in terms of seconds.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>the other duration to add </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>combined duration </dd></dl>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00194">194</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab7957ba6164a1b61f1509f77815af8c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp; Duration::operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds another duration to this one. </p>
<p>If one is in terms of days and the other in terms of seconds, the result is in terms of seconds. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>the other duration to add </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00147">147</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a98de8f3ae7e0dca59f6ee66cb97e5201"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> Duration::operator- </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the negative of this duration. </p>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00160">160</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a232f0f94853a6ccb8c16efcf3382769e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> KCalCore::Duration::operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the difference between another duration and this. </p>
<p>If one is in terms of days and the other in terms of seconds, the result is in terms of seconds.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>the other duration to subtract </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>difference in durations </dd></dl>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00219">219</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae0582debb1006999f499087266d5fae4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp; Duration::operator-= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Subtracts another duration from this one. </p>
<p>If one is in terms of days and the other in terms of seconds, the result is in terms of seconds.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>the other duration to subtract </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00165">165</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7448580dadff9570e92889ac1c0cd423"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> KCalCore::Duration::operator/ </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Divides a duration by a value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>value to divide by </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>resultant duration </dd></dl>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00249">249</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<a class="anchor" id="aaf6cbd8a0a099ee7f2e5870dc07244f2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp; Duration::operator/= </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Divides this duration by a value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>value to divide by </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00176">176</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1c7d2c1989e37a3fade759427100621d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Duration::operator&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns true if this duration is smaller than the <code>other</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>is the other duration to compare. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00129">129</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adbc5e625e1ecbddd576fc9dffb68cb3f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool KCalCore::Duration::operator&lt;= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if this duration is smaller than or equal to the <code>other</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>is the other duration to compare. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00142">142</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<a class="anchor" id="a42d941a830ff3aa2fa9f0af430372337"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp; Duration::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>duration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets this duration equal to <code>duration</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">duration</td><td>is the duration to copy. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00113">113</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a195c274bc9635ec1a5ce31b6c6a40523"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Duration::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns true if this duration is equal to the <code>other</code>. </p>
<p>Daily and non-daily durations are always considered unequal, since a day's duration may differ from 24 hours if it happens to span a daylight saving time change. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>the other duration to compare </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00138">138</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a67144a4a5206af366b983c88db6b9cf7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool KCalCore::Duration::operator&gt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if this duration is greater than the <code>other</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>is the other duration to compare. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00149">149</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<a class="anchor" id="a798cb515524ee5ca42be0fdcb8bce700"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool KCalCore::Duration::operator&gt;= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKCalCore_1_1Duration.html">Duration</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if this duration is greater than or equal to the <code>other</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>is the other duration to compare. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="duration_8h_source.html#l00156">156</a> of file <a class="el" href="duration_8h_source.html">duration.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1a90a30c608ac275965bd8f5d09d48da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCalCore_1_1Duration.html#add0db43ca0bb3f936a2ccf8778057d29">Duration::Type</a> Duration::type </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the time units (seconds or days) used to specify the duration. </p>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00188">188</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa1fc4dd65f888e8d2087bf5563233cf4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Duration::value </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the length of the duration in seconds or days. </p>
<dl class="section return"><dt>Returns</dt><dd>if <a class="el" href="classKCalCore_1_1Duration.html#ab2a85ef5ca397444bf87f77a320d6128" title="Returns whether the duration is specified in terms of days rather than seconds.">isDaily()</a>, duration in days, else duration in seconds </dd></dl>

<p>Definition at line <a class="el" href="duration_8cpp_source.html#l00208">208</a> of file <a class="el" href="duration_8cpp_source.html">duration.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="duration_8h_source.html">duration.h</a></li>
<li><a class="el" href="duration_8cpp_source.html">duration.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:01 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">KCalCore Library</h2>
<a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "KCalCore 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="globals.html">File Members</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="classKCalCore_1_1Alarm.html">kcalcore::alarm</option>,  <option value="classKCalCore_1_1Attachment.html">kcalcore::attachment</option>,  <option value="classKCalCore_1_1Attendee.html">kcalcore::attendee</option>,  <option value="classKCalCore_1_1Calendar.html">kcalcore::calendar</option>,  <option value="classKCalCore_1_1Calendar_1_1CalendarObserver.html">kcalcore::calendar::calendarobserver</option>,  <option value="classKCalCore_1_1CalFilter.html">kcalcore::calfilter</option>,  <option value="classKCalCore_1_1CalFormat.html">kcalcore::calformat</option>,  <option value="classKCalCore_1_1CalStorage.html">kcalcore::calstorage</option>,  <option value="classKCalCore_1_1Compat.html">kcalcore::compat</option>,  <option value="classKCalCore_1_1Compat32PrereleaseVersions.html">kcalcore::compat32prereleaseversions</option>,  <option value="classKCalCore_1_1CompatDecorator.html">kcalcore::compatdecorator</option>,  <option value="classKCalCore_1_1CompatFactory.html">kcalcore::compatfactory</option>,  <option value="classKCalCore_1_1CompatOutlook9.html">kcalcore::compatoutlook9</option>,  <option value="classKCalCore_1_1CompatPre31.html">kcalcore::compatpre31</option>,  <option value="classKCalCore_1_1CompatPre32.html">kcalcore::compatpre32</option>,  <option value="classKCalCore_1_1CompatPre34.html">kcalcore::compatpre34</option>,  <option value="classKCalCore_1_1CompatPre35.html">kcalcore::compatpre35</option>,  <option value="classKCalCore_1_1CompatPre410.html">kcalcore::compatpre410</option>,  <option value="classKCalCore_1_1CustomProperties.html">kcalcore::customproperties</option>,  <option value="classKCalCore_1_1Duration.html">kcalcore::duration</option>,  <option value="classKCalCore_1_1Event.html">kcalcore::event</option>,  <option value="classKCalCore_1_1Exception.html">kcalcore::exception</option>,  <option value="classKCalCore_1_1FileStorage.html">kcalcore::filestorage</option>,  <option value="classKCalCore_1_1FreeBusy.html">kcalcore::freebusy</option>,  <option value="classKCalCore_1_1FreeBusyCache.html">kcalcore::freebusycache</option>,  <option value="classKCalCore_1_1FreeBusyPeriod.html">kcalcore::freebusyperiod</option>,  <option value="classKCalCore_1_1FreeBusyUrlStore.html">kcalcore::freebusyurlstore</option>,  <option value="classKCalCore_1_1ICalFormat.html">kcalcore::icalformat</option>,  <option value="classKCalCore_1_1ICalFormatImpl.html">kcalcore::icalformatimpl</option>,  <option value="classKCalCore_1_1ICalTimeZone.html">kcalcore::icaltimezone</option>,  <option value="classKCalCore_1_1ICalTimeZoneBackend.html">kcalcore::icaltimezonebackend</option>,  <option value="classKCalCore_1_1ICalTimeZoneData.html">kcalcore::icaltimezonedata</option>,  <option value="classKCalCore_1_1ICalTimeZones.html">kcalcore::icaltimezones</option>,  <option value="classKCalCore_1_1ICalTimeZoneSource.html">kcalcore::icaltimezonesource</option>,  <option value="classKCalCore_1_1Incidence.html">kcalcore::incidence</option>,  <option value="classKCalCore_1_1IncidenceBase.html">kcalcore::incidencebase</option>,  <option value="classKCalCore_1_1IncidenceBase_1_1IncidenceObserver.html">kcalcore::incidencebase::incidenceobserver</option>,  <option value="classKCalCore_1_1Journal.html">kcalcore::journal</option>,  <option value="classKCalCore_1_1MemoryCalendar.html">kcalcore::memorycalendar</option>,  <option value="classKCalCore_1_1Period.html">kcalcore::period</option>,  <option value="classKCalCore_1_1Person.html">kcalcore::person</option>,  <option value="classKCalCore_1_1Recurrence.html">kcalcore::recurrence</option>,  <option value="classKCalCore_1_1RecurrenceRule.html">kcalcore::recurrencerule</option>,  <option value="classKCalCore_1_1RecurrenceRule_1_1WDayPos.html">kcalcore::recurrencerule::wdaypos</option>,  <option value="classKCalCore_1_1ScheduleMessage.html">kcalcore::schedulemessage</option>,  <option value="classKCalCore_1_1SortableList.html">kcalcore::sortablelist</option>,  <option value="classKCalCore_1_1Todo.html">kcalcore::todo</option>,  <option value="classKCalCore_1_1VCalFormat.html">kcalcore::vcalformat</option>,  <option value="classKCalCore_1_1Visitor.html">kcalcore::visitor</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>