| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 |
<title>OobsTimeConfig</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> |
| 7 |
<link rel="home" href="index.html" title="Liboobs (System configuration management) Reference Manual"> |
| 8 |
<link rel="up" href="ch04.html" title="Date and time management"> |
| 9 |
<link rel="prev" href="ch04.html" title="Date and time management"> |
| 10 |
<link rel="next" href="OobsNTPConfig.html" title="OobsNTPConfig"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.15 (XML mode)"> |
| 12 |
<link rel="stylesheet" href="style.css" type="text/css"> |
| 13 |
</head> |
| 14 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 |
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> |
| 16 |
<tr valign="middle"> |
| 17 |
<td><a accesskey="p" href="ch04.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
| 18 |
<td><a accesskey="u" href="ch04.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> |
| 19 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> |
| 20 |
<th width="100%" align="center">Liboobs (System configuration management) Reference Manual</th> |
| 21 |
<td><a accesskey="n" href="OobsNTPConfig.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
| 22 |
</tr> |
| 23 |
<tr><td colspan="5" class="shortcuts"> |
| 24 |
<a href="#OobsTimeConfig.synopsis" class="shortcut">Top</a> |
| 25 |
| |
| 26 |
<a href="#OobsTimeConfig.description" class="shortcut">Description</a> |
| 27 |
| |
| 28 |
<a href="#OobsTimeConfig.object-hierarchy" class="shortcut">Object Hierarchy</a> |
| 29 |
| |
| 30 |
<a href="#OobsTimeConfig.properties" class="shortcut">Properties</a> |
| 31 |
</td></tr> |
| 32 |
</table> |
| 33 |
<div class="refentry" title="OobsTimeConfig"> |
| 34 |
<a name="OobsTimeConfig"></a><div class="titlepage"></div> |
| 35 |
<div class="refnamediv"><table width="100%"><tr> |
| 36 |
<td valign="top"> |
| 37 |
<h2><span class="refentrytitle"><a name="OobsTimeConfig.top_of_page"></a>OobsTimeConfig</span></h2> |
| 38 |
<p>OobsTimeConfig — Object that represents time configuration</p> |
| 39 |
</td> |
| 40 |
<td valign="top" align="right"></td> |
| 41 |
</tr></table></div> |
| 42 |
<div class="refsynopsisdiv" title="Synopsis"> |
| 43 |
<a name="OobsTimeConfig.synopsis"></a><h2>Synopsis</h2> |
| 44 |
<pre class="synopsis"> <a class="link" href="OobsTimeConfig.html#OobsTimeConfig-struct" title="OobsTimeConfig">OobsTimeConfig</a>; |
| 45 |
<a class="link" href="OobsTimeConfig.html#OobsTimeConfigClass" title="OobsTimeConfigClass">OobsTimeConfigClass</a>; |
| 46 |
<a class="link" href="OobsObject.html" title="OobsObject"><span class="returnvalue">OobsObject</span></a>* <a class="link" href="OobsTimeConfig.html#oobs-time-config-get" title="oobs_time_config_get ()">oobs_time_config_get</a> (<em class="parameter"><code><span class="type">void</span></code></em>); |
| 47 |
<span class="returnvalue">glong</span> <a class="link" href="OobsTimeConfig.html#oobs-time-config-get-unix-time" title="oobs_time_config_get_unix_time ()">oobs_time_config_get_unix_time</a> (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>); |
| 48 |
<span class="returnvalue">void</span> <a class="link" href="OobsTimeConfig.html#oobs-time-config-set-unix-time" title="oobs_time_config_set_unix_time ()">oobs_time_config_set_unix_time</a> (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 49 |
<em class="parameter"><code><span class="type">glong</span> unix_time</code></em>); |
| 50 |
<span class="returnvalue">void</span> <a class="link" href="OobsTimeConfig.html#oobs-time-config-get-time" title="oobs_time_config_get_time ()">oobs_time_config_get_time</a> (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 51 |
<em class="parameter"><code><span class="type">gint</span> *year</code></em>, |
| 52 |
<em class="parameter"><code><span class="type">gint</span> *month</code></em>, |
| 53 |
<em class="parameter"><code><span class="type">gint</span> *day</code></em>, |
| 54 |
<em class="parameter"><code><span class="type">gint</span> *hour</code></em>, |
| 55 |
<em class="parameter"><code><span class="type">gint</span> *minute</code></em>, |
| 56 |
<em class="parameter"><code><span class="type">gint</span> *second</code></em>); |
| 57 |
<span class="returnvalue">void</span> <a class="link" href="OobsTimeConfig.html#oobs-time-config-set-time" title="oobs_time_config_set_time ()">oobs_time_config_set_time</a> (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 58 |
<em class="parameter"><code><span class="type">gint</span> year</code></em>, |
| 59 |
<em class="parameter"><code><span class="type">gint</span> month</code></em>, |
| 60 |
<em class="parameter"><code><span class="type">gint</span> day</code></em>, |
| 61 |
<em class="parameter"><code><span class="type">gint</span> hour</code></em>, |
| 62 |
<em class="parameter"><code><span class="type">gint</span> minute</code></em>, |
| 63 |
<em class="parameter"><code><span class="type">gint</span> second</code></em>); |
| 64 |
<span class="returnvalue">void</span> <a class="link" href="OobsTimeConfig.html#oobs-time-config-get-utc-time" title="oobs_time_config_get_utc_time ()">oobs_time_config_get_utc_time</a> (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 65 |
<em class="parameter"><code><span class="type">gint</span> *year</code></em>, |
| 66 |
<em class="parameter"><code><span class="type">gint</span> *month</code></em>, |
| 67 |
<em class="parameter"><code><span class="type">gint</span> *day</code></em>, |
| 68 |
<em class="parameter"><code><span class="type">gint</span> *hour</code></em>, |
| 69 |
<em class="parameter"><code><span class="type">gint</span> *minute</code></em>, |
| 70 |
<em class="parameter"><code><span class="type">gint</span> *second</code></em>); |
| 71 |
<span class="returnvalue">void</span> <a class="link" href="OobsTimeConfig.html#oobs-time-config-set-utc-time" title="oobs_time_config_set_utc_time ()">oobs_time_config_set_utc_time</a> (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 72 |
<em class="parameter"><code><span class="type">gint</span> year</code></em>, |
| 73 |
<em class="parameter"><code><span class="type">gint</span> month</code></em>, |
| 74 |
<em class="parameter"><code><span class="type">gint</span> day</code></em>, |
| 75 |
<em class="parameter"><code><span class="type">gint</span> hour</code></em>, |
| 76 |
<em class="parameter"><code><span class="type">gint</span> minute</code></em>, |
| 77 |
<em class="parameter"><code><span class="type">gint</span> second</code></em>); |
| 78 |
const <span class="returnvalue">gchar</span>* <a class="link" href="OobsTimeConfig.html#oobs-time-config-get-timezone" title="oobs_time_config_get_timezone ()">oobs_time_config_get_timezone</a> (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>); |
| 79 |
<span class="returnvalue">void</span> <a class="link" href="OobsTimeConfig.html#oobs-time-config-set-timezone" title="oobs_time_config_set_timezone ()">oobs_time_config_set_timezone</a> (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 80 |
<em class="parameter"><code>const <span class="type">gchar</span> *timezone</code></em>); |
| 81 |
</pre> |
| 82 |
</div> |
| 83 |
<div class="refsect1" title="Object Hierarchy"> |
| 84 |
<a name="OobsTimeConfig.object-hierarchy"></a><h2>Object Hierarchy</h2> |
| 85 |
<pre class="synopsis"> |
| 86 |
GObject |
| 87 |
+----<a class="link" href="OobsObject.html" title="OobsObject">OobsObject</a> |
| 88 |
+----OobsTimeConfig |
| 89 |
</pre> |
| 90 |
</div> |
| 91 |
<div class="refsect1" title="Properties"> |
| 92 |
<a name="OobsTimeConfig.properties"></a><h2>Properties</h2> |
| 93 |
<pre class="synopsis"> |
| 94 |
"<a class="link" href="OobsTimeConfig.html#OobsTimeConfig--timezone" title='The "timezone" property'>timezone</a>" <span class="type">gchar</span>* : Read / Write |
| 95 |
"<a class="link" href="OobsTimeConfig.html#OobsTimeConfig--unix-time" title='The "unix-time" property'>unix-time</a>" <span class="type">glong</span> : Read / Write |
| 96 |
</pre> |
| 97 |
</div> |
| 98 |
<div class="refsect1" title="Description"> |
| 99 |
<a name="OobsTimeConfig.description"></a><h2>Description</h2> |
| 100 |
</div> |
| 101 |
<div class="refsect1" title="Details"> |
| 102 |
<a name="OobsTimeConfig.details"></a><h2>Details</h2> |
| 103 |
<div class="refsect2" title="OobsTimeConfig"> |
| 104 |
<a name="OobsTimeConfig-struct"></a><h3>OobsTimeConfig</h3> |
| 105 |
<pre class="programlisting">typedef struct _OobsTimeConfig OobsTimeConfig;</pre> |
| 106 |
<p> |
| 107 |
</p> |
| 108 |
</div> |
| 109 |
<hr> |
| 110 |
<div class="refsect2" title="OobsTimeConfigClass"> |
| 111 |
<a name="OobsTimeConfigClass"></a><h3>OobsTimeConfigClass</h3> |
| 112 |
<pre class="programlisting">typedef struct { |
| 113 |
OobsObjectClass parent_class; |
| 114 |
|
| 115 |
void (*_oobs_padding1) (void); |
| 116 |
void (*_oobs_padding2) (void); |
| 117 |
void (*_oobs_padding3) (void); |
| 118 |
void (*_oobs_padding4) (void); |
| 119 |
} OobsTimeConfigClass; |
| 120 |
</pre> |
| 121 |
<p> |
| 122 |
</p> |
| 123 |
</div> |
| 124 |
<hr> |
| 125 |
<div class="refsect2" title="oobs_time_config_get ()"> |
| 126 |
<a name="oobs-time-config-get"></a><h3>oobs_time_config_get ()</h3> |
| 127 |
<pre class="programlisting"><a class="link" href="OobsObject.html" title="OobsObject"><span class="returnvalue">OobsObject</span></a>* oobs_time_config_get (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> |
| 128 |
<p> |
| 129 |
Returns the <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> singleton, this object |
| 130 |
represents the date and time configuration. |
| 131 |
</p> |
| 132 |
<div class="variablelist"><table border="0"> |
| 133 |
<col align="left" valign="top"> |
| 134 |
<tbody><tr> |
| 135 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 136 |
<td> the singleton <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a>. |
| 137 |
</td> |
| 138 |
</tr></tbody> |
| 139 |
</table></div> |
| 140 |
</div> |
| 141 |
<hr> |
| 142 |
<div class="refsect2" title="oobs_time_config_get_unix_time ()"> |
| 143 |
<a name="oobs-time-config-get-unix-time"></a><h3>oobs_time_config_get_unix_time ()</h3> |
| 144 |
<pre class="programlisting"><span class="returnvalue">glong</span> oobs_time_config_get_unix_time (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>);</pre> |
| 145 |
<p> |
| 146 |
Returns the time, measured in seconds, since the "epoch" (1970-01-01T00:00:00Z). |
| 147 |
</p> |
| 148 |
<div class="variablelist"><table border="0"> |
| 149 |
<col align="left" valign="top"> |
| 150 |
<tbody> |
| 151 |
<tr> |
| 152 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 153 |
<td>An <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a>. |
| 154 |
</td> |
| 155 |
</tr> |
| 156 |
<tr> |
| 157 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 158 |
<td> The unix time of the system. |
| 159 |
</td> |
| 160 |
</tr> |
| 161 |
</tbody> |
| 162 |
</table></div> |
| 163 |
</div> |
| 164 |
<hr> |
| 165 |
<div class="refsect2" title="oobs_time_config_set_unix_time ()"> |
| 166 |
<a name="oobs-time-config-set-unix-time"></a><h3>oobs_time_config_set_unix_time ()</h3> |
| 167 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_time_config_set_unix_time (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 168 |
<em class="parameter"><code><span class="type">glong</span> unix_time</code></em>);</pre> |
| 169 |
<p> |
| 170 |
This function sets the <span class="type">config</span> time to be <span class="type">unix_time</span>. <span class="type">unix_time</span> |
| 171 |
is measured in seconds, since the "epoch" (1970-01-01T00:00:00Z). |
| 172 |
</p> |
| 173 |
<div class="variablelist"><table border="0"> |
| 174 |
<col align="left" valign="top"> |
| 175 |
<tbody> |
| 176 |
<tr> |
| 177 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 178 |
<td>An <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a>. |
| 179 |
</td> |
| 180 |
</tr> |
| 181 |
<tr> |
| 182 |
<td><p><span class="term"><em class="parameter"><code>unix_time</code></em> :</span></p></td> |
| 183 |
<td>new Unix time. |
| 184 |
</td> |
| 185 |
</tr> |
| 186 |
</tbody> |
| 187 |
</table></div> |
| 188 |
</div> |
| 189 |
<hr> |
| 190 |
<div class="refsect2" title="oobs_time_config_get_time ()"> |
| 191 |
<a name="oobs-time-config-get-time"></a><h3>oobs_time_config_get_time ()</h3> |
| 192 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_time_config_get_time (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 193 |
<em class="parameter"><code><span class="type">gint</span> *year</code></em>, |
| 194 |
<em class="parameter"><code><span class="type">gint</span> *month</code></em>, |
| 195 |
<em class="parameter"><code><span class="type">gint</span> *day</code></em>, |
| 196 |
<em class="parameter"><code><span class="type">gint</span> *hour</code></em>, |
| 197 |
<em class="parameter"><code><span class="type">gint</span> *minute</code></em>, |
| 198 |
<em class="parameter"><code><span class="type">gint</span> *second</code></em>);</pre> |
| 199 |
<p> |
| 200 |
Gets the system time and date in human readable values. |
| 201 |
</p> |
| 202 |
<div class="variablelist"><table border="0"> |
| 203 |
<col align="left" valign="top"> |
| 204 |
<tbody> |
| 205 |
<tr> |
| 206 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 207 |
<td>An <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a>. |
| 208 |
</td> |
| 209 |
</tr> |
| 210 |
<tr> |
| 211 |
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td> |
| 212 |
<td>gint pointer to store the year, or <span class="type">NULL</span>. |
| 213 |
</td> |
| 214 |
</tr> |
| 215 |
<tr> |
| 216 |
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td> |
| 217 |
<td>gint pointer to store the month, or <span class="type">NULL</span>. |
| 218 |
</td> |
| 219 |
</tr> |
| 220 |
<tr> |
| 221 |
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td> |
| 222 |
<td>gint pointer to store the day, or <span class="type">NULL</span>. |
| 223 |
</td> |
| 224 |
</tr> |
| 225 |
<tr> |
| 226 |
<td><p><span class="term"><em class="parameter"><code>hour</code></em> :</span></p></td> |
| 227 |
<td>gint pointer to store the hour, or <span class="type">NULL</span>. |
| 228 |
</td> |
| 229 |
</tr> |
| 230 |
<tr> |
| 231 |
<td><p><span class="term"><em class="parameter"><code>minute</code></em> :</span></p></td> |
| 232 |
<td>gint pointer to store the minute, or <span class="type">NULL</span>. |
| 233 |
</td> |
| 234 |
</tr> |
| 235 |
<tr> |
| 236 |
<td><p><span class="term"><em class="parameter"><code>second</code></em> :</span></p></td> |
| 237 |
<td>gint pointer to store the second, or <span class="type">NULL</span>. |
| 238 |
</td> |
| 239 |
</tr> |
| 240 |
</tbody> |
| 241 |
</table></div> |
| 242 |
</div> |
| 243 |
<hr> |
| 244 |
<div class="refsect2" title="oobs_time_config_set_time ()"> |
| 245 |
<a name="oobs-time-config-set-time"></a><h3>oobs_time_config_set_time ()</h3> |
| 246 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_time_config_set_time (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 247 |
<em class="parameter"><code><span class="type">gint</span> year</code></em>, |
| 248 |
<em class="parameter"><code><span class="type">gint</span> month</code></em>, |
| 249 |
<em class="parameter"><code><span class="type">gint</span> day</code></em>, |
| 250 |
<em class="parameter"><code><span class="type">gint</span> hour</code></em>, |
| 251 |
<em class="parameter"><code><span class="type">gint</span> minute</code></em>, |
| 252 |
<em class="parameter"><code><span class="type">gint</span> second</code></em>);</pre> |
| 253 |
<p> |
| 254 |
Sets the time and date of <span class="type">config</span> to be the specified in the parameters. |
| 255 |
</p> |
| 256 |
<div class="variablelist"><table border="0"> |
| 257 |
<col align="left" valign="top"> |
| 258 |
<tbody> |
| 259 |
<tr> |
| 260 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 261 |
<td>An <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a>. |
| 262 |
</td> |
| 263 |
</tr> |
| 264 |
<tr> |
| 265 |
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td> |
| 266 |
<td>year. |
| 267 |
</td> |
| 268 |
</tr> |
| 269 |
<tr> |
| 270 |
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td> |
| 271 |
<td>month. |
| 272 |
</td> |
| 273 |
</tr> |
| 274 |
<tr> |
| 275 |
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td> |
| 276 |
<td>day. |
| 277 |
</td> |
| 278 |
</tr> |
| 279 |
<tr> |
| 280 |
<td><p><span class="term"><em class="parameter"><code>hour</code></em> :</span></p></td> |
| 281 |
<td>hour. |
| 282 |
</td> |
| 283 |
</tr> |
| 284 |
<tr> |
| 285 |
<td><p><span class="term"><em class="parameter"><code>minute</code></em> :</span></p></td> |
| 286 |
<td>minute. |
| 287 |
</td> |
| 288 |
</tr> |
| 289 |
<tr> |
| 290 |
<td><p><span class="term"><em class="parameter"><code>second</code></em> :</span></p></td> |
| 291 |
<td>second. |
| 292 |
</td> |
| 293 |
</tr> |
| 294 |
</tbody> |
| 295 |
</table></div> |
| 296 |
</div> |
| 297 |
<hr> |
| 298 |
<div class="refsect2" title="oobs_time_config_get_utc_time ()"> |
| 299 |
<a name="oobs-time-config-get-utc-time"></a><h3>oobs_time_config_get_utc_time ()</h3> |
| 300 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_time_config_get_utc_time (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 301 |
<em class="parameter"><code><span class="type">gint</span> *year</code></em>, |
| 302 |
<em class="parameter"><code><span class="type">gint</span> *month</code></em>, |
| 303 |
<em class="parameter"><code><span class="type">gint</span> *day</code></em>, |
| 304 |
<em class="parameter"><code><span class="type">gint</span> *hour</code></em>, |
| 305 |
<em class="parameter"><code><span class="type">gint</span> *minute</code></em>, |
| 306 |
<em class="parameter"><code><span class="type">gint</span> *second</code></em>);</pre> |
| 307 |
<p> |
| 308 |
Gets the system time and date in human readable values (UTC). |
| 309 |
</p> |
| 310 |
<div class="variablelist"><table border="0"> |
| 311 |
<col align="left" valign="top"> |
| 312 |
<tbody> |
| 313 |
<tr> |
| 314 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 315 |
<td>An <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a>. |
| 316 |
</td> |
| 317 |
</tr> |
| 318 |
<tr> |
| 319 |
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td> |
| 320 |
<td>gint pointer to store the year, or <span class="type">NULL</span>. |
| 321 |
</td> |
| 322 |
</tr> |
| 323 |
<tr> |
| 324 |
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td> |
| 325 |
<td>gint pointer to store the month, or <span class="type">NULL</span>. |
| 326 |
</td> |
| 327 |
</tr> |
| 328 |
<tr> |
| 329 |
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td> |
| 330 |
<td>gint pointer to store the day, or <span class="type">NULL</span>. |
| 331 |
</td> |
| 332 |
</tr> |
| 333 |
<tr> |
| 334 |
<td><p><span class="term"><em class="parameter"><code>hour</code></em> :</span></p></td> |
| 335 |
<td>gint pointer to store the hour, or <span class="type">NULL</span>. |
| 336 |
</td> |
| 337 |
</tr> |
| 338 |
<tr> |
| 339 |
<td><p><span class="term"><em class="parameter"><code>minute</code></em> :</span></p></td> |
| 340 |
<td>gint pointer to store the minute, or <span class="type">NULL</span>. |
| 341 |
</td> |
| 342 |
</tr> |
| 343 |
<tr> |
| 344 |
<td><p><span class="term"><em class="parameter"><code>second</code></em> :</span></p></td> |
| 345 |
<td>gint pointer to store the second, or <span class="type">NULL</span>. |
| 346 |
</td> |
| 347 |
</tr> |
| 348 |
</tbody> |
| 349 |
</table></div> |
| 350 |
</div> |
| 351 |
<hr> |
| 352 |
<div class="refsect2" title="oobs_time_config_set_utc_time ()"> |
| 353 |
<a name="oobs-time-config-set-utc-time"></a><h3>oobs_time_config_set_utc_time ()</h3> |
| 354 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_time_config_set_utc_time (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 355 |
<em class="parameter"><code><span class="type">gint</span> year</code></em>, |
| 356 |
<em class="parameter"><code><span class="type">gint</span> month</code></em>, |
| 357 |
<em class="parameter"><code><span class="type">gint</span> day</code></em>, |
| 358 |
<em class="parameter"><code><span class="type">gint</span> hour</code></em>, |
| 359 |
<em class="parameter"><code><span class="type">gint</span> minute</code></em>, |
| 360 |
<em class="parameter"><code><span class="type">gint</span> second</code></em>);</pre> |
| 361 |
<p> |
| 362 |
Sets the time and date of <em class="parameter"><code>config</code></em> to be the specified in the parameters (assuming they're in UTC). |
| 363 |
</p> |
| 364 |
<div class="variablelist"><table border="0"> |
| 365 |
<col align="left" valign="top"> |
| 366 |
<tbody> |
| 367 |
<tr> |
| 368 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 369 |
<td>An <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a>. |
| 370 |
</td> |
| 371 |
</tr> |
| 372 |
<tr> |
| 373 |
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td> |
| 374 |
<td>year. |
| 375 |
</td> |
| 376 |
</tr> |
| 377 |
<tr> |
| 378 |
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td> |
| 379 |
<td>month. |
| 380 |
</td> |
| 381 |
</tr> |
| 382 |
<tr> |
| 383 |
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td> |
| 384 |
<td>day. |
| 385 |
</td> |
| 386 |
</tr> |
| 387 |
<tr> |
| 388 |
<td><p><span class="term"><em class="parameter"><code>hour</code></em> :</span></p></td> |
| 389 |
<td>hour. |
| 390 |
</td> |
| 391 |
</tr> |
| 392 |
<tr> |
| 393 |
<td><p><span class="term"><em class="parameter"><code>minute</code></em> :</span></p></td> |
| 394 |
<td>minute. |
| 395 |
</td> |
| 396 |
</tr> |
| 397 |
<tr> |
| 398 |
<td><p><span class="term"><em class="parameter"><code>second</code></em> :</span></p></td> |
| 399 |
<td>second. |
| 400 |
</td> |
| 401 |
</tr> |
| 402 |
</tbody> |
| 403 |
</table></div> |
| 404 |
</div> |
| 405 |
<hr> |
| 406 |
<div class="refsect2" title="oobs_time_config_get_timezone ()"> |
| 407 |
<a name="oobs-time-config-get-timezone"></a><h3>oobs_time_config_get_timezone ()</h3> |
| 408 |
<pre class="programlisting">const <span class="returnvalue">gchar</span>* oobs_time_config_get_timezone (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>);</pre> |
| 409 |
<p> |
| 410 |
Returns the timezone set for <span class="type">config</span>. |
| 411 |
</p> |
| 412 |
<div class="variablelist"><table border="0"> |
| 413 |
<col align="left" valign="top"> |
| 414 |
<tbody> |
| 415 |
<tr> |
| 416 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 417 |
<td>An <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a>. |
| 418 |
</td> |
| 419 |
</tr> |
| 420 |
<tr> |
| 421 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 422 |
<td> A pointer to the timezone as a string or <span class="type">NULL</span>. |
| 423 |
This string must not be freed, modified or stored. |
| 424 |
</td> |
| 425 |
</tr> |
| 426 |
</tbody> |
| 427 |
</table></div> |
| 428 |
</div> |
| 429 |
<hr> |
| 430 |
<div class="refsect2" title="oobs_time_config_set_timezone ()"> |
| 431 |
<a name="oobs-time-config-set-timezone"></a><h3>oobs_time_config_set_timezone ()</h3> |
| 432 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_time_config_set_timezone (<em class="parameter"><code><a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a> *config</code></em>, |
| 433 |
<em class="parameter"><code>const <span class="type">gchar</span> *timezone</code></em>);</pre> |
| 434 |
<p> |
| 435 |
Sets the timezone of <span class="type">config</span> to be <span class="type">timezone</span>, |
| 436 |
overwriting the previous one. |
| 437 |
</p> |
| 438 |
<div class="variablelist"><table border="0"> |
| 439 |
<col align="left" valign="top"> |
| 440 |
<tbody> |
| 441 |
<tr> |
| 442 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 443 |
<td>An <a class="link" href="OobsTimeConfig.html" title="OobsTimeConfig"><span class="type">OobsTimeConfig</span></a>. |
| 444 |
</td> |
| 445 |
</tr> |
| 446 |
<tr> |
| 447 |
<td><p><span class="term"><em class="parameter"><code>timezone</code></em> :</span></p></td> |
| 448 |
<td>A new timezone for <span class="type">config</span>. |
| 449 |
</td> |
| 450 |
</tr> |
| 451 |
</tbody> |
| 452 |
</table></div> |
| 453 |
</div> |
| 454 |
</div> |
| 455 |
<div class="refsect1" title="Property Details"> |
| 456 |
<a name="OobsTimeConfig.property-details"></a><h2>Property Details</h2> |
| 457 |
<div class="refsect2" title='The "timezone" property'> |
| 458 |
<a name="OobsTimeConfig--timezone"></a><h3>The <code class="literal">"timezone"</code> property</h3> |
| 459 |
<pre class="programlisting"> "timezone" <span class="type">gchar</span>* : Read / Write</pre> |
| 460 |
<p>Timezone for the computer.</p> |
| 461 |
<p>Default value: NULL</p> |
| 462 |
</div> |
| 463 |
<hr> |
| 464 |
<div class="refsect2" title='The "unix-time" property'> |
| 465 |
<a name="OobsTimeConfig--unix-time"></a><h3>The <code class="literal">"unix-time"</code> property</h3> |
| 466 |
<pre class="programlisting"> "unix-time" <span class="type">glong</span> : Read / Write</pre> |
| 467 |
<p>Current unix time for the computer.</p> |
| 468 |
<p>Allowed values: >= 0</p> |
| 469 |
<p>Default value: 0</p> |
| 470 |
</div> |
| 471 |
</div> |
| 472 |
<div class="refsect1" title="See Also"> |
| 473 |
<a name="OobsTimeConfig.see-also"></a><h2>See Also</h2> |
| 474 |
<a class="link" href="OobsNTPConfig.html" title="OobsNTPConfig"><span class="type">OobsNTPConfig</span></a>, <a class="link" href="OobsNTPServer.html" title="OobsNTPServer"><span class="type">OobsNTPServer</span></a> |
| 475 |
</div> |
| 476 |
</div> |
| 477 |
<div class="footer"> |
| 478 |
<hr> |
| 479 |
Generated by GTK-Doc V1.15</div> |
| 480 |
</body> |
| 481 |
</html> |