12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title><GDateTime>: </title>
- <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
- <link rel="home" href="index.html" title="">
- <link rel="up" href="ch01.html" title="GLib">
- <link rel="prev" href="re11.html" title="<%GLibDateMonth>">
- <link rel="next" href="re13.html" title="<%GLibDateWeekday>">
- <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
- <link rel="stylesheet" href="style.css" type="text/css">
- </head>
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
- <td width="100%" align="left" class="shortcuts"></td>
- <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
- <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
- <td><a accesskey="p" href="re11.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
- <td><a accesskey="n" href="re13.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
- </tr></table>
- <div class="refentry">
- <a name="id-1.1.13"></a><div class="titlepage"></div>
- <div class="refnamediv">
- <h2><GDateTime></h2>
- <p><GDateTime></p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.13.2"></a><h2>Description</h2>
- <p>An opaque structure that represents a date and time, including a time zone.</p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.13.3"></a><h2>Functions</h2>
- <div class="refsect2">
- <a name="id-1.1.13.3.2"></a><h3>add</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:add self timespan))
- </pre></div>
- <p>Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified timespan to the copy.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.2.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>timespan</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GTimeSpan</span></p>
- <p>Passed as <code class="code">timespan</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.3"></a><h3>add-days</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:add-days self days))
- </pre></div>
- <p>Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of days to the
- copy. Add negative values to subtract days.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.3.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>days</p></td>
- <td class="parameter_description">
- <p>the number of days</p>
- <p>Passed as <code class="code">days</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.4"></a><h3>add-full</h3>
- <div class="informalexample"><pre class="programlisting">(define-values
- (%return)
- (date-time:add-full self years months days hours minutes seconds))
- </pre></div>
- <p>Creates a new <span class="type">GDateTime</span> adding the specified values to the current date and
- time in <em class="parameter"><code>datetime</code></em>. Add negative values to subtract.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.4.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>years</p></td>
- <td class="parameter_description">
- <p>the number of years to add</p>
- <p>Passed as <code class="code">years</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>months</p></td>
- <td class="parameter_description">
- <p>the number of months to add</p>
- <p>Passed as <code class="code">months</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>days</p></td>
- <td class="parameter_description">
- <p>the number of days to add</p>
- <p>Passed as <code class="code">days</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>hours</p></td>
- <td class="parameter_description">
- <p>the number of hours to add</p>
- <p>Passed as <code class="code">hours</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>minutes</p></td>
- <td class="parameter_description">
- <p>the number of minutes to add</p>
- <p>Passed as <code class="code">minutes</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>seconds</p></td>
- <td class="parameter_description">
- <p>the number of seconds to add</p>
- <p>Passed as <code class="code">seconds</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.5"></a><h3>add-hours</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:add-hours self hours))
- </pre></div>
- <p>Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of hours.
- Add negative values to subtract hours.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.5.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>hours</p></td>
- <td class="parameter_description">
- <p>the number of hours to add</p>
- <p>Passed as <code class="code">hours</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.6"></a><h3>add-minutes</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:add-minutes self minutes))
- </pre></div>
- <p>Creates a copy of <em class="parameter"><code>datetime</code></em> adding the specified number of minutes.
- Add negative values to subtract minutes.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.6.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>minutes</p></td>
- <td class="parameter_description">
- <p>the number of minutes to add</p>
- <p>Passed as <code class="code">minutes</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.7"></a><h3>add-months</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:add-months self months))
- </pre></div>
- <p>Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of months to the
- copy. Add negative values to subtract months.
- </p>
- <p>The day of the month of the resulting <span class="type">GDateTime</span> is clamped to the number
- of days in the updated calendar month. For example, if adding 1 month to
- 31st January 2018, the result would be 28th February 2018. In 2020 (a leap
- year), the result would be 29th February.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.7.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>months</p></td>
- <td class="parameter_description">
- <p>the number of months</p>
- <p>Passed as <code class="code">months</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.8"></a><h3>add-seconds</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:add-seconds self seconds))
- </pre></div>
- <p>Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of seconds.
- Add negative values to subtract seconds.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.8.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>seconds</p></td>
- <td class="parameter_description">
- <p>the number of seconds to add</p>
- <p>Passed as <code class="code">seconds</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.9"></a><h3>add-weeks</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:add-weeks self weeks))
- </pre></div>
- <p>Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of weeks to the
- copy. Add negative values to subtract weeks.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.9.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>weeks</p></td>
- <td class="parameter_description">
- <p>the number of weeks</p>
- <p>Passed as <code class="code">weeks</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.10"></a><h3>add-years</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:add-years self years))
- </pre></div>
- <p>Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of years to the
- copy. Add negative values to subtract years.
- </p>
- <p>As with <code class="function">g_date_time_add_months()</code>, if the resulting date would be 29th
- February on a non-leap year, the day will be clamped to 28th February.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.10.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>years</p></td>
- <td class="parameter_description">
- <p>the number of years</p>
- <p>Passed as <code class="code">years</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.11"></a><h3>difference</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:difference self begin))
- </pre></div>
- <p>Calculates the difference in time between <em class="parameter"><code>end</code></em> and <em class="parameter"><code>begin</code></em>. The
- <span class="type">GTimeSpan</span> that is returned is effectively <em class="parameter"><code>end</code></em> - <em class="parameter"><code>begin</code></em> (ie:
- positive if the first parameter is larger).</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.11.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>end</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>begin</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">begin</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.12"></a><h3>format</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:format self format))
- </pre></div>
- <p>Creates a newly allocated string representing the requested <em class="parameter"><code>format</code></em>.
- </p>
- <p>The format strings understood by this function are a subset of the
- <code class="function">strftime()</code> format language as specified by C99. The \%D, \%U and \%W
- conversions are not supported, nor is the 'E' modifier. The GNU
- extensions \%k, \%l, \%s and \%P are supported, however, as are the
- '0', '_' and '-' modifiers. The Python extension \%f is also supported.
- </p>
- <p>In contrast to <code class="function">strftime()</code>, this function always produces a UTF-8
- string, regardless of the current locale. Note that the rendering of
- many formats is locale-dependent and may not match the <code class="function">strftime()</code>
- output exactly.
- </p>
- <p>The following format specifiers are supported:
- </p>
- <p>- \%a: the abbreviated weekday name according to the current locale
- - \%A: the full weekday name according to the current locale
- - \%b: the abbreviated month name according to the current locale
- - \%B: the full month name according to the current locale
- - \%c: the preferred date and time representation for the current locale
- - \%C: the century number (year/100) as a 2-digit integer (00-99)
- - \%d: the day of the month as a decimal number (range 01 to 31)
- - \%e: the day of the month as a decimal number (range 1 to 31)
- - \%F: equivalent to <code class="code">%Y-%m-%d</code> (the ISO 8601 date format)
- - \%g: the last two digits of the ISO 8601 week-based year as a
- decimal number (00-99). This works well with \%V and \%u.
- - \%G: the ISO 8601 week-based year as a decimal number. This works
- well with \%V and \%u.
- - \%h: equivalent to \%b
- - \%H: the hour as a decimal number using a 24-hour clock (range 00 to 23)
- - \%I: the hour as a decimal number using a 12-hour clock (range 01 to 12)
- - \%j: the day of the year as a decimal number (range 001 to 366)
- - \%k: the hour (24-hour clock) as a decimal number (range 0 to 23);
- single digits are preceded by a blank
- - \%l: the hour (12-hour clock) as a decimal number (range 1 to 12);
- single digits are preceded by a blank
- - \%m: the month as a decimal number (range 01 to 12)
- - \%M: the minute as a decimal number (range 00 to 59)
- - \%f: the microsecond as a decimal number (range 000000 to 999999)
- - \%p: either "AM" or "PM" according to the given time value, or the
- corresponding strings for the current locale. Noon is treated as
- "PM" and midnight as "AM". Use of this format specifier is discouraged, as
- many locales have no concept of AM/PM formatting. Use \%c or \%X instead.
- - \%P: like \%p but lowercase: "am" or "pm" or a corresponding string for
- the current locale. Use of this format specifier is discouraged, as
- many locales have no concept of AM/PM formatting. Use \%c or \%X instead.
- - \%r: the time in a.m. or p.m. notation. Use of this format specifier is
- discouraged, as many locales have no concept of AM/PM formatting. Use \%c
- or \%X instead.
- - \%R: the time in 24-hour notation (\%H:\%M)
- - \%s: the number of seconds since the Epoch, that is, since 1970-01-01
- 00:00:00 UTC
- - \%S: the second as a decimal number (range 00 to 60)
- - \%t: a tab character
- - \%T: the time in 24-hour notation with seconds (\%H:\%M:\%S)
- - \%u: the ISO 8601 standard day of the week as a decimal, range 1 to 7,
- Monday being 1. This works well with \%G and \%V.
- - \%V: the ISO 8601 standard week number of the current year as a decimal
- number, range 01 to 53, where week 1 is the first week that has at
- least 4 days in the new year. See <code class="function">g_date_time_get_week_of_year()</code>.
- This works well with \%G and \%u.
- - \%w: the day of the week as a decimal, range 0 to 6, Sunday being 0.
- This is not the ISO 8601 standard format -- use \%u instead.
- - \%x: the preferred date representation for the current locale without
- the time
- - \%X: the preferred time representation for the current locale without
- the date
- - \%y: the year as a decimal number without the century
- - \%Y: the year as a decimal number including the century
- - \%z: the time zone as an offset from UTC (+hhmm)
- - \%:z: the time zone as an offset from UTC (+hh:mm).
- This is a gnulib <code class="function">strftime()</code> extension. Since: 2.38
- - \%::z: the time zone as an offset from UTC (+hh:mm:ss). This is a
- gnulib <code class="function">strftime()</code> extension. Since: 2.38
- - \%:::z: the time zone as an offset from UTC, with : to necessary
- precision (e.g., -04, +05:30). This is a gnulib <code class="function">strftime()</code> extension. Since: 2.38
- - \%Z: the time zone or name or abbreviation
- - \%\%: a literal \% character
- </p>
- <p>Some conversion specifications can be modified by preceding the
- conversion specifier by one or more modifier characters. The
- following modifiers are supported for many of the numeric
- conversions:
- </p>
- <p>- O: Use alternative numeric symbols, if the current locale supports those.
- - _: Pad a numeric result with spaces. This overrides the default padding
- for the specifier.
- - -: Do not pad a numeric result. This overrides the default padding
- for the specifier.
- - 0: Pad a numeric result with zeros. This overrides the default padding
- for the specifier.
- </p>
- <p>Additionally, when O is used with B, b, or h, it produces the alternative
- form of a month name. The alternative form should be used when the month
- name is used without a day number (e.g., standalone). It is required in
- some languages (Baltic, Slavic, Greek, and more) due to their grammatical
- rules. For other languages there is no difference. \%OB is a GNU and BSD
- <code class="function">strftime()</code> extension expected to be added to the future POSIX specification,
- \%Ob and \%Oh are GNU <code class="function">strftime()</code> extensions. Since: 2.56</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.12.11"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>A <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>format</p></td>
- <td class="parameter_description">
- <p>a valid UTF-8 string, containing the format for the
- <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">format</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.13"></a><h3>format-iso8601</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:format-iso8601 self))
- </pre></div>
- <p>Format <em class="parameter"><code>datetime</code></em> in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601),
- including the date, time and time zone, and return that as a UTF-8 encoded
- string.
- </p>
- <p>Since GLib 2.66, this will output to sub-second precision if needed.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.13.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>A <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.14"></a><h3>get-day-of-month</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-day-of-month self))
- </pre></div>
- <p>Retrieves the day of the month represented by <em class="parameter"><code>datetime</code></em> in the gregorian
- calendar.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.14.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.15"></a><h3>get-day-of-week</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-day-of-week self))
- </pre></div>
- <p>Retrieves the ISO 8601 day of the week on which <em class="parameter"><code>datetime</code></em> falls (1 is
- Monday, 2 is Tuesday... 7 is Sunday).</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.15.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.16"></a><h3>get-day-of-year</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-day-of-year self))
- </pre></div>
- <p>Retrieves the day of the year represented by <em class="parameter"><code>datetime</code></em> in the Gregorian
- calendar.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.16.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.17"></a><h3>get-hour</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-hour self))
- </pre></div>
- <p>Retrieves the hour of the day represented by <em class="parameter"><code>datetime</code></em></p>
- <div class="refsect3">
- <a name="id-1.1.13.3.17.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.18"></a><h3>get-microsecond</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-microsecond self))
- </pre></div>
- <p>Retrieves the microsecond of the date represented by <em class="parameter"><code>datetime</code></em></p>
- <div class="refsect3">
- <a name="id-1.1.13.3.18.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.19"></a><h3>get-minute</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-minute self))
- </pre></div>
- <p>Retrieves the minute of the hour represented by <em class="parameter"><code>datetime</code></em></p>
- <div class="refsect3">
- <a name="id-1.1.13.3.19.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.20"></a><h3>get-month</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-month self))
- </pre></div>
- <p>Retrieves the month of the year represented by <em class="parameter"><code>datetime</code></em> in the Gregorian
- calendar.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.20.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.21"></a><h3>get-second</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-second self))
- </pre></div>
- <p>Retrieves the second of the minute represented by <em class="parameter"><code>datetime</code></em></p>
- <div class="refsect3">
- <a name="id-1.1.13.3.21.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.22"></a><h3>get-seconds</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-seconds self))
- </pre></div>
- <p>Retrieves the number of seconds since the start of the last minute,
- including the fractional part.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.22.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.23"></a><h3>get-timezone</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-timezone self))
- </pre></div>
- <p>Get the time zone for this <em class="parameter"><code>datetime</code></em>.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.23.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.24"></a><h3>get-timezone-abbreviation</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-timezone-abbreviation self))
- </pre></div>
- <p>Determines the time zone abbreviation to be used at the time and in
- the time zone of <em class="parameter"><code>datetime</code></em>.
- </p>
- <p>For example, in Toronto this is currently "EST" during the winter
- months and "EDT" during the summer months when daylight savings
- time is in effect.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.24.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.25"></a><h3>get-utc-offset</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-utc-offset self))
- </pre></div>
- <p>Determines the offset to UTC in effect at the time and in the time
- zone of <em class="parameter"><code>datetime</code></em>.
- </p>
- <p>The offset is the number of microseconds that you add to UTC time to
- arrive at local time for the time zone (ie: negative numbers for time
- zones west of GMT, positive numbers for east).
- </p>
- <p>If <em class="parameter"><code>datetime</code></em> represents UTC time, then the offset is always zero.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.25.6"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.26"></a><h3>get-week-numbering-year</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-week-numbering-year self))
- </pre></div>
- <p>Returns the ISO 8601 week-numbering year in which the week containing
- <em class="parameter"><code>datetime</code></em> falls.
- </p>
- <p>This function, taken together with <code class="function">g_date_time_get_week_of_year()</code> and
- <code class="function">g_date_time_get_day_of_week()</code> can be used to determine the full ISO
- week date on which <em class="parameter"><code>datetime</code></em> falls.
- </p>
- <p>This is usually equal to the normal Gregorian year (as returned by
- <code class="function">g_date_time_get_year()</code>), except as detailed below:
- </p>
- <p>For Thursday, the week-numbering year is always equal to the usual
- calendar year. For other days, the number is such that every day
- within a complete week (Monday to Sunday) is contained within the
- same week-numbering year.
- </p>
- <p>For Monday, Tuesday and Wednesday occurring near the end of the year,
- this may mean that the week-numbering year is one greater than the
- calendar year (so that these days have the same week-numbering year
- as the Thursday occurring early in the next year).
- </p>
- <p>For Friday, Saturday and Sunday occurring near the start of the year,
- this may mean that the week-numbering year is one less than the
- calendar year (so that these days have the same week-numbering year
- as the Thursday occurring late in the previous year).
- </p>
- <p>An equivalent description is that the week-numbering year is equal to
- the calendar year containing the majority of the days in the current
- week (Monday to Sunday).
- </p>
- <p>Note that January 1 0001 in the proleptic Gregorian calendar is a
- Monday, so this function never returns 0.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.26.11"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.27"></a><h3>get-week-of-year</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-week-of-year self))
- </pre></div>
- <p>Returns the ISO 8601 week number for the week containing <em class="parameter"><code>datetime</code></em>.
- The ISO 8601 week number is the same for every day of the week (from
- Moday through Sunday). That can produce some unusual results
- (described below).
- </p>
- <p>The first week of the year is week 1. This is the week that contains
- the first Thursday of the year. Equivalently, this is the first week
- that has more than 4 of its days falling within the calendar year.
- </p>
- <p>The value 0 is never returned by this function. Days contained
- within a year but occurring before the first ISO 8601 week of that
- year are considered as being contained in the last week of the
- previous year. Similarly, the final days of a calendar year may be
- considered as being part of the first ISO 8601 week of the next year
- if 4 or more days of that week are contained within the new year.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.27.6"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.28"></a><h3>get-year</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:get-year self))
- </pre></div>
- <p>Retrieves the year represented by <em class="parameter"><code>datetime</code></em> in the Gregorian calendar.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.28.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>A <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.29"></a><h3>get-ymd</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (year month day) (date-time:get-ymd self))
- </pre></div>
- <p>Retrieves the Gregorian day, month, and year of a given <span class="type">GDateTime</span>.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.29.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span>.</p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>year</p></td>
- <td class="parameter_description">
- <p>the return location for the gregorian year, or <code class="constant">NULL</code>.</p>
- <p>Passed as <code class="code">year</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>month</p></td>
- <td class="parameter_description">
- <p>the return location for the month of the year, or <code class="constant">NULL</code>.</p>
- <p>Passed as <code class="code">month</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>day</p></td>
- <td class="parameter_description">
- <p>the return location for the day of the month, or <code class="constant">NULL</code>.</p>
- <p>Passed as <code class="code">day</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.30"></a><h3>is-daylight-savings?</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:is-daylight-savings? self))
- </pre></div>
- <p>Determines if daylight savings time is in effect at the time and in
- the time zone of <em class="parameter"><code>datetime</code></em>.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.30.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.31"></a><h3>ref</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:ref self))
- </pre></div>
- <p>Atomically increments the reference count of <em class="parameter"><code>datetime</code></em> by one.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.31.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.32"></a><h3>to-local</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:to-local self))
- </pre></div>
- <p>Creates a new <span class="type">GDateTime</span> corresponding to the same instant in time as
- <em class="parameter"><code>datetime</code></em>, but in the local time zone.
- </p>
- <p>This call is equivalent to calling <code class="function">g_date_time_to_timezone()</code> with the
- time zone returned by <code class="function">g_time_zone_new_local()</code>.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.32.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.33"></a><h3>to-timezone</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:to-timezone self tz))
- </pre></div>
- <p>Create a new <span class="type">GDateTime</span> corresponding to the same instant in time as
- <em class="parameter"><code>datetime</code></em>, but in the time zone <em class="parameter"><code>tz</code></em>.
- </p>
- <p>This call can fail in the case that the time goes out of bounds. For
- example, converting 0001-01-01 00:00:00 UTC to a time zone west of
- Greenwich will fail (due to the year 0 being out of range).</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.33.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>tz</p></td>
- <td class="parameter_description">
- <p>the new <span class="type">GTimeZone</span></p>
- <p>Passed as <code class="code">tz</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.34"></a><h3>to-unix</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:to-unix self))
- </pre></div>
- <p>Gives the Unix time corresponding to <em class="parameter"><code>datetime</code></em>, rounding down to the
- nearest second.
- </p>
- <p>Unix time is the number of seconds that have elapsed since 1970-01-01
- 00:00:00 UTC, regardless of the time zone associated with <em class="parameter"><code>datetime</code></em>.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.34.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.35"></a><h3>to-utc</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:to-utc self))
- </pre></div>
- <p>Creates a new <span class="type">GDateTime</span> corresponding to the same instant in time as
- <em class="parameter"><code>datetime</code></em>, but in UTC.
- </p>
- <p>This call is equivalent to calling <code class="function">g_date_time_to_timezone()</code> with the
- time zone returned by <code class="function">g_time_zone_new_utc()</code>.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.35.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.36"></a><h3>unref</h3>
- <div class="informalexample"><pre class="programlisting">(define-values () (date-time:unref self))
- </pre></div>
- <p>Atomically decrements the reference count of <em class="parameter"><code>datetime</code></em> by one.
- </p>
- <p>When the reference count reaches zero, the resources allocated by
- <em class="parameter"><code>datetime</code></em> are freed</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.36.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.37"></a><h3>date-time:new-utc</h3>
- <div class="informalexample"><pre class="programlisting">(define-values
- (%return)
- (date-time:new-utc year month day hour minute seconds))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.37.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>year</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">year</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>month</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">month</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>day</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">day</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>hour</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">hour</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>minute</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">minute</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>seconds</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">seconds</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.38"></a><h3>date-time:new-now-utc</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:new-now-utc))
- </pre></div>
- <p>Undocumented</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.39"></a><h3>date-time:new-now-local</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:new-now-local))
- </pre></div>
- <p>Undocumented</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.40"></a><h3>date-time:new-now</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:new-now tz))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.40.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>tz</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">tz</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.41"></a><h3>date-time:new-local</h3>
- <div class="informalexample"><pre class="programlisting">(define-values
- (%return)
- (date-time:new-local year month day hour minute seconds))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.41.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>year</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">year</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>month</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">month</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>day</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">day</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>hour</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">hour</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>minute</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">minute</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>seconds</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">seconds</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.42"></a><h3>date-time:new-from-unix-utc</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:new-from-unix-utc t))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.42.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>t</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">t</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.43"></a><h3>date-time:new-from-unix-local</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:new-from-unix-local t))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.43.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>t</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">t</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.44"></a><h3>date-time:new-from-iso8601</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:new-from-iso8601 text default-tz))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.44.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>text</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">text</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>default_tz</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">default-tz</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.45"></a><h3>date-time:new</h3>
- <div class="informalexample"><pre class="programlisting">(define-values
- (%return)
- (date-time:new tz year month day hour minute seconds))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.45.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>tz</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">tz</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>year</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">year</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>month</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">month</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>day</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">day</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>hour</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">hour</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>minute</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">minute</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>seconds</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">seconds</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.46"></a><h3>date-time:compare</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:compare dt1 dt2))
- </pre></div>
- <p>A comparison function for <span class="type">GDateTimes</span> that is suitable
- as a <span class="type">GCompareFunc</span>. Both <span class="type">GDateTimes</span> must be non-<code class="constant">NULL</code>.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.46.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>dt1</p></td>
- <td class="parameter_description">
- <p>first <span class="type">GDateTime</span> to compare</p>
- <p>Passed as <code class="code">dt1</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>dt2</p></td>
- <td class="parameter_description">
- <p>second <span class="type">GDateTime</span> to compare</p>
- <p>Passed as <code class="code">dt2</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.47"></a><h3>date-time:equal?</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:equal? dt1 dt2))
- </pre></div>
- <p>Checks to see if <em class="parameter"><code>dt1</code></em> and <em class="parameter"><code>dt2</code></em> are equal.
- </p>
- <p>Equal here means that they represent the same moment after converting
- them to the same time zone.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.47.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>dt1</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">dt1</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>dt2</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">dt2</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.13.3.48"></a><h3>date-time:hash</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (date-time:hash datetime))
- </pre></div>
- <p>Hashes <em class="parameter"><code>datetime</code></em> into a <span class="type">guint</span>, suitable for use within <span class="type">GHashTable</span>.</p>
- <div class="refsect3">
- <a name="id-1.1.13.3.48.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>datetime</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GDateTime</span></p>
- <p>Passed as <code class="code">datetime</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- </div>
- </div>
- <div class="footer">
- <hr>Generated by GTK-Doc V1.33.1</div>
- </body>
- </html>
|