glib2 0.90.4-x86-mingw32 → 0.90.5-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +10 -0
- data/Rakefile +1 -1
- data/ext/glib2/extconf.rb +8 -0
- data/ext/glib2/rbglib.h +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/glib-mkenums.rb +3 -2
- data/lib/mkmf-gnome2.rb +14 -10
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +35 -9
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +18 -18
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gcredentials.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +42 -25
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gdbusaddress.h +58 -0
- data/vendor/local/include/glib-2.0/gio/gdbusauthobserver.h +46 -0
- data/vendor/local/include/glib-2.0/gio/gdbusconnection.h +562 -0
- data/vendor/local/include/glib-2.0/gio/gdbuserror.h +100 -0
- data/vendor/local/include/glib-2.0/gio/gdbusintrospection.h +286 -0
- data/vendor/local/include/glib-2.0/gio/gdbusmessage.h +149 -0
- data/vendor/local/include/glib-2.0/gio/gdbusmethodinvocation.h +73 -0
- data/vendor/local/include/glib-2.0/gio/gdbusnameowning.h +112 -0
- data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +94 -0
- data/vendor/local/include/glib-2.0/gio/gdbusproxy.h +167 -0
- data/vendor/local/include/glib-2.0/gio/gdbusserver.h +54 -0
- data/vendor/local/include/glib-2.0/gio/gdbusutils.h +44 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +1 -0
- data/vendor/local/include/glib-2.0/gio/gio.h +30 -9
- data/vendor/local/include/glib-2.0/gio/gioenums.h +526 -8
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +42 -0
- data/vendor/local/include/glib-2.0/gio/gioerror.h +4 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +36 -0
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +1 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +4 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +2 -0
- data/vendor/local/include/glib-2.0/gio/gpermission.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gproxy.h +123 -0
- data/vendor/local/include/glib-2.0/gio/gproxyaddress.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gproxyaddressenumerator.h +75 -0
- data/vendor/local/include/glib-2.0/gio/gproxyresolver.h +96 -0
- data/vendor/local/include/glib-2.0/gio/gsettings.h +258 -0
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +138 -0
- data/vendor/local/include/glib-2.0/gio/gsimplepermission.h +45 -0
- data/vendor/local/include/glib-2.0/gio/gsocket.h +18 -0
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +22 -0
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +7 -1
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +5 -0
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +3 -0
- data/vendor/local/include/glib-2.0/glib-object.h +1 -0
- data/vendor/local/include/glib-2.0/glib.h +2 -0
- data/vendor/local/include/glib-2.0/glib/galloca.h +47 -0
- data/vendor/local/include/glib-2.0/glib/gatomic.h +25 -5
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +7 -7
- data/vendor/local/include/glib-2.0/glib/gbase64.h +22 -22
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +27 -3
- data/vendor/local/include/glib-2.0/glib/gcache.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +20 -20
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +4 -0
- data/vendor/local/include/glib-2.0/glib/gconvert.h +26 -2
- data/vendor/local/include/glib-2.0/glib/gdatetime.h +217 -0
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +16 -0
- data/vendor/local/include/glib-2.0/glib/gmacros.h +7 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +305 -78
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gmem.h +107 -1
- data/vendor/local/include/glib-2.0/glib/gnode.h +4 -2
- data/vendor/local/include/glib-2.0/glib/gpoll.h +27 -3
- data/vendor/local/include/glib-2.0/glib/gregex.h +228 -0
- data/vendor/local/include/glib-2.0/glib/grel.h +4 -0
- data/vendor/local/include/glib-2.0/glib/gstdio.h +27 -39
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +3 -1
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +19 -14
- data/vendor/local/include/glib-2.0/glib/gthread.h +0 -1
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +44 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +18 -1
- data/vendor/local/include/glib-2.0/glib/gutils.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gvariant.h +25 -1
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +29 -0
- data/vendor/local/include/glib-2.0/gobject/gbinding.h +136 -0
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +18 -6
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +37 -20
- data/vendor/local/include/glib-2.0/gobject/gobject.h +5 -0
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +48 -21
- data/vendor/local/include/glib-2.0/gobject/gparam.h +9 -4
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +54 -0
- data/vendor/local/include/glib-2.0/gobject/gtype.h +129 -1
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +6 -1
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +17 -0
- data/vendor/local/lib/gio-2.0.def +345 -2
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +71 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +2 -2
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +21 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/intl.lib +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +3 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +11 -0
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +2 -2
- data/vendor/local/manifest/{glib-dev_2.24.2-2_win32.mft → glib-dev_2.26.0-2_win32.mft} +87 -8
- data/vendor/local/manifest/{glib_2.24.2-2_win32.mft → glib_2.26.0-2_win32.mft} +3 -2
- data/vendor/local/share/aclocal/glib-gettext.m4 +2 -2
- data/vendor/local/share/doc/{glib-2.24.2 → glib-2.26.0}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.24.2 → glib-dev-2.26.0}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gdb/glib.py +1 -4
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +3 -1
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +60 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +179 -166
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +276 -74
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +35 -35
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +114 -119
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +43 -47
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +67 -67
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +41 -41
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +70 -35
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +398 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +254 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +6211 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +1833 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +618 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +2050 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +1124 -0
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +373 -151
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +103 -107
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +158 -158
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +22 -22
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +935 -923
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +18 -13
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +71 -75
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +303 -275
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +32 -32
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +30 -30
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +31 -25
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +31 -25
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +58 -58
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +38 -38
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +109 -109
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +26 -25
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +72 -72
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +120 -120
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +90 -59
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +155 -155
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +76 -76
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +119 -39
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +100 -37
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +137 -131
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +560 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +312 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +348 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +301 -0
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +116 -116
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +54 -54
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +2424 -0
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +609 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +362 -148
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +107 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +612 -326
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +36 -36
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +470 -108
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +131 -46
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +48 -259
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +27 -26
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +123 -119
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +165 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +36 -36
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +298 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +222 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +65 -57
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +59 -51
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +38 -38
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +39 -39
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +246 -61
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +36 -36
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +113 -113
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +67 -71
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +90 -18
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +56 -14
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +65 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +8 -12
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +21 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +1598 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +18 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +2412 -661
- data/vendor/local/share/gtk-doc/html/gio/async.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +50 -14
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +14 -9
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +122 -22
- data/vendor/local/share/gtk-doc/html/gio/{ch19.html → ch24.html} +8 -8
- data/vendor/local/share/gtk-doc/html/gio/{ch20.html → ch25.html} +19 -19
- data/vendor/local/share/gtk-doc/html/gio/{ch20s02.html → ch25s02.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch20s03.html → ch25s03.html} +12 -12
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +59 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +159 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +46 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +48 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +277 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +95 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +70 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +202 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +96 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +823 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +828 -0
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +33 -20
- data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +59 -0
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +243 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +316 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +1117 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +216 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +35 -35
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +58 -50
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +98 -88
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +15 -19
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +15 -19
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +908 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +37 -31
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +97 -16
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +50 -50
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +38 -38
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +736 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +113 -122
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +666 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +26 -10
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +53 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +569 -68
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +692 -70
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +102 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +11 -5
- data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/index.html +137 -20
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +814 -96
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +32 -12
- data/vendor/local/share/gtk-doc/html/gio/networking.html +19 -7
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +39 -0
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +112 -15
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +8 -5
- data/vendor/local/share/gtk-doc/html/gio/settings.html +38 -0
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/style.css +8 -0
- data/vendor/local/share/gtk-doc/html/gio/tools.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/types.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/utils.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +77 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +3 -7
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +5 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +359 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +10 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +8 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +82 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +393 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +52 -52
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +51 -51
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +75 -74
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +59 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +35 -35
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +37 -37
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +87 -85
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +39 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +69 -69
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +130 -223
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +114 -108
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +25 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +87 -84
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +61 -61
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +96 -96
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +30 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +33 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +98 -56
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +2201 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +239 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +736 -256
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +140 -91
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +59 -59
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +65 -65
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +91 -28
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +72 -72
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +257 -73
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +27 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +50 -50
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +37 -37
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +70 -66
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +14 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +44 -44
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +108 -63
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +151 -91
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +132 -103
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +83 -81
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +34 -44
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +442 -345
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +40 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +35 -35
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +72 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +46 -46
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +35 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +130 -129
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +30 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +245 -232
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +104 -103
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +171 -85
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +422 -323
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +24 -24
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +135 -135
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +18 -18
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +13 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +103 -17
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +189 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +119 -16
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +24 -24
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +32 -32
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +53 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -7
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +94 -272
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +43 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +10 -4
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +131 -32
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +174 -59
- data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +190 -73
- data/vendor/local/share/gtk-doc/html/glib/index.html +13 -5
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +133 -4
- data/vendor/local/share/gtk-doc/html/glib/style.css +8 -0
- data/vendor/local/share/gtk-doc/html/glib/tools.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +803 -0
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +21 -21
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +19 -19
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +6 -5
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +201 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +148 -4
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +28 -22
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +29 -17
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +45 -34
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +130 -73
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +43 -43
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +83 -73
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +35 -35
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +71 -71
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +558 -245
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +358 -92
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +391 -158
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +47 -44
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +42 -12
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +48 -9
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +53 -9
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/index.html +15 -10
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +53 -1
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +7 -4
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/style.css +8 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
- data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +9 -4
- data/vendor/local/share/man/man1/glib-mkenums.1 +17 -5
- data/vendor/local/share/man/man1/gobject-query.1 +4 -4
- data/vendor/local/src/tml/packaging/{glib_2.24.2-2_win32.log → glib_2.26.0-2_win32.log} +1102 -837
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.sh +64 -0
- metadata +905 -825
- data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.sh +0 -290
@@ -0,0 +1,2201 @@
|
|
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>GDateTime</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
+
<link rel="home" href="index.html" title="GLib Reference Manual">
|
8
|
+
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
|
9
|
+
<link rel="prev" href="glib-GTimeZone.html" title="GTimeZone">
|
10
|
+
<link rel="next" href="glib-Random-Numbers.html" title="Random Numbers">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15.1 (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="glib-GTimeZone.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
+
<td><a accesskey="u" href="glib-utilities.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">GLib Reference Manual</th>
|
21
|
+
<td><a accesskey="n" href="glib-Random-Numbers.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="#glib-GDateTime.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#glib-GDateTime.description" class="shortcut">Description</a>
|
27
|
+
</td></tr>
|
28
|
+
</table>
|
29
|
+
<div class="refentry">
|
30
|
+
<a name="glib-GDateTime"></a><div class="titlepage"></div>
|
31
|
+
<div class="refnamediv"><table width="100%"><tr>
|
32
|
+
<td valign="top">
|
33
|
+
<h2><span class="refentrytitle"><a name="glib-GDateTime.top_of_page"></a>GDateTime</span></h2>
|
34
|
+
<p>GDateTime — A structure representing Date and Time</p>
|
35
|
+
</td>
|
36
|
+
<td valign="top" align="right"></td>
|
37
|
+
</tr></table></div>
|
38
|
+
<div class="refsynopsisdiv">
|
39
|
+
<a name="glib-GDateTime.synopsis"></a><h2>Synopsis</h2>
|
40
|
+
<pre class="synopsis">
|
41
|
+
#include <glib.h>
|
42
|
+
|
43
|
+
typedef <a class="link" href="glib-GDateTime.html#GTimeSpan" title="GTimeSpan">GTimeSpan</a>;
|
44
|
+
#define <a class="link" href="glib-GDateTime.html#G-TIME-SPAN-DAY:CAPS" title="G_TIME_SPAN_DAY">G_TIME_SPAN_DAY</a>
|
45
|
+
#define <a class="link" href="glib-GDateTime.html#G-TIME-SPAN-HOUR:CAPS" title="G_TIME_SPAN_HOUR">G_TIME_SPAN_HOUR</a>
|
46
|
+
#define <a class="link" href="glib-GDateTime.html#G-TIME-SPAN-MINUTE:CAPS" title="G_TIME_SPAN_MINUTE">G_TIME_SPAN_MINUTE</a>
|
47
|
+
#define <a class="link" href="glib-GDateTime.html#G-TIME-SPAN-SECOND:CAPS" title="G_TIME_SPAN_SECOND">G_TIME_SPAN_SECOND</a>
|
48
|
+
#define <a class="link" href="glib-GDateTime.html#G-TIME-SPAN-MILLISECOND:CAPS" title="G_TIME_SPAN_MILLISECOND">G_TIME_SPAN_MILLISECOND</a>
|
49
|
+
|
50
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime">GDateTime</a>;
|
51
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()">g_date_time_unref</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
52
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-ref" title="g_date_time_ref ()">g_date_time_ref</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
53
|
+
|
54
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new-now" title="g_date_time_new_now ()">g_date_time_new_now</a> (<em class="parameter"><code><a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a> *tz</code></em>);
|
55
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new-now-local" title="g_date_time_new_now_local ()">g_date_time_new_now_local</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
56
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new-now-utc" title="g_date_time_new_now_utc ()">g_date_time_new_now_utc</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
57
|
+
|
58
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new-from-unix-local" title="g_date_time_new_from_unix_local ()">g_date_time_new_from_unix_local</a>
|
59
|
+
(<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a> t</code></em>);
|
60
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new-from-unix-utc" title="g_date_time_new_from_unix_utc ()">g_date_time_new_from_unix_utc</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a> t</code></em>);
|
61
|
+
|
62
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new-from-timeval-local" title="g_date_time_new_from_timeval_local ()">g_date_time_new_from_timeval_local</a>
|
63
|
+
(<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *tv</code></em>);
|
64
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new-from-timeval-utc" title="g_date_time_new_from_timeval_utc ()">g_date_time_new_from_timeval_utc</a>
|
65
|
+
(<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *tv</code></em>);
|
66
|
+
|
67
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new" title="g_date_time_new ()">g_date_time_new</a> (<em class="parameter"><code><a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a> *tz</code></em>,
|
68
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> year</code></em>,
|
69
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> month</code></em>,
|
70
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> day</code></em>,
|
71
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hour</code></em>,
|
72
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minute</code></em>,
|
73
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);
|
74
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new-local" title="g_date_time_new_local ()">g_date_time_new_local</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> year</code></em>,
|
75
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> month</code></em>,
|
76
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> day</code></em>,
|
77
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hour</code></em>,
|
78
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minute</code></em>,
|
79
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);
|
80
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-new-utc" title="g_date_time_new_utc ()">g_date_time_new_utc</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> year</code></em>,
|
81
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> month</code></em>,
|
82
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> day</code></em>,
|
83
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hour</code></em>,
|
84
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minute</code></em>,
|
85
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);
|
86
|
+
|
87
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-add" title="g_date_time_add ()">g_date_time_add</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
88
|
+
<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GTimeSpan" title="GTimeSpan"><span class="type">GTimeSpan</span></a> timespan</code></em>);
|
89
|
+
|
90
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-add-years" title="g_date_time_add_years ()">g_date_time_add_years</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
91
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> years</code></em>);
|
92
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-add-months" title="g_date_time_add_months ()">g_date_time_add_months</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
93
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> months</code></em>);
|
94
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-add-weeks" title="g_date_time_add_weeks ()">g_date_time_add_weeks</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
95
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> weeks</code></em>);
|
96
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-add-days" title="g_date_time_add_days ()">g_date_time_add_days</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
97
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> days</code></em>);
|
98
|
+
|
99
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-add-hours" title="g_date_time_add_hours ()">g_date_time_add_hours</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
100
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hours</code></em>);
|
101
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-add-minutes" title="g_date_time_add_minutes ()">g_date_time_add_minutes</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
102
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minutes</code></em>);
|
103
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-add-seconds" title="g_date_time_add_seconds ()">g_date_time_add_seconds</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
104
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);
|
105
|
+
|
106
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-add-full" title="g_date_time_add_full ()">g_date_time_add_full</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
107
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> years</code></em>,
|
108
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> months</code></em>,
|
109
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> days</code></em>,
|
110
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hours</code></em>,
|
111
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minutes</code></em>,
|
112
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);
|
113
|
+
|
114
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-compare" title="g_date_time_compare ()">g_date_time_compare</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> dt1</code></em>,
|
115
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> dt2</code></em>);
|
116
|
+
<a class="link" href="glib-GDateTime.html#GTimeSpan" title="GTimeSpan"><span class="returnvalue">GTimeSpan</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-difference" title="g_date_time_difference ()">g_date_time_difference</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *end</code></em>,
|
117
|
+
<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *begin</code></em>);
|
118
|
+
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-hash" title="g_date_time_hash ()">g_date_time_hash</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> datetime</code></em>);
|
119
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-equal" title="g_date_time_equal ()">g_date_time_equal</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> dt1</code></em>,
|
120
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> dt2</code></em>);
|
121
|
+
|
122
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-GDateTime.html#g-date-time-get-ymd" title="g_date_time_get_ymd ()">g_date_time_get_ymd</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
123
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *year</code></em>,
|
124
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *month</code></em>,
|
125
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *day</code></em>);
|
126
|
+
|
127
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-year" title="g_date_time_get_year ()">g_date_time_get_year</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
128
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-month" title="g_date_time_get_month ()">g_date_time_get_month</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
129
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-day-of-month" title="g_date_time_get_day_of_month ()">g_date_time_get_day_of_month</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
130
|
+
|
131
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-week-numbering-year" title="g_date_time_get_week_numbering_year ()">g_date_time_get_week_numbering_year</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
132
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-week-of-year" title="g_date_time_get_week_of_year ()">g_date_time_get_week_of_year</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
133
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-day-of-week" title="g_date_time_get_day_of_week ()">g_date_time_get_day_of_week</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
134
|
+
|
135
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-day-of-year" title="g_date_time_get_day_of_year ()">g_date_time_get_day_of_year</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
136
|
+
|
137
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-hour" title="g_date_time_get_hour ()">g_date_time_get_hour</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
138
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-minute" title="g_date_time_get_minute ()">g_date_time_get_minute</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
139
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-second" title="g_date_time_get_second ()">g_date_time_get_second</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
140
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-microsecond" title="g_date_time_get_microsecond ()">g_date_time_get_microsecond</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
141
|
+
<a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-seconds" title="g_date_time_get_seconds ()">g_date_time_get_seconds</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
142
|
+
|
143
|
+
<a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="returnvalue">gint64</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-to-unix" title="g_date_time_to_unix ()">g_date_time_to_unix</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
144
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-to-timeval" title="g_date_time_to_timeval ()">g_date_time_to_timeval</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
145
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *tv</code></em>);
|
146
|
+
|
147
|
+
<a class="link" href="glib-GDateTime.html#GTimeSpan" title="GTimeSpan"><span class="returnvalue">GTimeSpan</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-get-utc-offset" title="g_date_time_get_utc_offset ()">g_date_time_get_utc_offset</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
148
|
+
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-get-timezone-abbreviation" title="g_date_time_get_timezone_abbreviation ()">g_date_time_get_timezone_abbreviation</a>
|
149
|
+
(<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
150
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-GDateTime.html#g-date-time-is-daylight-savings" title="g_date_time_is_daylight_savings ()">g_date_time_is_daylight_savings</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
151
|
+
|
152
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-to-timezone" title="g_date_time_to_timezone ()">g_date_time_to_timezone</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
153
|
+
<em class="parameter"><code><a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a> *tz</code></em>);
|
154
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-to-local" title="g_date_time_to_local ()">g_date_time_to_local</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
155
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-to-utc" title="g_date_time_to_utc ()">g_date_time_to_utc</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);
|
156
|
+
|
157
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-GDateTime.html#g-date-time-format" title="g_date_time_format ()">g_date_time_format</a> (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
158
|
+
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *format</code></em>);
|
159
|
+
</pre>
|
160
|
+
</div>
|
161
|
+
<div class="refsect1">
|
162
|
+
<a name="glib-GDateTime.description"></a><h2>Description</h2>
|
163
|
+
<p>
|
164
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> is a structure that combines a Gregorian date and time
|
165
|
+
into a single structure. It provides many conversion and methods to
|
166
|
+
manipulate dates and times. Time precision is provided down to
|
167
|
+
microseconds and the time can range (proleptically) from 0001-01-01
|
168
|
+
00:00:00 to 9999-12-31 23:59:59.999999. <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> follows POSIX
|
169
|
+
time in the sense that it is oblivious to leap seconds.
|
170
|
+
</p>
|
171
|
+
<p>
|
172
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> is an immutable object; once it has been created it cannot
|
173
|
+
be modified further. All modifiers will create a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>.
|
174
|
+
Nearly all such functions can fail due to the date or time going out
|
175
|
+
of range, in which case <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> will be returned.
|
176
|
+
</p>
|
177
|
+
<p>
|
178
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> is reference counted: the reference count is increased by calling
|
179
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-ref" title="g_date_time_ref ()"><code class="function">g_date_time_ref()</code></a> and decreased by calling <a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>. When the
|
180
|
+
reference count drops to 0, the resources allocated by the <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
181
|
+
structure are released.
|
182
|
+
</p>
|
183
|
+
<p>
|
184
|
+
Many parts of the API may produce non-obvious results. As an
|
185
|
+
example, adding two months to January 31st will yield March 31st
|
186
|
+
whereas adding one month and then one month again will yield either
|
187
|
+
March 28th or March 29th. Also note that adding 24 hours is not
|
188
|
+
always the same as adding one day (since days containing daylight
|
189
|
+
savings time transitions are either 23 or 25 hours in length).
|
190
|
+
</p>
|
191
|
+
<p>
|
192
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> is available since GLib 2.26.
|
193
|
+
</p>
|
194
|
+
</div>
|
195
|
+
<div class="refsect1">
|
196
|
+
<a name="glib-GDateTime.details"></a><h2>Details</h2>
|
197
|
+
<div class="refsect2">
|
198
|
+
<a name="GTimeSpan"></a><h3>GTimeSpan</h3>
|
199
|
+
<pre class="programlisting">typedef gint64 GTimeSpan;
|
200
|
+
</pre>
|
201
|
+
<p>
|
202
|
+
A value representing an interval of time, in microseconds.
|
203
|
+
</p>
|
204
|
+
<p class="since">Since 2.26</p>
|
205
|
+
</div>
|
206
|
+
<hr>
|
207
|
+
<div class="refsect2">
|
208
|
+
<a name="G-TIME-SPAN-DAY:CAPS"></a><h3>G_TIME_SPAN_DAY</h3>
|
209
|
+
<pre class="programlisting">#define G_TIME_SPAN_DAY (G_GINT64_CONSTANT (86400000000))
|
210
|
+
</pre>
|
211
|
+
<p>
|
212
|
+
Evaluates to a time span of one day.
|
213
|
+
</p>
|
214
|
+
<p class="since">Since 2.26</p>
|
215
|
+
</div>
|
216
|
+
<hr>
|
217
|
+
<div class="refsect2">
|
218
|
+
<a name="G-TIME-SPAN-HOUR:CAPS"></a><h3>G_TIME_SPAN_HOUR</h3>
|
219
|
+
<pre class="programlisting">#define G_TIME_SPAN_HOUR (G_GINT64_CONSTANT (3600000000))
|
220
|
+
</pre>
|
221
|
+
<p>
|
222
|
+
Evaluates to a time span of one hour.
|
223
|
+
</p>
|
224
|
+
<p class="since">Since 2.26</p>
|
225
|
+
</div>
|
226
|
+
<hr>
|
227
|
+
<div class="refsect2">
|
228
|
+
<a name="G-TIME-SPAN-MINUTE:CAPS"></a><h3>G_TIME_SPAN_MINUTE</h3>
|
229
|
+
<pre class="programlisting">#define G_TIME_SPAN_MINUTE (G_GINT64_CONSTANT (60000000))
|
230
|
+
</pre>
|
231
|
+
<p>
|
232
|
+
Evaluates to a time span of one minute.
|
233
|
+
</p>
|
234
|
+
<p class="since">Since 2.26</p>
|
235
|
+
</div>
|
236
|
+
<hr>
|
237
|
+
<div class="refsect2">
|
238
|
+
<a name="G-TIME-SPAN-SECOND:CAPS"></a><h3>G_TIME_SPAN_SECOND</h3>
|
239
|
+
<pre class="programlisting">#define G_TIME_SPAN_SECOND (G_GINT64_CONSTANT (1000000))
|
240
|
+
</pre>
|
241
|
+
<p>
|
242
|
+
Evaluates to a time span of one second.
|
243
|
+
</p>
|
244
|
+
<p class="since">Since 2.26</p>
|
245
|
+
</div>
|
246
|
+
<hr>
|
247
|
+
<div class="refsect2">
|
248
|
+
<a name="G-TIME-SPAN-MILLISECOND:CAPS"></a><h3>G_TIME_SPAN_MILLISECOND</h3>
|
249
|
+
<pre class="programlisting">#define G_TIME_SPAN_MILLISECOND (G_GINT64_CONSTANT (1000))
|
250
|
+
</pre>
|
251
|
+
<p>
|
252
|
+
Evaluates to a time span of one millisecond.
|
253
|
+
</p>
|
254
|
+
<p class="since">Since 2.26</p>
|
255
|
+
</div>
|
256
|
+
<hr>
|
257
|
+
<div class="refsect2">
|
258
|
+
<a name="GDateTime"></a><h3>GDateTime</h3>
|
259
|
+
<pre class="programlisting">typedef struct _GDateTime GDateTime;</pre>
|
260
|
+
<p>
|
261
|
+
<span class="structname">GDateTime</span> is an opaque structure whose members
|
262
|
+
cannot be accessed directly.
|
263
|
+
</p>
|
264
|
+
<p class="since">Since 2.26</p>
|
265
|
+
</div>
|
266
|
+
<hr>
|
267
|
+
<div class="refsect2">
|
268
|
+
<a name="g-date-time-unref"></a><h3>g_date_time_unref ()</h3>
|
269
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_time_unref (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
270
|
+
<p>
|
271
|
+
Atomically decrements the reference count of <em class="parameter"><code>datetime</code></em> by one.
|
272
|
+
</p>
|
273
|
+
<p>
|
274
|
+
When the reference count reaches zero, the resources allocated by
|
275
|
+
<em class="parameter"><code>datetime</code></em> are freed
|
276
|
+
</p>
|
277
|
+
<div class="variablelist"><table border="0">
|
278
|
+
<col align="left" valign="top">
|
279
|
+
<tbody><tr>
|
280
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
281
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
282
|
+
</td>
|
283
|
+
</tr></tbody>
|
284
|
+
</table></div>
|
285
|
+
<p class="since">Since 2.26</p>
|
286
|
+
</div>
|
287
|
+
<hr>
|
288
|
+
<div class="refsect2">
|
289
|
+
<a name="g-date-time-ref"></a><h3>g_date_time_ref ()</h3>
|
290
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_ref (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
291
|
+
<p>
|
292
|
+
Atomically increments the reference count of <em class="parameter"><code>datetime</code></em> by one.
|
293
|
+
</p>
|
294
|
+
<div class="variablelist"><table border="0">
|
295
|
+
<col align="left" valign="top">
|
296
|
+
<tbody>
|
297
|
+
<tr>
|
298
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
299
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
300
|
+
</td>
|
301
|
+
</tr>
|
302
|
+
<tr>
|
303
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
304
|
+
<td> the <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> with the reference count increased
|
305
|
+
|
306
|
+
</td>
|
307
|
+
</tr>
|
308
|
+
</tbody>
|
309
|
+
</table></div>
|
310
|
+
<p class="since">Since 2.26</p>
|
311
|
+
</div>
|
312
|
+
<hr>
|
313
|
+
<div class="refsect2">
|
314
|
+
<a name="g-date-time-new-now"></a><h3>g_date_time_new_now ()</h3>
|
315
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new_now (<em class="parameter"><code><a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a> *tz</code></em>);</pre>
|
316
|
+
<p>
|
317
|
+
Creates a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to this exact instant in the given
|
318
|
+
time zone <em class="parameter"><code>tz</code></em>. The time is as accurate as the system allows, to a
|
319
|
+
maximum accuracy of 1 microsecond.
|
320
|
+
</p>
|
321
|
+
<p>
|
322
|
+
This function will always succeed unless the system clock is set to
|
323
|
+
truly insane values (or unless GLib is still being used after the
|
324
|
+
year 9999).
|
325
|
+
</p>
|
326
|
+
<p>
|
327
|
+
You should release the return value by calling <a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>
|
328
|
+
when you are done with it.
|
329
|
+
</p>
|
330
|
+
<div class="variablelist"><table border="0">
|
331
|
+
<col align="left" valign="top">
|
332
|
+
<tbody>
|
333
|
+
<tr>
|
334
|
+
<td><p><span class="term"><em class="parameter"><code>tz</code></em> :</span></p></td>
|
335
|
+
<td>a <a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a>
|
336
|
+
</td>
|
337
|
+
</tr>
|
338
|
+
<tr>
|
339
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
340
|
+
<td> a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
341
|
+
|
342
|
+
</td>
|
343
|
+
</tr>
|
344
|
+
</tbody>
|
345
|
+
</table></div>
|
346
|
+
<p class="since">Since 2.26</p>
|
347
|
+
</div>
|
348
|
+
<hr>
|
349
|
+
<div class="refsect2">
|
350
|
+
<a name="g-date-time-new-now-local"></a><h3>g_date_time_new_now_local ()</h3>
|
351
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new_now_local (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
352
|
+
<p>
|
353
|
+
Creates a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to this exact instant in the local
|
354
|
+
time zone.
|
355
|
+
</p>
|
356
|
+
<p>
|
357
|
+
This is equivalent to calling <a class="link" href="glib-GDateTime.html#g-date-time-new-now" title="g_date_time_new_now ()"><code class="function">g_date_time_new_now()</code></a> with the time
|
358
|
+
zone returned by <a class="link" href="glib-GTimeZone.html#g-time-zone-new-local" title="g_time_zone_new_local ()"><code class="function">g_time_zone_new_local()</code></a>.
|
359
|
+
</p>
|
360
|
+
<div class="variablelist"><table border="0">
|
361
|
+
<col align="left" valign="top">
|
362
|
+
<tbody><tr>
|
363
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
364
|
+
<td> a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
365
|
+
|
366
|
+
</td>
|
367
|
+
</tr></tbody>
|
368
|
+
</table></div>
|
369
|
+
<p class="since">Since 2.26</p>
|
370
|
+
</div>
|
371
|
+
<hr>
|
372
|
+
<div class="refsect2">
|
373
|
+
<a name="g-date-time-new-now-utc"></a><h3>g_date_time_new_now_utc ()</h3>
|
374
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new_now_utc (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
375
|
+
<p>
|
376
|
+
Creates a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to this exact instant in UTC.
|
377
|
+
</p>
|
378
|
+
<p>
|
379
|
+
This is equivalent to calling <a class="link" href="glib-GDateTime.html#g-date-time-new-now" title="g_date_time_new_now ()"><code class="function">g_date_time_new_now()</code></a> with the time
|
380
|
+
zone returned by <a class="link" href="glib-GTimeZone.html#g-time-zone-new-utc" title="g_time_zone_new_utc ()"><code class="function">g_time_zone_new_utc()</code></a>.
|
381
|
+
</p>
|
382
|
+
<div class="variablelist"><table border="0">
|
383
|
+
<col align="left" valign="top">
|
384
|
+
<tbody><tr>
|
385
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
386
|
+
<td> a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
387
|
+
|
388
|
+
</td>
|
389
|
+
</tr></tbody>
|
390
|
+
</table></div>
|
391
|
+
<p class="since">Since 2.26</p>
|
392
|
+
</div>
|
393
|
+
<hr>
|
394
|
+
<div class="refsect2">
|
395
|
+
<a name="g-date-time-new-from-unix-local"></a><h3>g_date_time_new_from_unix_local ()</h3>
|
396
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new_from_unix_local
|
397
|
+
(<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a> t</code></em>);</pre>
|
398
|
+
<p>
|
399
|
+
Creates a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the given Unix time <em class="parameter"><code>t</code></em> in the
|
400
|
+
local time zone.
|
401
|
+
</p>
|
402
|
+
<p>
|
403
|
+
Unix time is the number of seconds that have elapsed since 1970-01-01
|
404
|
+
00:00:00 UTC, regardless of the local time offset.
|
405
|
+
</p>
|
406
|
+
<p>
|
407
|
+
This call can fail (returning <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>) if <em class="parameter"><code>t</code></em> represents a time outside
|
408
|
+
of the supported range of <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>.
|
409
|
+
</p>
|
410
|
+
<p>
|
411
|
+
You should release the return value by calling <a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>
|
412
|
+
when you are done with it.
|
413
|
+
</p>
|
414
|
+
<div class="variablelist"><table border="0">
|
415
|
+
<col align="left" valign="top">
|
416
|
+
<tbody>
|
417
|
+
<tr>
|
418
|
+
<td><p><span class="term"><em class="parameter"><code>t</code></em> :</span></p></td>
|
419
|
+
<td>the Unix time
|
420
|
+
</td>
|
421
|
+
</tr>
|
422
|
+
<tr>
|
423
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
424
|
+
<td> a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
425
|
+
|
426
|
+
</td>
|
427
|
+
</tr>
|
428
|
+
</tbody>
|
429
|
+
</table></div>
|
430
|
+
<p class="since">Since 2.26</p>
|
431
|
+
</div>
|
432
|
+
<hr>
|
433
|
+
<div class="refsect2">
|
434
|
+
<a name="g-date-time-new-from-unix-utc"></a><h3>g_date_time_new_from_unix_utc ()</h3>
|
435
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new_from_unix_utc (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a> t</code></em>);</pre>
|
436
|
+
<p>
|
437
|
+
Creates a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the given Unix time <em class="parameter"><code>t</code></em> in UTC.
|
438
|
+
</p>
|
439
|
+
<p>
|
440
|
+
Unix time is the number of seconds that have elapsed since 1970-01-01
|
441
|
+
00:00:00 UTC.
|
442
|
+
</p>
|
443
|
+
<p>
|
444
|
+
This call can fail (returning <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>) if <em class="parameter"><code>t</code></em> represents a time outside
|
445
|
+
of the supported range of <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>.
|
446
|
+
</p>
|
447
|
+
<p>
|
448
|
+
You should release the return value by calling <a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>
|
449
|
+
when you are done with it.
|
450
|
+
</p>
|
451
|
+
<div class="variablelist"><table border="0">
|
452
|
+
<col align="left" valign="top">
|
453
|
+
<tbody>
|
454
|
+
<tr>
|
455
|
+
<td><p><span class="term"><em class="parameter"><code>t</code></em> :</span></p></td>
|
456
|
+
<td>the Unix time
|
457
|
+
</td>
|
458
|
+
</tr>
|
459
|
+
<tr>
|
460
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
461
|
+
<td> a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
462
|
+
|
463
|
+
</td>
|
464
|
+
</tr>
|
465
|
+
</tbody>
|
466
|
+
</table></div>
|
467
|
+
<p class="since">Since 2.26</p>
|
468
|
+
</div>
|
469
|
+
<hr>
|
470
|
+
<div class="refsect2">
|
471
|
+
<a name="g-date-time-new-from-timeval-local"></a><h3>g_date_time_new_from_timeval_local ()</h3>
|
472
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new_from_timeval_local
|
473
|
+
(<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *tv</code></em>);</pre>
|
474
|
+
<p>
|
475
|
+
Creates a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the given <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> <em class="parameter"><code>tv</code></em> in the
|
476
|
+
local time zone.
|
477
|
+
</p>
|
478
|
+
<p>
|
479
|
+
The time contained in a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> is always stored in the form of
|
480
|
+
seconds elapsed since 1970-01-01 00:00:00 UTC, regardless of the
|
481
|
+
local time offset.
|
482
|
+
</p>
|
483
|
+
<p>
|
484
|
+
This call can fail (returning <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>) if <em class="parameter"><code>tv</code></em> represents a time outside
|
485
|
+
of the supported range of <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>.
|
486
|
+
</p>
|
487
|
+
<p>
|
488
|
+
You should release the return value by calling <a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>
|
489
|
+
when you are done with it.
|
490
|
+
</p>
|
491
|
+
<div class="variablelist"><table border="0">
|
492
|
+
<col align="left" valign="top">
|
493
|
+
<tbody>
|
494
|
+
<tr>
|
495
|
+
<td><p><span class="term"><em class="parameter"><code>tv</code></em> :</span></p></td>
|
496
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a>
|
497
|
+
</td>
|
498
|
+
</tr>
|
499
|
+
<tr>
|
500
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
501
|
+
<td> a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
502
|
+
|
503
|
+
</td>
|
504
|
+
</tr>
|
505
|
+
</tbody>
|
506
|
+
</table></div>
|
507
|
+
<p class="since">Since 2.26</p>
|
508
|
+
</div>
|
509
|
+
<hr>
|
510
|
+
<div class="refsect2">
|
511
|
+
<a name="g-date-time-new-from-timeval-utc"></a><h3>g_date_time_new_from_timeval_utc ()</h3>
|
512
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new_from_timeval_utc
|
513
|
+
(<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *tv</code></em>);</pre>
|
514
|
+
<p>
|
515
|
+
Creates a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the given <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> <em class="parameter"><code>tv</code></em> in UTC.
|
516
|
+
</p>
|
517
|
+
<p>
|
518
|
+
The time contained in a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> is always stored in the form of
|
519
|
+
seconds elapsed since 1970-01-01 00:00:00 UTC.
|
520
|
+
</p>
|
521
|
+
<p>
|
522
|
+
This call can fail (returning <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>) if <em class="parameter"><code>tv</code></em> represents a time outside
|
523
|
+
of the supported range of <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>.
|
524
|
+
</p>
|
525
|
+
<p>
|
526
|
+
You should release the return value by calling <a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>
|
527
|
+
when you are done with it.
|
528
|
+
</p>
|
529
|
+
<div class="variablelist"><table border="0">
|
530
|
+
<col align="left" valign="top">
|
531
|
+
<tbody>
|
532
|
+
<tr>
|
533
|
+
<td><p><span class="term"><em class="parameter"><code>tv</code></em> :</span></p></td>
|
534
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a>
|
535
|
+
</td>
|
536
|
+
</tr>
|
537
|
+
<tr>
|
538
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
539
|
+
<td> a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
540
|
+
|
541
|
+
</td>
|
542
|
+
</tr>
|
543
|
+
</tbody>
|
544
|
+
</table></div>
|
545
|
+
<p class="since">Since 2.26</p>
|
546
|
+
</div>
|
547
|
+
<hr>
|
548
|
+
<div class="refsect2">
|
549
|
+
<a name="g-date-time-new"></a><h3>g_date_time_new ()</h3>
|
550
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new (<em class="parameter"><code><a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a> *tz</code></em>,
|
551
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> year</code></em>,
|
552
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> month</code></em>,
|
553
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> day</code></em>,
|
554
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hour</code></em>,
|
555
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minute</code></em>,
|
556
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);</pre>
|
557
|
+
<p>
|
558
|
+
Creates a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the given date and time in
|
559
|
+
the time zone <em class="parameter"><code>tz</code></em>.
|
560
|
+
</p>
|
561
|
+
<p>
|
562
|
+
The <em class="parameter"><code>year</code></em> must be between 1 and 9999, <em class="parameter"><code>month</code></em> between 1 and 12 and <em class="parameter"><code>day</code></em>
|
563
|
+
between 1 and 28, 29, 30 or 31 depending on the month and the year.
|
564
|
+
</p>
|
565
|
+
<p>
|
566
|
+
<em class="parameter"><code>hour</code></em> must be between 0 and 23 and <em class="parameter"><code>minute</code></em> must be between 0 and 59.
|
567
|
+
</p>
|
568
|
+
<p>
|
569
|
+
<em class="parameter"><code>seconds</code></em> must be at least 0.0 and must be strictly less than 60.0.
|
570
|
+
It will be rounded down to the nearest microsecond.
|
571
|
+
</p>
|
572
|
+
<p>
|
573
|
+
If the given time is not representable in the given time zone (for
|
574
|
+
example, 02:30 on March 14th 2010 in Toronto, due to daylight savings
|
575
|
+
time) then the time will be rounded up to the nearest existing time
|
576
|
+
(in this case, 03:00). If this matters to you then you should verify
|
577
|
+
the return value for containing the same as the numbers you gave.
|
578
|
+
</p>
|
579
|
+
<p>
|
580
|
+
In the case that the given time is ambiguous in the given time zone
|
581
|
+
(for example, 01:30 on November 7th 2010 in Toronto, due to daylight
|
582
|
+
savings time) then the time falling within standard (ie:
|
583
|
+
non-daylight) time is taken.
|
584
|
+
</p>
|
585
|
+
<p>
|
586
|
+
It not considered a programmer error for the values to this function
|
587
|
+
to be out of range, but in the case that they are, the function will
|
588
|
+
return <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
589
|
+
</p>
|
590
|
+
<p>
|
591
|
+
You should release the return value by calling <a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>
|
592
|
+
when you are done with it.
|
593
|
+
</p>
|
594
|
+
<div class="variablelist"><table border="0">
|
595
|
+
<col align="left" valign="top">
|
596
|
+
<tbody>
|
597
|
+
<tr>
|
598
|
+
<td><p><span class="term"><em class="parameter"><code>tz</code></em> :</span></p></td>
|
599
|
+
<td>a <a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a>
|
600
|
+
</td>
|
601
|
+
</tr>
|
602
|
+
<tr>
|
603
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
604
|
+
<td>the year component of the date
|
605
|
+
</td>
|
606
|
+
</tr>
|
607
|
+
<tr>
|
608
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
609
|
+
<td>the month component of the date
|
610
|
+
</td>
|
611
|
+
</tr>
|
612
|
+
<tr>
|
613
|
+
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td>
|
614
|
+
<td>the day component of the date
|
615
|
+
</td>
|
616
|
+
</tr>
|
617
|
+
<tr>
|
618
|
+
<td><p><span class="term"><em class="parameter"><code>hour</code></em> :</span></p></td>
|
619
|
+
<td>the hour component of the date
|
620
|
+
</td>
|
621
|
+
</tr>
|
622
|
+
<tr>
|
623
|
+
<td><p><span class="term"><em class="parameter"><code>minute</code></em> :</span></p></td>
|
624
|
+
<td>the minute component of the date
|
625
|
+
</td>
|
626
|
+
</tr>
|
627
|
+
<tr>
|
628
|
+
<td><p><span class="term"><em class="parameter"><code>seconds</code></em> :</span></p></td>
|
629
|
+
<td>the number of seconds past the minute
|
630
|
+
</td>
|
631
|
+
</tr>
|
632
|
+
<tr>
|
633
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
634
|
+
<td> a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
635
|
+
|
636
|
+
</td>
|
637
|
+
</tr>
|
638
|
+
</tbody>
|
639
|
+
</table></div>
|
640
|
+
<p class="since">Since 2.26</p>
|
641
|
+
</div>
|
642
|
+
<hr>
|
643
|
+
<div class="refsect2">
|
644
|
+
<a name="g-date-time-new-local"></a><h3>g_date_time_new_local ()</h3>
|
645
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new_local (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> year</code></em>,
|
646
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> month</code></em>,
|
647
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> day</code></em>,
|
648
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hour</code></em>,
|
649
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minute</code></em>,
|
650
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);</pre>
|
651
|
+
<p>
|
652
|
+
Creates a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the given date and time in
|
653
|
+
the local time zone.
|
654
|
+
</p>
|
655
|
+
<p>
|
656
|
+
This call is equivalent to calling <a class="link" href="glib-GDateTime.html#g-date-time-new" title="g_date_time_new ()"><code class="function">g_date_time_new()</code></a> with the time
|
657
|
+
zone returned by <a class="link" href="glib-GTimeZone.html#g-time-zone-new-local" title="g_time_zone_new_local ()"><code class="function">g_time_zone_new_local()</code></a>.
|
658
|
+
</p>
|
659
|
+
<div class="variablelist"><table border="0">
|
660
|
+
<col align="left" valign="top">
|
661
|
+
<tbody>
|
662
|
+
<tr>
|
663
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
664
|
+
<td>the year component of the date
|
665
|
+
</td>
|
666
|
+
</tr>
|
667
|
+
<tr>
|
668
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
669
|
+
<td>the month component of the date
|
670
|
+
</td>
|
671
|
+
</tr>
|
672
|
+
<tr>
|
673
|
+
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td>
|
674
|
+
<td>the day component of the date
|
675
|
+
</td>
|
676
|
+
</tr>
|
677
|
+
<tr>
|
678
|
+
<td><p><span class="term"><em class="parameter"><code>hour</code></em> :</span></p></td>
|
679
|
+
<td>the hour component of the date
|
680
|
+
</td>
|
681
|
+
</tr>
|
682
|
+
<tr>
|
683
|
+
<td><p><span class="term"><em class="parameter"><code>minute</code></em> :</span></p></td>
|
684
|
+
<td>the minute component of the date
|
685
|
+
</td>
|
686
|
+
</tr>
|
687
|
+
<tr>
|
688
|
+
<td><p><span class="term"><em class="parameter"><code>seconds</code></em> :</span></p></td>
|
689
|
+
<td>the number of seconds past the minute
|
690
|
+
</td>
|
691
|
+
</tr>
|
692
|
+
<tr>
|
693
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
694
|
+
<td> a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
695
|
+
|
696
|
+
</td>
|
697
|
+
</tr>
|
698
|
+
</tbody>
|
699
|
+
</table></div>
|
700
|
+
<p class="since">Since 2.26.</p>
|
701
|
+
</div>
|
702
|
+
<hr>
|
703
|
+
<div class="refsect2">
|
704
|
+
<a name="g-date-time-new-utc"></a><h3>g_date_time_new_utc ()</h3>
|
705
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_new_utc (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> year</code></em>,
|
706
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> month</code></em>,
|
707
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> day</code></em>,
|
708
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hour</code></em>,
|
709
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minute</code></em>,
|
710
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);</pre>
|
711
|
+
<p>
|
712
|
+
Creates a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the given date and time in
|
713
|
+
UTC.
|
714
|
+
</p>
|
715
|
+
<p>
|
716
|
+
This call is equivalent to calling <a class="link" href="glib-GDateTime.html#g-date-time-new" title="g_date_time_new ()"><code class="function">g_date_time_new()</code></a> with the time
|
717
|
+
zone returned by <a class="link" href="glib-GTimeZone.html#g-time-zone-new-utc" title="g_time_zone_new_utc ()"><code class="function">g_time_zone_new_utc()</code></a>.
|
718
|
+
</p>
|
719
|
+
<div class="variablelist"><table border="0">
|
720
|
+
<col align="left" valign="top">
|
721
|
+
<tbody>
|
722
|
+
<tr>
|
723
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
724
|
+
<td>the year component of the date
|
725
|
+
</td>
|
726
|
+
</tr>
|
727
|
+
<tr>
|
728
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
729
|
+
<td>the month component of the date
|
730
|
+
</td>
|
731
|
+
</tr>
|
732
|
+
<tr>
|
733
|
+
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td>
|
734
|
+
<td>the day component of the date
|
735
|
+
</td>
|
736
|
+
</tr>
|
737
|
+
<tr>
|
738
|
+
<td><p><span class="term"><em class="parameter"><code>hour</code></em> :</span></p></td>
|
739
|
+
<td>the hour component of the date
|
740
|
+
</td>
|
741
|
+
</tr>
|
742
|
+
<tr>
|
743
|
+
<td><p><span class="term"><em class="parameter"><code>minute</code></em> :</span></p></td>
|
744
|
+
<td>the minute component of the date
|
745
|
+
</td>
|
746
|
+
</tr>
|
747
|
+
<tr>
|
748
|
+
<td><p><span class="term"><em class="parameter"><code>seconds</code></em> :</span></p></td>
|
749
|
+
<td>the number of seconds past the minute
|
750
|
+
</td>
|
751
|
+
</tr>
|
752
|
+
<tr>
|
753
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
754
|
+
<td> a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
755
|
+
|
756
|
+
</td>
|
757
|
+
</tr>
|
758
|
+
</tbody>
|
759
|
+
</table></div>
|
760
|
+
<p class="since">Since 2.26.</p>
|
761
|
+
</div>
|
762
|
+
<hr>
|
763
|
+
<div class="refsect2">
|
764
|
+
<a name="g-date-time-add"></a><h3>g_date_time_add ()</h3>
|
765
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_add (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
766
|
+
<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GTimeSpan" title="GTimeSpan"><span class="type">GTimeSpan</span></a> timespan</code></em>);</pre>
|
767
|
+
<p>
|
768
|
+
Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified timespan to the copy.
|
769
|
+
</p>
|
770
|
+
<div class="variablelist"><table border="0">
|
771
|
+
<col align="left" valign="top">
|
772
|
+
<tbody>
|
773
|
+
<tr>
|
774
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
775
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
776
|
+
</td>
|
777
|
+
</tr>
|
778
|
+
<tr>
|
779
|
+
<td><p><span class="term"><em class="parameter"><code>timespan</code></em> :</span></p></td>
|
780
|
+
<td>a <a class="link" href="glib-GDateTime.html#GTimeSpan" title="GTimeSpan"><span class="type">GTimeSpan</span></a>
|
781
|
+
</td>
|
782
|
+
</tr>
|
783
|
+
<tr>
|
784
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
785
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> which should be freed with
|
786
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>.
|
787
|
+
|
788
|
+
</td>
|
789
|
+
</tr>
|
790
|
+
</tbody>
|
791
|
+
</table></div>
|
792
|
+
<p class="since">Since 2.26</p>
|
793
|
+
</div>
|
794
|
+
<hr>
|
795
|
+
<div class="refsect2">
|
796
|
+
<a name="g-date-time-add-years"></a><h3>g_date_time_add_years ()</h3>
|
797
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_add_years (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
798
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> years</code></em>);</pre>
|
799
|
+
<p>
|
800
|
+
Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of years to the
|
801
|
+
copy.
|
802
|
+
</p>
|
803
|
+
<div class="variablelist"><table border="0">
|
804
|
+
<col align="left" valign="top">
|
805
|
+
<tbody>
|
806
|
+
<tr>
|
807
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
808
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
809
|
+
</td>
|
810
|
+
</tr>
|
811
|
+
<tr>
|
812
|
+
<td><p><span class="term"><em class="parameter"><code>years</code></em> :</span></p></td>
|
813
|
+
<td>the number of years
|
814
|
+
</td>
|
815
|
+
</tr>
|
816
|
+
<tr>
|
817
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
818
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> which should be freed with
|
819
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>.
|
820
|
+
|
821
|
+
</td>
|
822
|
+
</tr>
|
823
|
+
</tbody>
|
824
|
+
</table></div>
|
825
|
+
<p class="since">Since 2.26</p>
|
826
|
+
</div>
|
827
|
+
<hr>
|
828
|
+
<div class="refsect2">
|
829
|
+
<a name="g-date-time-add-months"></a><h3>g_date_time_add_months ()</h3>
|
830
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_add_months (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
831
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> months</code></em>);</pre>
|
832
|
+
<p>
|
833
|
+
Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of months to the
|
834
|
+
copy.
|
835
|
+
</p>
|
836
|
+
<div class="variablelist"><table border="0">
|
837
|
+
<col align="left" valign="top">
|
838
|
+
<tbody>
|
839
|
+
<tr>
|
840
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
841
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
842
|
+
</td>
|
843
|
+
</tr>
|
844
|
+
<tr>
|
845
|
+
<td><p><span class="term"><em class="parameter"><code>months</code></em> :</span></p></td>
|
846
|
+
<td>the number of months
|
847
|
+
</td>
|
848
|
+
</tr>
|
849
|
+
<tr>
|
850
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
851
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> which should be freed with
|
852
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>.
|
853
|
+
|
854
|
+
</td>
|
855
|
+
</tr>
|
856
|
+
</tbody>
|
857
|
+
</table></div>
|
858
|
+
<p class="since">Since 2.26</p>
|
859
|
+
</div>
|
860
|
+
<hr>
|
861
|
+
<div class="refsect2">
|
862
|
+
<a name="g-date-time-add-weeks"></a><h3>g_date_time_add_weeks ()</h3>
|
863
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_add_weeks (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
864
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> weeks</code></em>);</pre>
|
865
|
+
<p>
|
866
|
+
Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of weeks to the
|
867
|
+
copy.
|
868
|
+
</p>
|
869
|
+
<div class="variablelist"><table border="0">
|
870
|
+
<col align="left" valign="top">
|
871
|
+
<tbody>
|
872
|
+
<tr>
|
873
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
874
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
875
|
+
</td>
|
876
|
+
</tr>
|
877
|
+
<tr>
|
878
|
+
<td><p><span class="term"><em class="parameter"><code>weeks</code></em> :</span></p></td>
|
879
|
+
<td>the number of weeks
|
880
|
+
</td>
|
881
|
+
</tr>
|
882
|
+
<tr>
|
883
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
884
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> which should be freed with
|
885
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>.
|
886
|
+
|
887
|
+
</td>
|
888
|
+
</tr>
|
889
|
+
</tbody>
|
890
|
+
</table></div>
|
891
|
+
<p class="since">Since 2.26</p>
|
892
|
+
</div>
|
893
|
+
<hr>
|
894
|
+
<div class="refsect2">
|
895
|
+
<a name="g-date-time-add-days"></a><h3>g_date_time_add_days ()</h3>
|
896
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_add_days (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
897
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> days</code></em>);</pre>
|
898
|
+
<p>
|
899
|
+
Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of days to the
|
900
|
+
copy.
|
901
|
+
</p>
|
902
|
+
<div class="variablelist"><table border="0">
|
903
|
+
<col align="left" valign="top">
|
904
|
+
<tbody>
|
905
|
+
<tr>
|
906
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
907
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
908
|
+
</td>
|
909
|
+
</tr>
|
910
|
+
<tr>
|
911
|
+
<td><p><span class="term"><em class="parameter"><code>days</code></em> :</span></p></td>
|
912
|
+
<td>the number of days
|
913
|
+
</td>
|
914
|
+
</tr>
|
915
|
+
<tr>
|
916
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
917
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> which should be freed with
|
918
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>.
|
919
|
+
|
920
|
+
</td>
|
921
|
+
</tr>
|
922
|
+
</tbody>
|
923
|
+
</table></div>
|
924
|
+
<p class="since">Since 2.26</p>
|
925
|
+
</div>
|
926
|
+
<hr>
|
927
|
+
<div class="refsect2">
|
928
|
+
<a name="g-date-time-add-hours"></a><h3>g_date_time_add_hours ()</h3>
|
929
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_add_hours (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
930
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hours</code></em>);</pre>
|
931
|
+
<p>
|
932
|
+
Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of hours
|
933
|
+
</p>
|
934
|
+
<div class="variablelist"><table border="0">
|
935
|
+
<col align="left" valign="top">
|
936
|
+
<tbody>
|
937
|
+
<tr>
|
938
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
939
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
940
|
+
</td>
|
941
|
+
</tr>
|
942
|
+
<tr>
|
943
|
+
<td><p><span class="term"><em class="parameter"><code>hours</code></em> :</span></p></td>
|
944
|
+
<td>the number of hours to add
|
945
|
+
</td>
|
946
|
+
</tr>
|
947
|
+
<tr>
|
948
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
949
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> which should be freed with
|
950
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>.
|
951
|
+
|
952
|
+
</td>
|
953
|
+
</tr>
|
954
|
+
</tbody>
|
955
|
+
</table></div>
|
956
|
+
<p class="since">Since 2.26</p>
|
957
|
+
</div>
|
958
|
+
<hr>
|
959
|
+
<div class="refsect2">
|
960
|
+
<a name="g-date-time-add-minutes"></a><h3>g_date_time_add_minutes ()</h3>
|
961
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_add_minutes (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
962
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minutes</code></em>);</pre>
|
963
|
+
<p>
|
964
|
+
Creates a copy of <em class="parameter"><code>datetime</code></em> adding the specified number of minutes.
|
965
|
+
</p>
|
966
|
+
<div class="variablelist"><table border="0">
|
967
|
+
<col align="left" valign="top">
|
968
|
+
<tbody>
|
969
|
+
<tr>
|
970
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
971
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
972
|
+
</td>
|
973
|
+
</tr>
|
974
|
+
<tr>
|
975
|
+
<td><p><span class="term"><em class="parameter"><code>minutes</code></em> :</span></p></td>
|
976
|
+
<td>the number of minutes to add
|
977
|
+
</td>
|
978
|
+
</tr>
|
979
|
+
<tr>
|
980
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
981
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> which should be freed with
|
982
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>.
|
983
|
+
|
984
|
+
</td>
|
985
|
+
</tr>
|
986
|
+
</tbody>
|
987
|
+
</table></div>
|
988
|
+
<p class="since">Since 2.26</p>
|
989
|
+
</div>
|
990
|
+
<hr>
|
991
|
+
<div class="refsect2">
|
992
|
+
<a name="g-date-time-add-seconds"></a><h3>g_date_time_add_seconds ()</h3>
|
993
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_add_seconds (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
994
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);</pre>
|
995
|
+
<p>
|
996
|
+
Creates a copy of <em class="parameter"><code>datetime</code></em> and adds the specified number of seconds.
|
997
|
+
</p>
|
998
|
+
<div class="variablelist"><table border="0">
|
999
|
+
<col align="left" valign="top">
|
1000
|
+
<tbody>
|
1001
|
+
<tr>
|
1002
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1003
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1004
|
+
</td>
|
1005
|
+
</tr>
|
1006
|
+
<tr>
|
1007
|
+
<td><p><span class="term"><em class="parameter"><code>seconds</code></em> :</span></p></td>
|
1008
|
+
<td>the number of seconds to add
|
1009
|
+
</td>
|
1010
|
+
</tr>
|
1011
|
+
<tr>
|
1012
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1013
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> which should be freed with
|
1014
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>.
|
1015
|
+
|
1016
|
+
</td>
|
1017
|
+
</tr>
|
1018
|
+
</tbody>
|
1019
|
+
</table></div>
|
1020
|
+
<p class="since">Since 2.26</p>
|
1021
|
+
</div>
|
1022
|
+
<hr>
|
1023
|
+
<div class="refsect2">
|
1024
|
+
<a name="g-date-time-add-full"></a><h3>g_date_time_add_full ()</h3>
|
1025
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_add_full (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
1026
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> years</code></em>,
|
1027
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> months</code></em>,
|
1028
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> days</code></em>,
|
1029
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> hours</code></em>,
|
1030
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> minutes</code></em>,
|
1031
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a> seconds</code></em>);</pre>
|
1032
|
+
<p>
|
1033
|
+
Creates a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> adding the specified values to the current date and
|
1034
|
+
time in <em class="parameter"><code>datetime</code></em>.
|
1035
|
+
</p>
|
1036
|
+
<div class="variablelist"><table border="0">
|
1037
|
+
<col align="left" valign="top">
|
1038
|
+
<tbody>
|
1039
|
+
<tr>
|
1040
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1041
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1042
|
+
</td>
|
1043
|
+
</tr>
|
1044
|
+
<tr>
|
1045
|
+
<td><p><span class="term"><em class="parameter"><code>years</code></em> :</span></p></td>
|
1046
|
+
<td>the number of years to add
|
1047
|
+
</td>
|
1048
|
+
</tr>
|
1049
|
+
<tr>
|
1050
|
+
<td><p><span class="term"><em class="parameter"><code>months</code></em> :</span></p></td>
|
1051
|
+
<td>the number of months to add
|
1052
|
+
</td>
|
1053
|
+
</tr>
|
1054
|
+
<tr>
|
1055
|
+
<td><p><span class="term"><em class="parameter"><code>days</code></em> :</span></p></td>
|
1056
|
+
<td>the number of days to add
|
1057
|
+
</td>
|
1058
|
+
</tr>
|
1059
|
+
<tr>
|
1060
|
+
<td><p><span class="term"><em class="parameter"><code>hours</code></em> :</span></p></td>
|
1061
|
+
<td>the number of hours to add
|
1062
|
+
</td>
|
1063
|
+
</tr>
|
1064
|
+
<tr>
|
1065
|
+
<td><p><span class="term"><em class="parameter"><code>minutes</code></em> :</span></p></td>
|
1066
|
+
<td>the number of minutes to add
|
1067
|
+
</td>
|
1068
|
+
</tr>
|
1069
|
+
<tr>
|
1070
|
+
<td><p><span class="term"><em class="parameter"><code>seconds</code></em> :</span></p></td>
|
1071
|
+
<td>the number of seconds to add
|
1072
|
+
</td>
|
1073
|
+
</tr>
|
1074
|
+
<tr>
|
1075
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1076
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> that should be freed with
|
1077
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>.
|
1078
|
+
|
1079
|
+
</td>
|
1080
|
+
</tr>
|
1081
|
+
</tbody>
|
1082
|
+
</table></div>
|
1083
|
+
<p class="since">Since 2.26</p>
|
1084
|
+
</div>
|
1085
|
+
<hr>
|
1086
|
+
<div class="refsect2">
|
1087
|
+
<a name="g-date-time-compare"></a><h3>g_date_time_compare ()</h3>
|
1088
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_compare (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> dt1</code></em>,
|
1089
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> dt2</code></em>);</pre>
|
1090
|
+
<p>
|
1091
|
+
<span class="type">GCompareFunc-compatible</span> comparison for <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>'s. Both
|
1092
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a><-- -->'s must be non-<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
1093
|
+
</p>
|
1094
|
+
<div class="variablelist"><table border="0">
|
1095
|
+
<col align="left" valign="top">
|
1096
|
+
<tbody>
|
1097
|
+
<tr>
|
1098
|
+
<td><p><span class="term"><em class="parameter"><code>dt1</code></em> :</span></p></td>
|
1099
|
+
<td>first <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> to compare
|
1100
|
+
</td>
|
1101
|
+
</tr>
|
1102
|
+
<tr>
|
1103
|
+
<td><p><span class="term"><em class="parameter"><code>dt2</code></em> :</span></p></td>
|
1104
|
+
<td>second <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> to compare
|
1105
|
+
</td>
|
1106
|
+
</tr>
|
1107
|
+
<tr>
|
1108
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1109
|
+
<td> 0 for equal, less than zero if dt1 is less than dt2, greater
|
1110
|
+
than zero if dt2 is greator than dt1.
|
1111
|
+
|
1112
|
+
</td>
|
1113
|
+
</tr>
|
1114
|
+
</tbody>
|
1115
|
+
</table></div>
|
1116
|
+
<p class="since">Since 2.26</p>
|
1117
|
+
</div>
|
1118
|
+
<hr>
|
1119
|
+
<div class="refsect2">
|
1120
|
+
<a name="g-date-time-difference"></a><h3>g_date_time_difference ()</h3>
|
1121
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GTimeSpan" title="GTimeSpan"><span class="returnvalue">GTimeSpan</span></a> g_date_time_difference (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *end</code></em>,
|
1122
|
+
<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *begin</code></em>);</pre>
|
1123
|
+
<p>
|
1124
|
+
Calculates the difference in time between <em class="parameter"><code>end</code></em> and <em class="parameter"><code>begin</code></em>. The
|
1125
|
+
<a class="link" href="glib-GDateTime.html#GTimeSpan" title="GTimeSpan"><span class="type">GTimeSpan</span></a> that is returned is effectively <em class="parameter"><code>end</code></em> - <em class="parameter"><code>begin</code></em> (ie:
|
1126
|
+
positive if the first simparameter is larger).
|
1127
|
+
</p>
|
1128
|
+
<div class="variablelist"><table border="0">
|
1129
|
+
<col align="left" valign="top">
|
1130
|
+
<tbody>
|
1131
|
+
<tr>
|
1132
|
+
<td><p><span class="term"><em class="parameter"><code>end</code></em> :</span></p></td>
|
1133
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1134
|
+
</td>
|
1135
|
+
</tr>
|
1136
|
+
<tr>
|
1137
|
+
<td><p><span class="term"><em class="parameter"><code>begin</code></em> :</span></p></td>
|
1138
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1139
|
+
</td>
|
1140
|
+
</tr>
|
1141
|
+
<tr>
|
1142
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1143
|
+
<td> the difference between the two <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, as a time
|
1144
|
+
span expressed in microseconds.
|
1145
|
+
|
1146
|
+
</td>
|
1147
|
+
</tr>
|
1148
|
+
</tbody>
|
1149
|
+
</table></div>
|
1150
|
+
<p class="since">Since 2.26</p>
|
1151
|
+
</div>
|
1152
|
+
<hr>
|
1153
|
+
<div class="refsect2">
|
1154
|
+
<a name="g-date-time-hash"></a><h3>g_date_time_hash ()</h3>
|
1155
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_date_time_hash (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> datetime</code></em>);</pre>
|
1156
|
+
<p>
|
1157
|
+
Hashes <em class="parameter"><code>datetime</code></em> into a <a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a>, suitable for use within <a class="link" href="glib-Hash-Tables.html#GHashTable" title="GHashTable"><span class="type">GHashTable</span></a>.
|
1158
|
+
</p>
|
1159
|
+
<div class="variablelist"><table border="0">
|
1160
|
+
<col align="left" valign="top">
|
1161
|
+
<tbody>
|
1162
|
+
<tr>
|
1163
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1164
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1165
|
+
</td>
|
1166
|
+
</tr>
|
1167
|
+
<tr>
|
1168
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1169
|
+
<td> a <a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> containing the hash
|
1170
|
+
|
1171
|
+
</td>
|
1172
|
+
</tr>
|
1173
|
+
</tbody>
|
1174
|
+
</table></div>
|
1175
|
+
<p class="since">Since 2.26</p>
|
1176
|
+
</div>
|
1177
|
+
<hr>
|
1178
|
+
<div class="refsect2">
|
1179
|
+
<a name="g-date-time-equal"></a><h3>g_date_time_equal ()</h3>
|
1180
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_time_equal (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> dt1</code></em>,
|
1181
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> dt2</code></em>);</pre>
|
1182
|
+
<p>
|
1183
|
+
Checks to see if <em class="parameter"><code>dt1</code></em> and <em class="parameter"><code>dt2</code></em> are equal.
|
1184
|
+
</p>
|
1185
|
+
<p>
|
1186
|
+
Equal here means that they represent the same moment after converting
|
1187
|
+
them to the same time zone.
|
1188
|
+
</p>
|
1189
|
+
<div class="variablelist"><table border="0">
|
1190
|
+
<col align="left" valign="top">
|
1191
|
+
<tbody>
|
1192
|
+
<tr>
|
1193
|
+
<td><p><span class="term"><em class="parameter"><code>dt1</code></em> :</span></p></td>
|
1194
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1195
|
+
</td>
|
1196
|
+
</tr>
|
1197
|
+
<tr>
|
1198
|
+
<td><p><span class="term"><em class="parameter"><code>dt2</code></em> :</span></p></td>
|
1199
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1200
|
+
</td>
|
1201
|
+
</tr>
|
1202
|
+
<tr>
|
1203
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1204
|
+
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>dt1</code></em> and <em class="parameter"><code>dt2</code></em> are equal
|
1205
|
+
|
1206
|
+
</td>
|
1207
|
+
</tr>
|
1208
|
+
</tbody>
|
1209
|
+
</table></div>
|
1210
|
+
<p class="since">Since 2.26</p>
|
1211
|
+
</div>
|
1212
|
+
<hr>
|
1213
|
+
<div class="refsect2">
|
1214
|
+
<a name="g-date-time-get-ymd"></a><h3>g_date_time_get_ymd ()</h3>
|
1215
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_time_get_ymd (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
1216
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *year</code></em>,
|
1217
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *month</code></em>,
|
1218
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *day</code></em>);</pre>
|
1219
|
+
<p>
|
1220
|
+
Retrieves the Gregorian day, month, and year of a given <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>.
|
1221
|
+
</p>
|
1222
|
+
<div class="variablelist"><table border="0">
|
1223
|
+
<col align="left" valign="top">
|
1224
|
+
<tbody>
|
1225
|
+
<tr>
|
1226
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1227
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>.
|
1228
|
+
</td>
|
1229
|
+
</tr>
|
1230
|
+
<tr>
|
1231
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
1232
|
+
<td> the return location for the gregorian year, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
1233
|
+
</td>
|
1234
|
+
</tr>
|
1235
|
+
<tr>
|
1236
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
1237
|
+
<td> the return location for the monty of the year, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
1238
|
+
</td>
|
1239
|
+
</tr>
|
1240
|
+
<tr>
|
1241
|
+
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td>
|
1242
|
+
<td> the return location for the day of the month, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
1243
|
+
</td>
|
1244
|
+
</tr>
|
1245
|
+
</tbody>
|
1246
|
+
</table></div>
|
1247
|
+
<p class="since">Since 2.26</p>
|
1248
|
+
</div>
|
1249
|
+
<hr>
|
1250
|
+
<div class="refsect2">
|
1251
|
+
<a name="g-date-time-get-year"></a><h3>g_date_time_get_year ()</h3>
|
1252
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_year (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1253
|
+
<p>
|
1254
|
+
Retrieves the year represented by <em class="parameter"><code>datetime</code></em> in the Gregorian calendar.
|
1255
|
+
</p>
|
1256
|
+
<div class="variablelist"><table border="0">
|
1257
|
+
<col align="left" valign="top">
|
1258
|
+
<tbody>
|
1259
|
+
<tr>
|
1260
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1261
|
+
<td>A <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1262
|
+
</td>
|
1263
|
+
</tr>
|
1264
|
+
<tr>
|
1265
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1266
|
+
<td> the year represented by <em class="parameter"><code>datetime</code></em>
|
1267
|
+
|
1268
|
+
</td>
|
1269
|
+
</tr>
|
1270
|
+
</tbody>
|
1271
|
+
</table></div>
|
1272
|
+
<p class="since">Since 2.26</p>
|
1273
|
+
</div>
|
1274
|
+
<hr>
|
1275
|
+
<div class="refsect2">
|
1276
|
+
<a name="g-date-time-get-month"></a><h3>g_date_time_get_month ()</h3>
|
1277
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_month (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1278
|
+
<p>
|
1279
|
+
Retrieves the month of the year represented by <em class="parameter"><code>datetime</code></em> in the Gregorian
|
1280
|
+
calendar.
|
1281
|
+
</p>
|
1282
|
+
<div class="variablelist"><table border="0">
|
1283
|
+
<col align="left" valign="top">
|
1284
|
+
<tbody>
|
1285
|
+
<tr>
|
1286
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1287
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1288
|
+
</td>
|
1289
|
+
</tr>
|
1290
|
+
<tr>
|
1291
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1292
|
+
<td> the month represented by <em class="parameter"><code>datetime</code></em>
|
1293
|
+
|
1294
|
+
</td>
|
1295
|
+
</tr>
|
1296
|
+
</tbody>
|
1297
|
+
</table></div>
|
1298
|
+
<p class="since">Since 2.26</p>
|
1299
|
+
</div>
|
1300
|
+
<hr>
|
1301
|
+
<div class="refsect2">
|
1302
|
+
<a name="g-date-time-get-day-of-month"></a><h3>g_date_time_get_day_of_month ()</h3>
|
1303
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_day_of_month (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1304
|
+
<p>
|
1305
|
+
Retrieves the day of the month represented by <em class="parameter"><code>datetime</code></em> in the gregorian
|
1306
|
+
calendar.
|
1307
|
+
</p>
|
1308
|
+
<div class="variablelist"><table border="0">
|
1309
|
+
<col align="left" valign="top">
|
1310
|
+
<tbody>
|
1311
|
+
<tr>
|
1312
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1313
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1314
|
+
</td>
|
1315
|
+
</tr>
|
1316
|
+
<tr>
|
1317
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1318
|
+
<td> the day of the month
|
1319
|
+
|
1320
|
+
</td>
|
1321
|
+
</tr>
|
1322
|
+
</tbody>
|
1323
|
+
</table></div>
|
1324
|
+
<p class="since">Since 2.26</p>
|
1325
|
+
</div>
|
1326
|
+
<hr>
|
1327
|
+
<div class="refsect2">
|
1328
|
+
<a name="g-date-time-get-week-numbering-year"></a><h3>g_date_time_get_week_numbering_year ()</h3>
|
1329
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_week_numbering_year (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1330
|
+
<p>
|
1331
|
+
Returns the ISO 8601 week-numbering year in which the week containing
|
1332
|
+
<em class="parameter"><code>datetime</code></em> falls.
|
1333
|
+
</p>
|
1334
|
+
<p>
|
1335
|
+
This function, taken together with <a class="link" href="glib-GDateTime.html#g-date-time-get-week-of-year" title="g_date_time_get_week_of_year ()"><code class="function">g_date_time_get_week_of_year()</code></a> and
|
1336
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-get-day-of-week" title="g_date_time_get_day_of_week ()"><code class="function">g_date_time_get_day_of_week()</code></a> can be used to determine the full ISO
|
1337
|
+
week date on which <em class="parameter"><code>datetime</code></em> falls.
|
1338
|
+
</p>
|
1339
|
+
<p>
|
1340
|
+
This is usually equal to the normal Gregorian year (as returned by
|
1341
|
+
<a class="link" href="glib-GDateTime.html#g-date-time-get-year" title="g_date_time_get_year ()"><code class="function">g_date_time_get_year()</code></a>), except as detailed below:
|
1342
|
+
</p>
|
1343
|
+
<p>
|
1344
|
+
For Thursday, the week-numbering year is always equal to the usual
|
1345
|
+
calendar year. For other days, the number is such that every day
|
1346
|
+
within a complete week (Monday to Sunday) is contained within the
|
1347
|
+
same week-numbering year.
|
1348
|
+
</p>
|
1349
|
+
<p>
|
1350
|
+
For Monday, Tuesday and Wednesday occuring near the end of the year,
|
1351
|
+
this may mean that the week-numbering year is one greater than the
|
1352
|
+
calendar year (so that these days have the same week-numbering year
|
1353
|
+
as the Thursday occuring early in the next year).
|
1354
|
+
</p>
|
1355
|
+
<p>
|
1356
|
+
For Friday, Saturaday and Sunday occuring near the start of the year,
|
1357
|
+
this may mean that the week-numbering year is one less than the
|
1358
|
+
calendar year (so that these days have the same week-numbering year
|
1359
|
+
as the Thursday occuring late in the previous year).
|
1360
|
+
</p>
|
1361
|
+
<p>
|
1362
|
+
An equivalent description is that the week-numbering year is equal to
|
1363
|
+
the calendar year containing the majority of the days in the current
|
1364
|
+
week (Monday to Sunday).
|
1365
|
+
</p>
|
1366
|
+
<p>
|
1367
|
+
Note that January 1 0001 in the proleptic Gregorian calendar is a
|
1368
|
+
Monday, so this function never returns 0.
|
1369
|
+
</p>
|
1370
|
+
<div class="variablelist"><table border="0">
|
1371
|
+
<col align="left" valign="top">
|
1372
|
+
<tbody>
|
1373
|
+
<tr>
|
1374
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1375
|
+
<td>
|
1376
|
+
</td>
|
1377
|
+
</tr>
|
1378
|
+
<tr>
|
1379
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1380
|
+
<td> the ISO 8601 week-numbering year for <em class="parameter"><code>datetime</code></em>
|
1381
|
+
|
1382
|
+
</td>
|
1383
|
+
</tr>
|
1384
|
+
</tbody>
|
1385
|
+
</table></div>
|
1386
|
+
<p class="since">Since 2.26</p>
|
1387
|
+
</div>
|
1388
|
+
<hr>
|
1389
|
+
<div class="refsect2">
|
1390
|
+
<a name="g-date-time-get-week-of-year"></a><h3>g_date_time_get_week_of_year ()</h3>
|
1391
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_week_of_year (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1392
|
+
<p>
|
1393
|
+
Returns the ISO 8601 week number for the week containing <em class="parameter"><code>datetime</code></em>.
|
1394
|
+
The ISO 8601 week number is the same for every day of the week (from
|
1395
|
+
Moday through Sunday). That can produce some unusual results
|
1396
|
+
(described below).
|
1397
|
+
</p>
|
1398
|
+
<p>
|
1399
|
+
The first week of the year is week 1. This is the week that contains
|
1400
|
+
the first Thursday of the year. Equivalently, this is the first week
|
1401
|
+
that has more than 4 of its days falling within the calendar year.
|
1402
|
+
</p>
|
1403
|
+
<p>
|
1404
|
+
The value 0 is never returned by this function. Days contained
|
1405
|
+
within a year but occuring before the first ISO 8601 week of that
|
1406
|
+
year are considered as being contained in the last week of the
|
1407
|
+
previous year. Similarly, the final days of a calendar year may be
|
1408
|
+
considered as being part of the first ISO 8601 week of the next year
|
1409
|
+
if 4 or more days of that week are contained within the new year.
|
1410
|
+
</p>
|
1411
|
+
<div class="variablelist"><table border="0">
|
1412
|
+
<col align="left" valign="top">
|
1413
|
+
<tbody>
|
1414
|
+
<tr>
|
1415
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1416
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1417
|
+
</td>
|
1418
|
+
</tr>
|
1419
|
+
<tr>
|
1420
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1421
|
+
<td> the ISO 8601 week number for <em class="parameter"><code>datetime</code></em>.
|
1422
|
+
|
1423
|
+
</td>
|
1424
|
+
</tr>
|
1425
|
+
</tbody>
|
1426
|
+
</table></div>
|
1427
|
+
<p class="since">Since 2.26</p>
|
1428
|
+
</div>
|
1429
|
+
<hr>
|
1430
|
+
<div class="refsect2">
|
1431
|
+
<a name="g-date-time-get-day-of-week"></a><h3>g_date_time_get_day_of_week ()</h3>
|
1432
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_day_of_week (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1433
|
+
<p>
|
1434
|
+
Retrieves the ISO 8601 day of the week on which <em class="parameter"><code>datetime</code></em> falls (1 is
|
1435
|
+
Monday, 2 is Tuesday... 7 is Sunday).
|
1436
|
+
</p>
|
1437
|
+
<div class="variablelist"><table border="0">
|
1438
|
+
<col align="left" valign="top">
|
1439
|
+
<tbody>
|
1440
|
+
<tr>
|
1441
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1442
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1443
|
+
</td>
|
1444
|
+
</tr>
|
1445
|
+
<tr>
|
1446
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1447
|
+
<td> the day of the week
|
1448
|
+
|
1449
|
+
</td>
|
1450
|
+
</tr>
|
1451
|
+
</tbody>
|
1452
|
+
</table></div>
|
1453
|
+
<p class="since">Since 2.26</p>
|
1454
|
+
</div>
|
1455
|
+
<hr>
|
1456
|
+
<div class="refsect2">
|
1457
|
+
<a name="g-date-time-get-day-of-year"></a><h3>g_date_time_get_day_of_year ()</h3>
|
1458
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_day_of_year (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1459
|
+
<p>
|
1460
|
+
Retrieves the day of the year represented by <em class="parameter"><code>datetime</code></em> in the Gregorian
|
1461
|
+
calendar.
|
1462
|
+
</p>
|
1463
|
+
<div class="variablelist"><table border="0">
|
1464
|
+
<col align="left" valign="top">
|
1465
|
+
<tbody>
|
1466
|
+
<tr>
|
1467
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1468
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1469
|
+
</td>
|
1470
|
+
</tr>
|
1471
|
+
<tr>
|
1472
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1473
|
+
<td> the day of the year
|
1474
|
+
|
1475
|
+
</td>
|
1476
|
+
</tr>
|
1477
|
+
</tbody>
|
1478
|
+
</table></div>
|
1479
|
+
<p class="since">Since 2.26</p>
|
1480
|
+
</div>
|
1481
|
+
<hr>
|
1482
|
+
<div class="refsect2">
|
1483
|
+
<a name="g-date-time-get-hour"></a><h3>g_date_time_get_hour ()</h3>
|
1484
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_hour (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1485
|
+
<p>
|
1486
|
+
Retrieves the hour of the day represented by <em class="parameter"><code>datetime</code></em>
|
1487
|
+
</p>
|
1488
|
+
<div class="variablelist"><table border="0">
|
1489
|
+
<col align="left" valign="top">
|
1490
|
+
<tbody>
|
1491
|
+
<tr>
|
1492
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1493
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1494
|
+
</td>
|
1495
|
+
</tr>
|
1496
|
+
<tr>
|
1497
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1498
|
+
<td> the hour of the day
|
1499
|
+
|
1500
|
+
</td>
|
1501
|
+
</tr>
|
1502
|
+
</tbody>
|
1503
|
+
</table></div>
|
1504
|
+
<p class="since">Since 2.26</p>
|
1505
|
+
</div>
|
1506
|
+
<hr>
|
1507
|
+
<div class="refsect2">
|
1508
|
+
<a name="g-date-time-get-minute"></a><h3>g_date_time_get_minute ()</h3>
|
1509
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_minute (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1510
|
+
<p>
|
1511
|
+
Retrieves the minute of the hour represented by <em class="parameter"><code>datetime</code></em>
|
1512
|
+
</p>
|
1513
|
+
<div class="variablelist"><table border="0">
|
1514
|
+
<col align="left" valign="top">
|
1515
|
+
<tbody>
|
1516
|
+
<tr>
|
1517
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1518
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1519
|
+
</td>
|
1520
|
+
</tr>
|
1521
|
+
<tr>
|
1522
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1523
|
+
<td> the minute of the hour
|
1524
|
+
|
1525
|
+
</td>
|
1526
|
+
</tr>
|
1527
|
+
</tbody>
|
1528
|
+
</table></div>
|
1529
|
+
<p class="since">Since 2.26</p>
|
1530
|
+
</div>
|
1531
|
+
<hr>
|
1532
|
+
<div class="refsect2">
|
1533
|
+
<a name="g-date-time-get-second"></a><h3>g_date_time_get_second ()</h3>
|
1534
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_second (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1535
|
+
<p>
|
1536
|
+
Retrieves the second of the minute represented by <em class="parameter"><code>datetime</code></em>
|
1537
|
+
</p>
|
1538
|
+
<div class="variablelist"><table border="0">
|
1539
|
+
<col align="left" valign="top">
|
1540
|
+
<tbody>
|
1541
|
+
<tr>
|
1542
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1543
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1544
|
+
</td>
|
1545
|
+
</tr>
|
1546
|
+
<tr>
|
1547
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1548
|
+
<td> the second represented by <em class="parameter"><code>datetime</code></em>
|
1549
|
+
|
1550
|
+
</td>
|
1551
|
+
</tr>
|
1552
|
+
</tbody>
|
1553
|
+
</table></div>
|
1554
|
+
<p class="since">Since 2.26</p>
|
1555
|
+
</div>
|
1556
|
+
<hr>
|
1557
|
+
<div class="refsect2">
|
1558
|
+
<a name="g-date-time-get-microsecond"></a><h3>g_date_time_get_microsecond ()</h3>
|
1559
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_time_get_microsecond (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1560
|
+
<p>
|
1561
|
+
Retrieves the microsecond of the date represented by <em class="parameter"><code>datetime</code></em>
|
1562
|
+
</p>
|
1563
|
+
<div class="variablelist"><table border="0">
|
1564
|
+
<col align="left" valign="top">
|
1565
|
+
<tbody>
|
1566
|
+
<tr>
|
1567
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1568
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1569
|
+
</td>
|
1570
|
+
</tr>
|
1571
|
+
<tr>
|
1572
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1573
|
+
<td> the microsecond of the second
|
1574
|
+
|
1575
|
+
</td>
|
1576
|
+
</tr>
|
1577
|
+
</tbody>
|
1578
|
+
</table></div>
|
1579
|
+
<p class="since">Since 2.26</p>
|
1580
|
+
</div>
|
1581
|
+
<hr>
|
1582
|
+
<div class="refsect2">
|
1583
|
+
<a name="g-date-time-get-seconds"></a><h3>g_date_time_get_seconds ()</h3>
|
1584
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="returnvalue">gdouble</span></a> g_date_time_get_seconds (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1585
|
+
<p>
|
1586
|
+
Retrieves the number of seconds since the start of the last minute,
|
1587
|
+
including the fractional part.
|
1588
|
+
</p>
|
1589
|
+
<div class="variablelist"><table border="0">
|
1590
|
+
<col align="left" valign="top">
|
1591
|
+
<tbody>
|
1592
|
+
<tr>
|
1593
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1594
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1595
|
+
</td>
|
1596
|
+
</tr>
|
1597
|
+
<tr>
|
1598
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1599
|
+
<td> the number of seconds
|
1600
|
+
|
1601
|
+
</td>
|
1602
|
+
</tr>
|
1603
|
+
</tbody>
|
1604
|
+
</table></div>
|
1605
|
+
<p class="since">Since 2.26</p>
|
1606
|
+
</div>
|
1607
|
+
<hr>
|
1608
|
+
<div class="refsect2">
|
1609
|
+
<a name="g-date-time-to-unix"></a><h3>g_date_time_to_unix ()</h3>
|
1610
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="returnvalue">gint64</span></a> g_date_time_to_unix (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1611
|
+
<p>
|
1612
|
+
Gives the Unix time corresponding to <em class="parameter"><code>datetime</code></em>, rounding down to the
|
1613
|
+
nearest second.
|
1614
|
+
</p>
|
1615
|
+
<p>
|
1616
|
+
Unix time is the number of seconds that have elapsed since 1970-01-01
|
1617
|
+
00:00:00 UTC, regardless of the time zone associated with <em class="parameter"><code>datetime</code></em>.
|
1618
|
+
</p>
|
1619
|
+
<div class="variablelist"><table border="0">
|
1620
|
+
<col align="left" valign="top">
|
1621
|
+
<tbody>
|
1622
|
+
<tr>
|
1623
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1624
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1625
|
+
</td>
|
1626
|
+
</tr>
|
1627
|
+
<tr>
|
1628
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1629
|
+
<td> the Unix time corresponding to <em class="parameter"><code>datetime</code></em>
|
1630
|
+
|
1631
|
+
</td>
|
1632
|
+
</tr>
|
1633
|
+
</tbody>
|
1634
|
+
</table></div>
|
1635
|
+
<p class="since">Since 2.26</p>
|
1636
|
+
</div>
|
1637
|
+
<hr>
|
1638
|
+
<div class="refsect2">
|
1639
|
+
<a name="g-date-time-to-timeval"></a><h3>g_date_time_to_timeval ()</h3>
|
1640
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_time_to_timeval (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
1641
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *tv</code></em>);</pre>
|
1642
|
+
<p>
|
1643
|
+
Stores the instant in time that <em class="parameter"><code>datetime</code></em> represents into <em class="parameter"><code>tv</code></em>.
|
1644
|
+
</p>
|
1645
|
+
<p>
|
1646
|
+
The time contained in a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> is always stored in the form of
|
1647
|
+
seconds elapsed since 1970-01-01 00:00:00 UTC, regardless of the time
|
1648
|
+
zone associated with <em class="parameter"><code>datetime</code></em>.
|
1649
|
+
</p>
|
1650
|
+
<p>
|
1651
|
+
On systems where 'long' is 32bit (ie: all 32bit systems and all
|
1652
|
+
Windows systems), a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> is incapable of storing the entire
|
1653
|
+
range of values that <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> is capable of expressing. On those
|
1654
|
+
systems, this function returns <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> to indicate that the time is
|
1655
|
+
out of range.
|
1656
|
+
</p>
|
1657
|
+
<p>
|
1658
|
+
On systems where 'long' is 64bit, this function never fails.
|
1659
|
+
</p>
|
1660
|
+
<div class="variablelist"><table border="0">
|
1661
|
+
<col align="left" valign="top">
|
1662
|
+
<tbody>
|
1663
|
+
<tr>
|
1664
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1665
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1666
|
+
</td>
|
1667
|
+
</tr>
|
1668
|
+
<tr>
|
1669
|
+
<td><p><span class="term"><em class="parameter"><code>tv</code></em> :</span></p></td>
|
1670
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> to modify
|
1671
|
+
</td>
|
1672
|
+
</tr>
|
1673
|
+
<tr>
|
1674
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1675
|
+
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if successful, else <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a>
|
1676
|
+
|
1677
|
+
</td>
|
1678
|
+
</tr>
|
1679
|
+
</tbody>
|
1680
|
+
</table></div>
|
1681
|
+
<p class="since">Since 2.26</p>
|
1682
|
+
</div>
|
1683
|
+
<hr>
|
1684
|
+
<div class="refsect2">
|
1685
|
+
<a name="g-date-time-get-utc-offset"></a><h3>g_date_time_get_utc_offset ()</h3>
|
1686
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GTimeSpan" title="GTimeSpan"><span class="returnvalue">GTimeSpan</span></a> g_date_time_get_utc_offset (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1687
|
+
<p>
|
1688
|
+
Determines the offset to UTC in effect at the time and in the time
|
1689
|
+
zone of <em class="parameter"><code>datetime</code></em>.
|
1690
|
+
</p>
|
1691
|
+
<p>
|
1692
|
+
The offset is the number of microseconds that you add to UTC time to
|
1693
|
+
arrive at local time for the time zone (ie: negative numbers for time
|
1694
|
+
zones west of GMT, positive numbers for east).
|
1695
|
+
</p>
|
1696
|
+
<p>
|
1697
|
+
If <em class="parameter"><code>datetime</code></em> represents UTC time, then the offset is always zero.
|
1698
|
+
</p>
|
1699
|
+
<div class="variablelist"><table border="0">
|
1700
|
+
<col align="left" valign="top">
|
1701
|
+
<tbody>
|
1702
|
+
<tr>
|
1703
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1704
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1705
|
+
</td>
|
1706
|
+
</tr>
|
1707
|
+
<tr>
|
1708
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1709
|
+
<td> the number of microseconds that should be added to UTC to
|
1710
|
+
get the local time
|
1711
|
+
|
1712
|
+
</td>
|
1713
|
+
</tr>
|
1714
|
+
</tbody>
|
1715
|
+
</table></div>
|
1716
|
+
<p class="since">Since 2.26</p>
|
1717
|
+
</div>
|
1718
|
+
<hr>
|
1719
|
+
<div class="refsect2">
|
1720
|
+
<a name="g-date-time-get-timezone-abbreviation"></a><h3>g_date_time_get_timezone_abbreviation ()</h3>
|
1721
|
+
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_date_time_get_timezone_abbreviation
|
1722
|
+
(<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1723
|
+
<p>
|
1724
|
+
Determines the time zone abbreviation to be used at the time and in
|
1725
|
+
the time zone of <em class="parameter"><code>datetime</code></em>.
|
1726
|
+
</p>
|
1727
|
+
<p>
|
1728
|
+
For example, in Toronto this is currently "EST" during the winter
|
1729
|
+
months and "EDT" during the summer months when daylight savings
|
1730
|
+
time is in effect.
|
1731
|
+
</p>
|
1732
|
+
<div class="variablelist"><table border="0">
|
1733
|
+
<col align="left" valign="top">
|
1734
|
+
<tbody>
|
1735
|
+
<tr>
|
1736
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1737
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1738
|
+
</td>
|
1739
|
+
</tr>
|
1740
|
+
<tr>
|
1741
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1742
|
+
<td> the time zone abbreviation. The returned
|
1743
|
+
string is owned by the <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> and it should not be
|
1744
|
+
modified or freed. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
1745
|
+
</td>
|
1746
|
+
</tr>
|
1747
|
+
</tbody>
|
1748
|
+
</table></div>
|
1749
|
+
<p class="since">Since 2.26</p>
|
1750
|
+
</div>
|
1751
|
+
<hr>
|
1752
|
+
<div class="refsect2">
|
1753
|
+
<a name="g-date-time-is-daylight-savings"></a><h3>g_date_time_is_daylight_savings ()</h3>
|
1754
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_time_is_daylight_savings (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1755
|
+
<p>
|
1756
|
+
Determines if daylight savings time is in effect at the time and in
|
1757
|
+
the time zone of <em class="parameter"><code>datetime</code></em>.
|
1758
|
+
</p>
|
1759
|
+
<div class="variablelist"><table border="0">
|
1760
|
+
<col align="left" valign="top">
|
1761
|
+
<tbody>
|
1762
|
+
<tr>
|
1763
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1764
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1765
|
+
</td>
|
1766
|
+
</tr>
|
1767
|
+
<tr>
|
1768
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1769
|
+
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if daylight savings time is in effect
|
1770
|
+
|
1771
|
+
</td>
|
1772
|
+
</tr>
|
1773
|
+
</tbody>
|
1774
|
+
</table></div>
|
1775
|
+
<p class="since">Since 2.26</p>
|
1776
|
+
</div>
|
1777
|
+
<hr>
|
1778
|
+
<div class="refsect2">
|
1779
|
+
<a name="g-date-time-to-timezone"></a><h3>g_date_time_to_timezone ()</h3>
|
1780
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_to_timezone (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
1781
|
+
<em class="parameter"><code><a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a> *tz</code></em>);</pre>
|
1782
|
+
<p>
|
1783
|
+
Create a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the same instant in time as
|
1784
|
+
<em class="parameter"><code>datetime</code></em>, but in the time zone <em class="parameter"><code>tz</code></em>.
|
1785
|
+
</p>
|
1786
|
+
<p>
|
1787
|
+
This call can fail in the case that the time goes out of bounds. For
|
1788
|
+
example, converting 0001-01-01 00:00:00 UTC to a time zone west of
|
1789
|
+
Greenwich will fail (due to the year 0 being out of range).
|
1790
|
+
</p>
|
1791
|
+
<p>
|
1792
|
+
You should release the return value by calling <a class="link" href="glib-GDateTime.html#g-date-time-unref" title="g_date_time_unref ()"><code class="function">g_date_time_unref()</code></a>
|
1793
|
+
when you are done with it.
|
1794
|
+
</p>
|
1795
|
+
<div class="variablelist"><table border="0">
|
1796
|
+
<col align="left" valign="top">
|
1797
|
+
<tbody>
|
1798
|
+
<tr>
|
1799
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1800
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1801
|
+
</td>
|
1802
|
+
</tr>
|
1803
|
+
<tr>
|
1804
|
+
<td><p><span class="term"><em class="parameter"><code>tz</code></em> :</span></p></td>
|
1805
|
+
<td>the new <a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a>
|
1806
|
+
</td>
|
1807
|
+
</tr>
|
1808
|
+
<tr>
|
1809
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1810
|
+
<td> a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1811
|
+
|
1812
|
+
</td>
|
1813
|
+
</tr>
|
1814
|
+
</tbody>
|
1815
|
+
</table></div>
|
1816
|
+
<p class="since">Since 2.26</p>
|
1817
|
+
</div>
|
1818
|
+
<hr>
|
1819
|
+
<div class="refsect2">
|
1820
|
+
<a name="g-date-time-to-local"></a><h3>g_date_time_to_local ()</h3>
|
1821
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_to_local (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1822
|
+
<p>
|
1823
|
+
Creates a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the same instant in time as
|
1824
|
+
<em class="parameter"><code>datetime</code></em>, but in the local time zone.
|
1825
|
+
</p>
|
1826
|
+
<p>
|
1827
|
+
This call is equivalent to calling <a class="link" href="glib-GDateTime.html#g-date-time-to-timezone" title="g_date_time_to_timezone ()"><code class="function">g_date_time_to_timezone()</code></a> with the
|
1828
|
+
time zone returned by <a class="link" href="glib-GTimeZone.html#g-time-zone-new-local" title="g_time_zone_new_local ()"><code class="function">g_time_zone_new_local()</code></a>.
|
1829
|
+
</p>
|
1830
|
+
<div class="variablelist"><table border="0">
|
1831
|
+
<col align="left" valign="top">
|
1832
|
+
<tbody>
|
1833
|
+
<tr>
|
1834
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1835
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1836
|
+
</td>
|
1837
|
+
</tr>
|
1838
|
+
<tr>
|
1839
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1840
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1841
|
+
|
1842
|
+
</td>
|
1843
|
+
</tr>
|
1844
|
+
</tbody>
|
1845
|
+
</table></div>
|
1846
|
+
<p class="since">Since 2.26</p>
|
1847
|
+
</div>
|
1848
|
+
<hr>
|
1849
|
+
<div class="refsect2">
|
1850
|
+
<a name="g-date-time-to-utc"></a><h3>g_date_time_to_utc ()</h3>
|
1851
|
+
<pre class="programlisting"><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="returnvalue">GDateTime</span></a> * g_date_time_to_utc (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>);</pre>
|
1852
|
+
<p>
|
1853
|
+
Creates a new <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> corresponding to the same instant in time as
|
1854
|
+
<em class="parameter"><code>datetime</code></em>, but in UTC.
|
1855
|
+
</p>
|
1856
|
+
<p>
|
1857
|
+
This call is equivalent to calling <a class="link" href="glib-GDateTime.html#g-date-time-to-timezone" title="g_date_time_to_timezone ()"><code class="function">g_date_time_to_timezone()</code></a> with the
|
1858
|
+
time zone returned by <a class="link" href="glib-GTimeZone.html#g-time-zone-new-utc" title="g_time_zone_new_utc ()"><code class="function">g_time_zone_new_utc()</code></a>.
|
1859
|
+
</p>
|
1860
|
+
<div class="variablelist"><table border="0">
|
1861
|
+
<col align="left" valign="top">
|
1862
|
+
<tbody>
|
1863
|
+
<tr>
|
1864
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
1865
|
+
<td>a <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1866
|
+
</td>
|
1867
|
+
</tr>
|
1868
|
+
<tr>
|
1869
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1870
|
+
<td> the newly created <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
1871
|
+
|
1872
|
+
</td>
|
1873
|
+
</tr>
|
1874
|
+
</tbody>
|
1875
|
+
</table></div>
|
1876
|
+
<p class="since">Since 2.26</p>
|
1877
|
+
</div>
|
1878
|
+
<hr>
|
1879
|
+
<div class="refsect2">
|
1880
|
+
<a name="g-date-time-format"></a><h3>g_date_time_format ()</h3>
|
1881
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_date_time_format (<em class="parameter"><code><a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a> *datetime</code></em>,
|
1882
|
+
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *format</code></em>);</pre>
|
1883
|
+
<p>
|
1884
|
+
Creates a newly allocated string representing the requested <em class="parameter"><code>format</code></em>.
|
1885
|
+
</p>
|
1886
|
+
<p>
|
1887
|
+
The following format specifiers are supported:
|
1888
|
+
</p>
|
1889
|
+
<p>
|
1890
|
+
</p>
|
1891
|
+
<div class="variablelist"><table border="0">
|
1892
|
+
<col align="left" valign="top">
|
1893
|
+
<tbody>
|
1894
|
+
<tr>
|
1895
|
+
<td><p><span class="term">
|
1896
|
+
<code class="literal">%<code class="literal">a</code></code>:
|
1897
|
+
</span></p></td>
|
1898
|
+
<td>
|
1899
|
+
the abbreviated weekday name according to the current locale
|
1900
|
+
</td>
|
1901
|
+
</tr>
|
1902
|
+
<tr>
|
1903
|
+
<td><p><span class="term">
|
1904
|
+
<code class="literal">%<code class="literal">A</code></code>:
|
1905
|
+
</span></p></td>
|
1906
|
+
<td>
|
1907
|
+
the full weekday name according to the current locale
|
1908
|
+
</td>
|
1909
|
+
</tr>
|
1910
|
+
<tr>
|
1911
|
+
<td><p><span class="term">
|
1912
|
+
<code class="literal">%<code class="literal">b</code></code>:
|
1913
|
+
</span></p></td>
|
1914
|
+
<td>
|
1915
|
+
the abbreviated month name according to the current locale
|
1916
|
+
</td>
|
1917
|
+
</tr>
|
1918
|
+
<tr>
|
1919
|
+
<td><p><span class="term">
|
1920
|
+
<code class="literal">%<code class="literal">B</code></code>:
|
1921
|
+
</span></p></td>
|
1922
|
+
<td>
|
1923
|
+
the full month name according to the current locale
|
1924
|
+
</td>
|
1925
|
+
</tr>
|
1926
|
+
<tr>
|
1927
|
+
<td><p><span class="term">
|
1928
|
+
<code class="literal">%<code class="literal">d</code></code>:
|
1929
|
+
</span></p></td>
|
1930
|
+
<td>
|
1931
|
+
the day of the month as a decimal number (range 01 to 31)
|
1932
|
+
</td>
|
1933
|
+
</tr>
|
1934
|
+
<tr>
|
1935
|
+
<td><p><span class="term">
|
1936
|
+
<code class="literal">%<code class="literal">e</code></code>:
|
1937
|
+
</span></p></td>
|
1938
|
+
<td>
|
1939
|
+
the day of the month as a decimal number (range 1 to 31)
|
1940
|
+
</td>
|
1941
|
+
</tr>
|
1942
|
+
<tr>
|
1943
|
+
<td><p><span class="term">
|
1944
|
+
<code class="literal">%<code class="literal">F</code></code>:
|
1945
|
+
</span></p></td>
|
1946
|
+
<td>
|
1947
|
+
equivalent to <code class="literal">%<code class="literal">Y</code>-%<code class="literal">m</code>-%<code class="literal">d</code></code> (the ISO 8601 date
|
1948
|
+
format)
|
1949
|
+
</td>
|
1950
|
+
</tr>
|
1951
|
+
<tr>
|
1952
|
+
<td><p><span class="term">
|
1953
|
+
<code class="literal">%<code class="literal">h</code></code>:
|
1954
|
+
</span></p></td>
|
1955
|
+
<td>
|
1956
|
+
equivalent to <code class="literal">%<code class="literal">b</code></code>
|
1957
|
+
</td>
|
1958
|
+
</tr>
|
1959
|
+
<tr>
|
1960
|
+
<td><p><span class="term">
|
1961
|
+
<code class="literal">%<code class="literal">H</code></code>:
|
1962
|
+
</span></p></td>
|
1963
|
+
<td>
|
1964
|
+
the hour as a decimal number using a 24-hour clock (range 00 to
|
1965
|
+
23)
|
1966
|
+
</td>
|
1967
|
+
</tr>
|
1968
|
+
<tr>
|
1969
|
+
<td><p><span class="term">
|
1970
|
+
<code class="literal">%<code class="literal">I</code></code>:
|
1971
|
+
</span></p></td>
|
1972
|
+
<td>
|
1973
|
+
the hour as a decimal number using a 12-hour clock (range 01 to
|
1974
|
+
12)
|
1975
|
+
</td>
|
1976
|
+
</tr>
|
1977
|
+
<tr>
|
1978
|
+
<td><p><span class="term">
|
1979
|
+
<code class="literal">%<code class="literal">j</code></code>:
|
1980
|
+
</span></p></td>
|
1981
|
+
<td>
|
1982
|
+
the day of the year as a decimal number (range 001 to 366)
|
1983
|
+
</td>
|
1984
|
+
</tr>
|
1985
|
+
<tr>
|
1986
|
+
<td><p><span class="term">
|
1987
|
+
<code class="literal">%<code class="literal">k</code></code>:
|
1988
|
+
</span></p></td>
|
1989
|
+
<td>
|
1990
|
+
the hour (24-hour clock) as a decimal number (range 0 to 23);
|
1991
|
+
single digits are preceded by a blank
|
1992
|
+
</td>
|
1993
|
+
</tr>
|
1994
|
+
<tr>
|
1995
|
+
<td><p><span class="term">
|
1996
|
+
<code class="literal">%<code class="literal">l</code></code>:
|
1997
|
+
</span></p></td>
|
1998
|
+
<td>
|
1999
|
+
the hour (12-hour clock) as a decimal number (range 1 to 12);
|
2000
|
+
single digits are preceded by a blank
|
2001
|
+
</td>
|
2002
|
+
</tr>
|
2003
|
+
<tr>
|
2004
|
+
<td><p><span class="term">
|
2005
|
+
<code class="literal">%<code class="literal">m</code></code>:
|
2006
|
+
</span></p></td>
|
2007
|
+
<td>
|
2008
|
+
the month as a decimal number (range 01 to 12)
|
2009
|
+
</td>
|
2010
|
+
</tr>
|
2011
|
+
<tr>
|
2012
|
+
<td><p><span class="term">
|
2013
|
+
<code class="literal">%<code class="literal">M</code></code>:
|
2014
|
+
</span></p></td>
|
2015
|
+
<td>
|
2016
|
+
the minute as a decimal number (range 00 to 59)
|
2017
|
+
</td>
|
2018
|
+
</tr>
|
2019
|
+
<tr>
|
2020
|
+
<td><p><span class="term">
|
2021
|
+
<code class="literal">%<code class="literal">N</code></code>:
|
2022
|
+
</span></p></td>
|
2023
|
+
<td>
|
2024
|
+
the micro-seconds as a decimal number
|
2025
|
+
</td>
|
2026
|
+
</tr>
|
2027
|
+
<tr>
|
2028
|
+
<td><p><span class="term">
|
2029
|
+
<code class="literal">%<code class="literal">p</code></code>:
|
2030
|
+
</span></p></td>
|
2031
|
+
<td>
|
2032
|
+
either "AM" or "PM" according to the given time value, or the
|
2033
|
+
corresponding strings for the current locale. Noon is treated as
|
2034
|
+
"PM" and midnight as "AM".
|
2035
|
+
</td>
|
2036
|
+
</tr>
|
2037
|
+
<tr>
|
2038
|
+
<td><p><span class="term">
|
2039
|
+
<code class="literal">%<code class="literal">P</code></code>:
|
2040
|
+
</span></p></td>
|
2041
|
+
<td>
|
2042
|
+
like %<code class="literal">p</code> but lowercase: "am" or "pm" or a corresponding string for
|
2043
|
+
the current locale
|
2044
|
+
</td>
|
2045
|
+
</tr>
|
2046
|
+
<tr>
|
2047
|
+
<td><p><span class="term">
|
2048
|
+
<code class="literal">%<code class="literal">r</code></code>:
|
2049
|
+
</span></p></td>
|
2050
|
+
<td>
|
2051
|
+
the time in a.m. or p.m. notation
|
2052
|
+
</td>
|
2053
|
+
</tr>
|
2054
|
+
<tr>
|
2055
|
+
<td><p><span class="term">
|
2056
|
+
<code class="literal">%<code class="literal">R</code></code>:
|
2057
|
+
</span></p></td>
|
2058
|
+
<td>
|
2059
|
+
the time in 24-hour notation (<code class="literal">%<code class="literal">H</code>:%<code class="literal">M</code></code>)
|
2060
|
+
</td>
|
2061
|
+
</tr>
|
2062
|
+
<tr>
|
2063
|
+
<td><p><span class="term">
|
2064
|
+
<code class="literal">%<code class="literal">s</code></code>:
|
2065
|
+
</span></p></td>
|
2066
|
+
<td>
|
2067
|
+
the number of seconds since the Epoch, that is, since 1970-01-01
|
2068
|
+
00:00:00 UTC
|
2069
|
+
</td>
|
2070
|
+
</tr>
|
2071
|
+
<tr>
|
2072
|
+
<td><p><span class="term">
|
2073
|
+
<code class="literal">%<code class="literal">S</code></code>:
|
2074
|
+
</span></p></td>
|
2075
|
+
<td>
|
2076
|
+
the second as a decimal number (range 00 to 60)
|
2077
|
+
</td>
|
2078
|
+
</tr>
|
2079
|
+
<tr>
|
2080
|
+
<td><p><span class="term">
|
2081
|
+
<code class="literal">%<code class="literal">t</code></code>:
|
2082
|
+
</span></p></td>
|
2083
|
+
<td>
|
2084
|
+
a tab character
|
2085
|
+
</td>
|
2086
|
+
</tr>
|
2087
|
+
<tr>
|
2088
|
+
<td><p><span class="term">
|
2089
|
+
<code class="literal">%<code class="literal">u</code></code>:
|
2090
|
+
</span></p></td>
|
2091
|
+
<td>
|
2092
|
+
the day of the week as a decimal, range 1 to 7, Monday being 1
|
2093
|
+
</td>
|
2094
|
+
</tr>
|
2095
|
+
<tr>
|
2096
|
+
<td><p><span class="term">
|
2097
|
+
<code class="literal">%<code class="literal">W</code></code>:
|
2098
|
+
</span></p></td>
|
2099
|
+
<td>
|
2100
|
+
the week number of the current year as a decimal number
|
2101
|
+
</td>
|
2102
|
+
</tr>
|
2103
|
+
<tr>
|
2104
|
+
<td><p><span class="term">
|
2105
|
+
<code class="literal">%<code class="literal">x</code></code>:
|
2106
|
+
</span></p></td>
|
2107
|
+
<td>
|
2108
|
+
the preferred date representation for the current locale without
|
2109
|
+
the time
|
2110
|
+
</td>
|
2111
|
+
</tr>
|
2112
|
+
<tr>
|
2113
|
+
<td><p><span class="term">
|
2114
|
+
<code class="literal">%<code class="literal">X</code></code>:
|
2115
|
+
</span></p></td>
|
2116
|
+
<td>
|
2117
|
+
the preferred time representation for the current locale without
|
2118
|
+
the date
|
2119
|
+
</td>
|
2120
|
+
</tr>
|
2121
|
+
<tr>
|
2122
|
+
<td><p><span class="term">
|
2123
|
+
<code class="literal">%<code class="literal">y</code></code>:
|
2124
|
+
</span></p></td>
|
2125
|
+
<td>
|
2126
|
+
the year as a decimal number without the century
|
2127
|
+
</td>
|
2128
|
+
</tr>
|
2129
|
+
<tr>
|
2130
|
+
<td><p><span class="term">
|
2131
|
+
<code class="literal">%<code class="literal">Y</code></code>:
|
2132
|
+
</span></p></td>
|
2133
|
+
<td>
|
2134
|
+
the year as a decimal number including the century
|
2135
|
+
</td>
|
2136
|
+
</tr>
|
2137
|
+
<tr>
|
2138
|
+
<td><p><span class="term">
|
2139
|
+
<code class="literal">%<code class="literal">z</code></code>:
|
2140
|
+
</span></p></td>
|
2141
|
+
<td>
|
2142
|
+
the time-zone as hour offset from UTC
|
2143
|
+
</td>
|
2144
|
+
</tr>
|
2145
|
+
<tr>
|
2146
|
+
<td><p><span class="term">
|
2147
|
+
<code class="literal">%<code class="literal">Z</code></code>:
|
2148
|
+
</span></p></td>
|
2149
|
+
<td>
|
2150
|
+
the time zone or name or abbreviation
|
2151
|
+
</td>
|
2152
|
+
</tr>
|
2153
|
+
<tr>
|
2154
|
+
<td><p><span class="term">
|
2155
|
+
<code class="literal">%%%</code>:
|
2156
|
+
</span></p></td>
|
2157
|
+
<td>
|
2158
|
+
a literal <code class="literal">%%</code> character
|
2159
|
+
</td>
|
2160
|
+
</tr>
|
2161
|
+
</tbody>
|
2162
|
+
</table></div>
|
2163
|
+
<p>
|
2164
|
+
</p>
|
2165
|
+
<div class="variablelist"><table border="0">
|
2166
|
+
<col align="left" valign="top">
|
2167
|
+
<tbody>
|
2168
|
+
<tr>
|
2169
|
+
<td><p><span class="term"><em class="parameter"><code>datetime</code></em> :</span></p></td>
|
2170
|
+
<td>A <a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
2171
|
+
</td>
|
2172
|
+
</tr>
|
2173
|
+
<tr>
|
2174
|
+
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
|
2175
|
+
<td>a valid UTF-8 string, containing the format for the
|
2176
|
+
<a class="link" href="glib-GDateTime.html#GDateTime" title="GDateTime"><span class="type">GDateTime</span></a>
|
2177
|
+
</td>
|
2178
|
+
</tr>
|
2179
|
+
<tr>
|
2180
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2181
|
+
<td> a newly allocated string formatted to the requested format
|
2182
|
+
or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> in the case that there was an error. The string
|
2183
|
+
should be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.
|
2184
|
+
|
2185
|
+
</td>
|
2186
|
+
</tr>
|
2187
|
+
</tbody>
|
2188
|
+
</table></div>
|
2189
|
+
<p class="since">Since 2.26</p>
|
2190
|
+
</div>
|
2191
|
+
</div>
|
2192
|
+
<div class="refsect1">
|
2193
|
+
<a name="glib-GDateTime.see-also"></a><h2>See Also</h2>
|
2194
|
+
<a class="link" href="glib-GTimeZone.html#GTimeZone" title="GTimeZone"><span class="type">GTimeZone</span></a>
|
2195
|
+
</div>
|
2196
|
+
</div>
|
2197
|
+
<div class="footer">
|
2198
|
+
<hr>
|
2199
|
+
Generated by GTK-Doc V1.15.1</div>
|
2200
|
+
</body>
|
2201
|
+
</html>
|