~cyphermox/ubuntu/quantal/evolution-data-server/autopkgtests

« back to all changes in this revision

Viewing changes to docs/reference/calendar/libecal/html/libecal-e-cal-time-util.html

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-09-19 12:15:29 UTC
  • mfrom: (1.1.93 upstream)
  • Revision ID: package-import@ubuntu.com-20110919121529-nsmfnges77ec7hux
Tags: 3.1.92-0ubuntu1
* New upstream release.
  - Cannot add more than one appointment per session (LP: #852277)
  - Contacts calendar backend doesn't show events (LP: #853905)
  - Set X-Evolution-Source header consistently (LP: #660626)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>e-cal-time-util</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
7
<link rel="home" href="index.html" title="Evolution-Data-Server Manual: Calendar Client (libecal)">
8
8
<link rel="up" href="ch01.html" title="Evolution-Data-Server Manual: Calendar Client (libecal)">
9
9
<link rel="prev" href="libecal-e-cal-recur.html" title="e-cal-recur">
10
10
<link rel="next" href="libecal-e-cal-types.html" title="e-cal-types">
11
 
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
37
37
</tr></table></div>
38
38
<div class="refsynopsisdiv">
39
39
<a name="libecal-e-cal-time-util.synopsis"></a><h2>Synopsis</h2>
40
 
<pre class="synopsis"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="libecal-e-cal-time-util.html#time-days-in-month" title="time_days_in_month ()">time_days_in_month</a>                  (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>,
41
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> month</code></em>);
42
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="libecal-e-cal-time-util.html#time-day-of-year" title="time_day_of_year ()">time_day_of_year</a>                    (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> day</code></em>,
43
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> month</code></em>,
44
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>);
45
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="libecal-e-cal-time-util.html#time-day-of-week" title="time_day_of_week ()">time_day_of_week</a>                    (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> day</code></em>,
46
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> month</code></em>,
47
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>);
48
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libecal-e-cal-time-util.html#time-is-leap-year" title="time_is_leap_year ()">time_is_leap_year</a>                   (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>);
49
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="libecal-e-cal-time-util.html#time-leap-years-up-to" title="time_leap_years_up_to ()">time_leap_years_up_to</a>               (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>);
50
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="libecal-e-cal-time-util.html#isodate-from-time-t" title="isodate_from_time_t ()">isodate_from_time_t</a>                 (<em class="parameter"><code><span class="type">time_t</span> t</code></em>);
51
 
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-from-isodate" title="time_from_isodate ()">time_from_isodate</a>                   (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *str</code></em>);
 
40
<pre class="synopsis"><span class="returnvalue">gint</span>                <a class="link" href="libecal-e-cal-time-util.html#time-days-in-month" title="time_days_in_month ()">time_days_in_month</a>                  (<em class="parameter"><code><span class="type">gint</span> year</code></em>,
 
41
                                                         <em class="parameter"><code><span class="type">gint</span> month</code></em>);
 
42
<span class="returnvalue">gint</span>                <a class="link" href="libecal-e-cal-time-util.html#time-day-of-year" title="time_day_of_year ()">time_day_of_year</a>                    (<em class="parameter"><code><span class="type">gint</span> day</code></em>,
 
43
                                                         <em class="parameter"><code><span class="type">gint</span> month</code></em>,
 
44
                                                         <em class="parameter"><code><span class="type">gint</span> year</code></em>);
 
45
<span class="returnvalue">gint</span>                <a class="link" href="libecal-e-cal-time-util.html#time-day-of-week" title="time_day_of_week ()">time_day_of_week</a>                    (<em class="parameter"><code><span class="type">gint</span> day</code></em>,
 
46
                                                         <em class="parameter"><code><span class="type">gint</span> month</code></em>,
 
47
                                                         <em class="parameter"><code><span class="type">gint</span> year</code></em>);
 
48
<span class="returnvalue">gboolean</span>            <a class="link" href="libecal-e-cal-time-util.html#time-is-leap-year" title="time_is_leap_year ()">time_is_leap_year</a>                   (<em class="parameter"><code><span class="type">gint</span> year</code></em>);
 
49
<span class="returnvalue">gint</span>                <a class="link" href="libecal-e-cal-time-util.html#time-leap-years-up-to" title="time_leap_years_up_to ()">time_leap_years_up_to</a>               (<em class="parameter"><code><span class="type">gint</span> year</code></em>);
 
50
<span class="returnvalue">gchar</span> *             <a class="link" href="libecal-e-cal-time-util.html#isodate-from-time-t" title="isodate_from_time_t ()">isodate_from_time_t</a>                 (<em class="parameter"><code><span class="type">time_t</span> t</code></em>);
 
51
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-from-isodate" title="time_from_isodate ()">time_from_isodate</a>                   (<em class="parameter"><code>const <span class="type">gchar</span> *str</code></em>);
52
52
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-add-day" title="time_add_day ()">time_add_day</a>                        (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
53
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> days</code></em>);
 
53
                                                         <em class="parameter"><code><span class="type">gint</span> days</code></em>);
54
54
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-add-week" title="time_add_week ()">time_add_week</a>                       (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
55
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> weeks</code></em>);
 
55
                                                         <em class="parameter"><code><span class="type">gint</span> weeks</code></em>);
56
56
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-day-begin" title="time_day_begin ()">time_day_begin</a>                      (<em class="parameter"><code><span class="type">time_t</span> t</code></em>);
57
57
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-day-end" title="time_day_end ()">time_day_end</a>                        (<em class="parameter"><code><span class="type">time_t</span> t</code></em>);
58
58
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-add-day-with-zone" title="time_add_day_with_zone ()">time_add_day_with_zone</a>              (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
59
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> days</code></em>,
 
59
                                                         <em class="parameter"><code><span class="type">gint</span> days</code></em>,
60
60
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);
61
61
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-add-week-with-zone" title="time_add_week_with_zone ()">time_add_week_with_zone</a>             (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
62
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> weeks</code></em>,
 
62
                                                         <em class="parameter"><code><span class="type">gint</span> weeks</code></em>,
63
63
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);
64
64
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-add-month-with-zone" title="time_add_month_with_zone ()">time_add_month_with_zone</a>            (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
65
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> months</code></em>,
 
65
                                                         <em class="parameter"><code><span class="type">gint</span> months</code></em>,
66
66
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);
67
67
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-year-begin-with-zone" title="time_year_begin_with_zone ()">time_year_begin_with_zone</a>           (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
68
68
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);
69
69
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-month-begin-with-zone" title="time_month_begin_with_zone ()">time_month_begin_with_zone</a>          (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
70
70
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);
71
71
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-week-begin-with-zone" title="time_week_begin_with_zone ()">time_week_begin_with_zone</a>           (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
72
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> week_start_day</code></em>,
 
72
                                                         <em class="parameter"><code><span class="type">gint</span> week_start_day</code></em>,
73
73
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);
74
74
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-day-begin-with-zone" title="time_day_begin_with_zone ()">time_day_begin_with_zone</a>            (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
75
75
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);
76
76
<span class="returnvalue">time_t</span>              <a class="link" href="libecal-e-cal-time-util.html#time-day-end-with-zone" title="time_day_end_with_zone ()">time_day_end_with_zone</a>              (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
77
77
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);
78
 
<span class="returnvalue">void</span>                <a class="link" href="libecal-e-cal-time-util.html#time-to-gdate-with-zone" title="time_to_gdate_with_zone ()">time_to_gdate_with_zone</a>             (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> *date</code></em>,
 
78
<span class="returnvalue">void</span>                <a class="link" href="libecal-e-cal-time-util.html#time-to-gdate-with-zone" title="time_to_gdate_with_zone ()">time_to_gdate_with_zone</a>             (<em class="parameter"><code><span class="type">GDate</span> *date</code></em>,
79
79
                                                         <em class="parameter"><code><span class="type">time_t</span> time</code></em>,
80
80
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);
81
 
struct <a href="/home/mbarnes/local/unstable/share/gtk-doc/html/libedataserver/libedataserver-e-util.html#tm"><span class="returnvalue">tm</span></a>           <a class="link" href="libecal-e-cal-time-util.html#icaltimetype-to-tm" title="icaltimetype_to_tm ()">icaltimetype_to_tm</a>                  (<em class="parameter"><code><span class="type">struct icaltimetype</span> *itt</code></em>);
82
 
struct <a href="/home/mbarnes/local/unstable/share/gtk-doc/html/libedataserver/libedataserver-e-util.html#tm"><span class="returnvalue">tm</span></a>           <a class="link" href="libecal-e-cal-time-util.html#icaltimetype-to-tm-with-zone" title="icaltimetype_to_tm_with_zone ()">icaltimetype_to_tm_with_zone</a>        (<em class="parameter"><code><span class="type">struct icaltimetype</span> *itt</code></em>,
 
81
struct <span class="returnvalue">tm</span>           <a class="link" href="libecal-e-cal-time-util.html#icaltimetype-to-tm" title="icaltimetype_to_tm ()">icaltimetype_to_tm</a>                  (<em class="parameter"><code><span class="type">struct icaltimetype</span> *itt</code></em>);
 
82
struct <span class="returnvalue">tm</span>           <a class="link" href="libecal-e-cal-time-util.html#icaltimetype-to-tm-with-zone" title="icaltimetype_to_tm_with_zone ()">icaltimetype_to_tm_with_zone</a>        (<em class="parameter"><code><span class="type">struct icaltimetype</span> *itt</code></em>,
83
83
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *from_zone</code></em>,
84
84
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *to_zone</code></em>);
85
 
struct <span class="returnvalue">icaltimetype</span>  <a class="link" href="libecal-e-cal-time-util.html#tm-to-icaltimetype" title="tm_to_icaltimetype ()">tm_to_icaltimetype</a>                 (<em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>,
86
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> is_date</code></em>);
 
85
struct <span class="returnvalue">icaltimetype</span> <a class="link" href="libecal-e-cal-time-util.html#tm-to-icaltimetype" title="tm_to_icaltimetype ()">tm_to_icaltimetype</a>                  (<em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>,
 
86
                                                         <em class="parameter"><code><span class="type">gboolean</span> is_date</code></em>);
87
87
</pre>
88
88
</div>
89
89
<div class="refsect1">
95
95
<a name="libecal-e-cal-time-util.details"></a><h2>Details</h2>
96
96
<div class="refsect2">
97
97
<a name="time-days-in-month"></a><h3>time_days_in_month ()</h3>
98
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                time_days_in_month                  (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>,
99
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> month</code></em>);</pre>
 
98
<pre class="programlisting"><span class="returnvalue">gint</span>                time_days_in_month                  (<em class="parameter"><code><span class="type">gint</span> year</code></em>,
 
99
                                                         <em class="parameter"><code><span class="type">gint</span> month</code></em>);</pre>
100
100
<p>
101
101
Returns the number of days in the month. Year is the normal year, e.g. 2001.
102
102
Month is 0 (Jan) to 11 (Dec).
122
122
<hr>
123
123
<div class="refsect2">
124
124
<a name="time-day-of-year"></a><h3>time_day_of_year ()</h3>
125
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                time_day_of_year                    (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> day</code></em>,
126
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> month</code></em>,
127
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>);</pre>
 
125
<pre class="programlisting"><span class="returnvalue">gint</span>                time_day_of_year                    (<em class="parameter"><code><span class="type">gint</span> day</code></em>,
 
126
                                                         <em class="parameter"><code><span class="type">gint</span> month</code></em>,
 
127
                                                         <em class="parameter"><code><span class="type">gint</span> year</code></em>);</pre>
128
128
<p>
129
129
Returns the 1-based day number within the year of the specified date.
130
130
Year is the normal year, e.g. 2001. Month is 0 to 11.
154
154
<hr>
155
155
<div class="refsect2">
156
156
<a name="time-day-of-week"></a><h3>time_day_of_week ()</h3>
157
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                time_day_of_week                    (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> day</code></em>,
158
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> month</code></em>,
159
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>);</pre>
 
157
<pre class="programlisting"><span class="returnvalue">gint</span>                time_day_of_week                    (<em class="parameter"><code><span class="type">gint</span> day</code></em>,
 
158
                                                         <em class="parameter"><code><span class="type">gint</span> month</code></em>,
 
159
                                                         <em class="parameter"><code><span class="type">gint</span> year</code></em>);</pre>
160
160
<p>
161
161
Returns the day of the week for the specified date, 0 (Sun) to 6 (Sat).
162
162
For the days that were removed on the Gregorian reformation, it returns
187
187
<hr>
188
188
<div class="refsect2">
189
189
<a name="time-is-leap-year"></a><h3>time_is_leap_year ()</h3>
190
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            time_is_leap_year                   (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>);</pre>
 
190
<pre class="programlisting"><span class="returnvalue">gboolean</span>            time_is_leap_year                   (<em class="parameter"><code><span class="type">gint</span> year</code></em>);</pre>
191
191
<p>
192
192
Returns whether the specified year is a leap year. Year is the normal year,
193
193
e.g. 2001.
209
209
<hr>
210
210
<div class="refsect2">
211
211
<a name="time-leap-years-up-to"></a><h3>time_leap_years_up_to ()</h3>
212
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                time_leap_years_up_to               (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> year</code></em>);</pre>
 
212
<pre class="programlisting"><span class="returnvalue">gint</span>                time_leap_years_up_to               (<em class="parameter"><code><span class="type">gint</span> year</code></em>);</pre>
213
213
<p>
214
214
Returns the number of leap years since year 1 up to (but not including) the
215
215
specified year. Year is the normal year, e.g. 2001.
231
231
<hr>
232
232
<div class="refsect2">
233
233
<a name="isodate-from-time-t"></a><h3>isodate_from_time_t ()</h3>
234
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             isodate_from_time_t                 (<em class="parameter"><code><span class="type">time_t</span> t</code></em>);</pre>
 
234
<pre class="programlisting"><span class="returnvalue">gchar</span> *             isodate_from_time_t                 (<em class="parameter"><code><span class="type">time_t</span> t</code></em>);</pre>
235
235
<p>
236
236
Creates an ISO 8601 UTC representation from a time value.
237
237
</p>
252
252
<hr>
253
253
<div class="refsect2">
254
254
<a name="time-from-isodate"></a><h3>time_from_isodate ()</h3>
255
 
<pre class="programlisting"><span class="returnvalue">time_t</span>              time_from_isodate                   (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *str</code></em>);</pre>
 
255
<pre class="programlisting"><span class="returnvalue">time_t</span>              time_from_isodate                   (<em class="parameter"><code>const <span class="type">gchar</span> *str</code></em>);</pre>
256
256
<p>
257
257
Converts an ISO 8601 UTC time string into a time_t value.
258
258
</p>
275
275
<div class="refsect2">
276
276
<a name="time-add-day"></a><h3>time_add_day ()</h3>
277
277
<pre class="programlisting"><span class="returnvalue">time_t</span>              time_add_day                        (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
278
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> days</code></em>);</pre>
 
278
                                                         <em class="parameter"><code><span class="type">gint</span> days</code></em>);</pre>
279
279
<p>
280
280
Adds a day onto the time, using local time.
281
281
Note that if clocks go forward due to daylight savings time, there are
307
307
<div class="refsect2">
308
308
<a name="time-add-week"></a><h3>time_add_week ()</h3>
309
309
<pre class="programlisting"><span class="returnvalue">time_t</span>              time_add_week                       (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
310
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> weeks</code></em>);</pre>
 
310
                                                         <em class="parameter"><code><span class="type">gint</span> weeks</code></em>);</pre>
311
311
<p>
312
312
Adds the given number of weeks to a time value.
313
313
</p>
375
375
<div class="refsect2">
376
376
<a name="time-add-day-with-zone"></a><h3>time_add_day_with_zone ()</h3>
377
377
<pre class="programlisting"><span class="returnvalue">time_t</span>              time_add_day_with_zone              (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
378
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> days</code></em>,
 
378
                                                         <em class="parameter"><code><span class="type">gint</span> days</code></em>,
379
379
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);</pre>
380
380
<p>
381
381
Adds or subtracts a number of days to/from the given time_t value, using
410
410
<div class="refsect2">
411
411
<a name="time-add-week-with-zone"></a><h3>time_add_week_with_zone ()</h3>
412
412
<pre class="programlisting"><span class="returnvalue">time_t</span>              time_add_week_with_zone             (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
413
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> weeks</code></em>,
 
413
                                                         <em class="parameter"><code><span class="type">gint</span> weeks</code></em>,
414
414
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);</pre>
415
415
<p>
416
416
Adds or subtracts a number of weeks to/from the given time_t value, using
445
445
<div class="refsect2">
446
446
<a name="time-add-month-with-zone"></a><h3>time_add_month_with_zone ()</h3>
447
447
<pre class="programlisting"><span class="returnvalue">time_t</span>              time_add_month_with_zone            (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
448
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> months</code></em>,
 
448
                                                         <em class="parameter"><code><span class="type">gint</span> months</code></em>,
449
449
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);</pre>
450
450
<p>
451
451
Adds or subtracts a number of months to/from the given time_t value, using
547
547
<div class="refsect2">
548
548
<a name="time-week-begin-with-zone"></a><h3>time_week_begin_with_zone ()</h3>
549
549
<pre class="programlisting"><span class="returnvalue">time_t</span>              time_week_begin_with_zone           (<em class="parameter"><code><span class="type">time_t</span> time</code></em>,
550
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> week_start_day</code></em>,
 
550
                                                         <em class="parameter"><code><span class="type">gint</span> week_start_day</code></em>,
551
551
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);</pre>
552
552
<p>
553
553
Returns the start of the week containing the given time_t, using the given
642
642
<hr>
643
643
<div class="refsect2">
644
644
<a name="time-to-gdate-with-zone"></a><h3>time_to_gdate_with_zone ()</h3>
645
 
<pre class="programlisting"><span class="returnvalue">void</span>                time_to_gdate_with_zone             (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> *date</code></em>,
 
645
<pre class="programlisting"><span class="returnvalue">void</span>                time_to_gdate_with_zone             (<em class="parameter"><code><span class="type">GDate</span> *date</code></em>,
646
646
                                                         <em class="parameter"><code><span class="type">time_t</span> time</code></em>,
647
647
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *zone</code></em>);</pre>
648
648
<p>
649
 
Converts a time_t value to a <a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> structure using the specified timezone.
650
 
This is analogous to <a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#g-date-set-time"><code class="function">g_date_set_time()</code></a> but takes the timezone into account.
 
649
Converts a time_t value to a <span class="type">GDate</span> structure using the specified timezone.
 
650
This is analogous to <code class="function">g_date_set_time()</code> but takes the timezone into account.
651
651
</p>
652
652
<div class="variablelist"><table border="0">
653
653
<col align="left" valign="top">
654
654
<tbody>
655
655
<tr>
656
656
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
657
 
<td>Destination <a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> value.</td>
 
657
<td>Destination <span class="type">GDate</span> value.</td>
658
658
</tr>
659
659
<tr>
660
660
<td><p><span class="term"><em class="parameter"><code>time</code></em> :</span></p></td>
671
671
<hr>
672
672
<div class="refsect2">
673
673
<a name="icaltimetype-to-tm"></a><h3>icaltimetype_to_tm ()</h3>
674
 
<pre class="programlisting">struct <a href="/home/mbarnes/local/unstable/share/gtk-doc/html/libedataserver/libedataserver-e-util.html#tm"><span class="returnvalue">tm</span></a>           icaltimetype_to_tm                  (<em class="parameter"><code><span class="type">struct icaltimetype</span> *itt</code></em>);</pre>
 
674
<pre class="programlisting">struct <span class="returnvalue">tm</span>           icaltimetype_to_tm                  (<em class="parameter"><code><span class="type">struct icaltimetype</span> *itt</code></em>);</pre>
675
675
<p>
676
676
Convers an icaltimetype structure into a GLibc's struct tm.
677
677
</p>
694
694
<hr>
695
695
<div class="refsect2">
696
696
<a name="icaltimetype-to-tm-with-zone"></a><h3>icaltimetype_to_tm_with_zone ()</h3>
697
 
<pre class="programlisting">struct <a href="/home/mbarnes/local/unstable/share/gtk-doc/html/libedataserver/libedataserver-e-util.html#tm"><span class="returnvalue">tm</span></a>           icaltimetype_to_tm_with_zone        (<em class="parameter"><code><span class="type">struct icaltimetype</span> *itt</code></em>,
 
697
<pre class="programlisting">struct <span class="returnvalue">tm</span>           icaltimetype_to_tm_with_zone        (<em class="parameter"><code><span class="type">struct icaltimetype</span> *itt</code></em>,
698
698
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *from_zone</code></em>,
699
699
                                                         <em class="parameter"><code><span class="type">icaltimezone</span> *to_zone</code></em>);</pre>
700
700
<p>
728
728
<hr>
729
729
<div class="refsect2">
730
730
<a name="tm-to-icaltimetype"></a><h3>tm_to_icaltimetype ()</h3>
731
 
<pre class="programlisting">struct <span class="returnvalue">icaltimetype</span>  tm_to_icaltimetype                 (<em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>,
732
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> is_date</code></em>);</pre>
 
731
<pre class="programlisting">struct <span class="returnvalue">icaltimetype</span> tm_to_icaltimetype                  (<em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>,
 
732
                                                         <em class="parameter"><code><span class="type">gboolean</span> is_date</code></em>);</pre>
733
733
<p>
734
734
Converts a struct tm into an icaltimetype.
735
735
</p>
756
756
</div>
757
757
<div class="footer">
758
758
<hr>
759
 
          Generated by GTK-Doc V1.17</div>
 
759
          Generated by GTK-Doc V1.18</div>
760
760
</body>
761
761
</html>
 
 
b'\\ No newline at end of file'