<refentry id="libtracker-common-tracker-date-time-utils">
<refmeta>
<refentrytitle role="top_of_page" id="libtracker-common-tracker-date-time-utils.top_of_page">tracker-date-time-utils</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBTRACKER-COMMON Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>tracker-date-time-utils</refname>
<refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv id="libtracker-common-tracker-date-time-utils.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
#define             <link linkend="TRACKER-DATE-ERROR--CAPS">TRACKER_DATE_ERROR</link>
#define             <link linkend="TRACKER-TYPE-DATE-TIME--CAPS">TRACKER_TYPE_DATE_TIME</link>
enum                <link linkend="TrackerDateError">TrackerDateError</link>;
<link linkend="GQuark">GQuark</link>              <link linkend="tracker-date-error-quark">tracker_date_error_quark</link>            (void);
<link linkend="gint">gint</link>                <link linkend="tracker-date-time-get-local-date">tracker_date_time_get_local_date</link>    (const <link linkend="GValue">GValue</link> *value);
<link linkend="gint">gint</link>                <link linkend="tracker-date-time-get-local-time">tracker_date_time_get_local_time</link>    (const <link linkend="GValue">GValue</link> *value);
<link linkend="gint">gint</link>                <link linkend="tracker-date-time-get-offset">tracker_date_time_get_offset</link>        (const <link linkend="GValue">GValue</link> *value);
<link linkend="gint64">gint64</link>              <link linkend="tracker-date-time-get-time">tracker_date_time_get_time</link>          (const <link linkend="GValue">GValue</link> *value);
<link linkend="GType">GType</link>               <link linkend="tracker-date-time-get-type">tracker_date_time_get_type</link>          (void);
<link linkend="void">void</link>                <link linkend="tracker-date-time-set">tracker_date_time_set</link>               (<link linkend="GValue">GValue</link> *value,
                                                         <link linkend="gint64">gint64</link> time,
                                                         <link linkend="gint">gint</link> offset);
<link linkend="void">void</link>                <link linkend="tracker-date-time-set-from-string">tracker_date_time_set_from_string</link>   (<link linkend="GValue">GValue</link> *value,
                                                         const <link linkend="gchar">gchar</link> *date_time_string,
                                                         <link linkend="GError">GError</link> **error);
</synopsis>
</refsynopsisdiv>









<refsect1 id="libtracker-common-tracker-date-time-utils.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
</refsect1>

<refsect1 id="libtracker-common-tracker-date-time-utils.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="TRACKER-DATE-ERROR--CAPS" role="macro">
<title>TRACKER_DATE_ERROR</title>
<indexterm zone="TRACKER-DATE-ERROR--CAPS"><primary sortas="TRACKER_DATE_ERROR">TRACKER_DATE_ERROR</primary></indexterm><programlisting>#define TRACKER_DATE_ERROR                     tracker_date_error_quark ()
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-TYPE-DATE-TIME--CAPS" role="macro">
<title>TRACKER_TYPE_DATE_TIME</title>
<indexterm zone="TRACKER-TYPE-DATE-TIME--CAPS"><primary sortas="TRACKER_TYPE_DATE_TIME">TRACKER_TYPE_DATE_TIME</primary></indexterm><programlisting>#define TRACKER_TYPE_DATE_TIME                 (tracker_date_time_get_type ())
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TrackerDateError" role="enum">
<title>enum TrackerDateError</title>
<indexterm zone="TrackerDateError"><primary sortas="TrackerDateError">TrackerDateError</primary></indexterm><programlisting>typedef enum  {
	TRACKER_DATE_ERROR_OFFSET,
	TRACKER_DATE_ERROR_INVALID_ISO8601
} TrackerDateError;
</programlisting>
<para>
</para></refsect2>
<refsect2 id="tracker-date-error-quark" role="function">
<title>tracker_date_error_quark ()</title>
<indexterm zone="tracker-date-error-quark"><primary sortas="tracker_date_error_quark">tracker_date_error_quark</primary></indexterm><programlisting><link linkend="GQuark">GQuark</link>              tracker_date_error_quark            (void);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-date-time-get-local-date" role="function">
<title>tracker_date_time_get_local_date ()</title>
<indexterm zone="tracker-date-time-get-local-date"><primary sortas="tracker_date_time_get_local_date">tracker_date_time_get_local_date</primary></indexterm><programlisting><link linkend="gint">gint</link>                tracker_date_time_get_local_date    (const <link linkend="GValue">GValue</link> *value);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>value</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-date-time-get-local-time" role="function">
<title>tracker_date_time_get_local_time ()</title>
<indexterm zone="tracker-date-time-get-local-time"><primary sortas="tracker_date_time_get_local_time">tracker_date_time_get_local_time</primary></indexterm><programlisting><link linkend="gint">gint</link>                tracker_date_time_get_local_time    (const <link linkend="GValue">GValue</link> *value);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>value</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-date-time-get-offset" role="function">
<title>tracker_date_time_get_offset ()</title>
<indexterm zone="tracker-date-time-get-offset"><primary sortas="tracker_date_time_get_offset">tracker_date_time_get_offset</primary></indexterm><programlisting><link linkend="gint">gint</link>                tracker_date_time_get_offset        (const <link linkend="GValue">GValue</link> *value);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>value</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-date-time-get-time" role="function">
<title>tracker_date_time_get_time ()</title>
<indexterm zone="tracker-date-time-get-time"><primary sortas="tracker_date_time_get_time">tracker_date_time_get_time</primary></indexterm><programlisting><link linkend="gint64">gint64</link>              tracker_date_time_get_time          (const <link linkend="GValue">GValue</link> *value);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>value</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-date-time-get-type" role="function">
<title>tracker_date_time_get_type ()</title>
<indexterm zone="tracker-date-time-get-type"><primary sortas="tracker_date_time_get_type">tracker_date_time_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link>               tracker_date_time_get_type          (void);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-date-time-set" role="function">
<title>tracker_date_time_set ()</title>
<indexterm zone="tracker-date-time-set"><primary sortas="tracker_date_time_set">tracker_date_time_set</primary></indexterm><programlisting><link linkend="void">void</link>                tracker_date_time_set               (<link linkend="GValue">GValue</link> *value,
                                                         <link linkend="gint64">gint64</link> time,
                                                         <link linkend="gint">gint</link> offset);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>value</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>time</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>offset</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-date-time-set-from-string" role="function">
<title>tracker_date_time_set_from_string ()</title>
<indexterm zone="tracker-date-time-set-from-string"><primary sortas="tracker_date_time_set_from_string">tracker_date_time_set_from_string</primary></indexterm><programlisting><link linkend="void">void</link>                tracker_date_time_set_from_string   (<link linkend="GValue">GValue</link> *value,
                                                         const <link linkend="gchar">gchar</link> *date_time_string,
                                                         <link linkend="GError">GError</link> **error);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>value</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>date_time_string</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>error</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
