glib2 0.90.2-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +3115 -0
- data/README +40 -0
- data/Rakefile +69 -0
- data/ext/glib2/depend +10 -0
- data/ext/glib2/extconf.rb +61 -0
- data/ext/glib2/glib2.def +89 -0
- data/ext/glib2/rbgcompat.h +30 -0
- data/ext/glib2/rbglib.c +330 -0
- data/ext/glib2/rbglib.h +96 -0
- data/ext/glib2/rbglib_bookmarkfile.c +595 -0
- data/ext/glib2/rbglib_completion.c +192 -0
- data/ext/glib2/rbglib_convert.c +195 -0
- data/ext/glib2/rbglib_error.c +95 -0
- data/ext/glib2/rbglib_fileutils.c +83 -0
- data/ext/glib2/rbglib_i18n.c +44 -0
- data/ext/glib2/rbglib_int64.c +157 -0
- data/ext/glib2/rbglib_iochannel.c +883 -0
- data/ext/glib2/rbglib_keyfile.c +846 -0
- data/ext/glib2/rbglib_maincontext.c +915 -0
- data/ext/glib2/rbglib_mainloop.c +87 -0
- data/ext/glib2/rbglib_messages.c +150 -0
- data/ext/glib2/rbglib_pollfd.c +111 -0
- data/ext/glib2/rbglib_shell.c +68 -0
- data/ext/glib2/rbglib_source.c +190 -0
- data/ext/glib2/rbglib_spawn.c +345 -0
- data/ext/glib2/rbglib_threads.c +51 -0
- data/ext/glib2/rbglib_timer.c +127 -0
- data/ext/glib2/rbglib_unicode.c +611 -0
- data/ext/glib2/rbglib_utils.c +386 -0
- data/ext/glib2/rbglib_win32.c +136 -0
- data/ext/glib2/rbgobj_boxed.c +251 -0
- data/ext/glib2/rbgobj_closure.c +337 -0
- data/ext/glib2/rbgobj_convert.c +167 -0
- data/ext/glib2/rbgobj_enums.c +961 -0
- data/ext/glib2/rbgobj_fundamental.c +30 -0
- data/ext/glib2/rbgobj_object.c +892 -0
- data/ext/glib2/rbgobj_param.c +390 -0
- data/ext/glib2/rbgobj_paramspecs.c +305 -0
- data/ext/glib2/rbgobj_signal.c +963 -0
- data/ext/glib2/rbgobj_strv.c +61 -0
- data/ext/glib2/rbgobj_type.c +851 -0
- data/ext/glib2/rbgobj_typeinstance.c +121 -0
- data/ext/glib2/rbgobj_typeinterface.c +148 -0
- data/ext/glib2/rbgobj_typemodule.c +66 -0
- data/ext/glib2/rbgobj_typeplugin.c +49 -0
- data/ext/glib2/rbgobj_value.c +313 -0
- data/ext/glib2/rbgobj_valuearray.c +59 -0
- data/ext/glib2/rbgobj_valuetypes.c +298 -0
- data/ext/glib2/rbgobject.c +406 -0
- data/ext/glib2/rbgobject.h +265 -0
- data/ext/glib2/rbgprivate.h +88 -0
- data/ext/glib2/rbgutil.c +316 -0
- data/ext/glib2/rbgutil.h +82 -0
- data/ext/glib2/rbgutil_callback.c +231 -0
- data/extconf.rb +49 -0
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/glib-mkenums.rb +199 -0
- data/lib/glib2.rb +239 -0
- data/lib/gnome2-win32-binary-downloader.rb +92 -0
- data/lib/mkmf-gnome2.rb +377 -0
- data/sample/bookmarkfile.rb +66 -0
- data/sample/completion.rb +45 -0
- data/sample/idle.rb +41 -0
- data/sample/iochannel.rb +44 -0
- data/sample/keyfile.rb +62 -0
- data/sample/shell.rb +36 -0
- data/sample/spawn.rb +25 -0
- data/sample/timeout.rb +28 -0
- data/sample/timeout2.rb +35 -0
- data/sample/timer.rb +40 -0
- data/sample/type-register.rb +103 -0
- data/sample/type-register2.rb +104 -0
- data/sample/utils.rb +54 -0
- data/test/glib-test-init.rb +6 -0
- data/test/glib-test-utils.rb +12 -0
- data/test/run-test.rb +21 -0
- data/test/test_enum.rb +99 -0
- data/test/test_file_utils.rb +15 -0
- data/test/test_glib2.rb +120 -0
- data/test/test_iochannel.rb +275 -0
- data/test/test_key_file.rb +38 -0
- data/test/test_mkenums.rb +25 -0
- data/test/test_signal.rb +20 -0
- data/test/test_timeout.rb +28 -0
- data/test/test_unicode.rb +369 -0
- data/test/test_utils.rb +37 -0
- data/test/test_win32.rb +13 -0
- data/test-unit/COPYING +56 -0
- data/test-unit/GPL +340 -0
- data/test-unit/History.txt +232 -0
- data/test-unit/Manifest.txt +110 -0
- data/test-unit/PSFL +271 -0
- data/test-unit/README.txt +75 -0
- data/test-unit/Rakefile +53 -0
- data/test-unit/TODO +5 -0
- data/test-unit/bin/testrb +5 -0
- data/test-unit/html/bar.png +0 -0
- data/test-unit/html/bar.svg +153 -0
- data/test-unit/html/developer.png +0 -0
- data/test-unit/html/developer.svg +469 -0
- data/test-unit/html/famfamfam-logo.png +0 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.png +0 -0
- data/test-unit/html/favicon.svg +82 -0
- data/test-unit/html/heading-mark.png +0 -0
- data/test-unit/html/heading-mark.svg +393 -0
- data/test-unit/html/index.html +247 -0
- data/test-unit/html/index.html.ja +270 -0
- data/test-unit/html/install.png +0 -0
- data/test-unit/html/install.svg +636 -0
- data/test-unit/html/jp.png +0 -0
- data/test-unit/html/kinotan-failure.png +0 -0
- data/test-unit/html/kinotan-pass.png +0 -0
- data/test-unit/html/logo.png +0 -0
- data/test-unit/html/logo.svg +483 -0
- data/test-unit/html/reference.png +0 -0
- data/test-unit/html/rubyforge.png +0 -0
- data/test-unit/html/tango-logo.png +0 -0
- data/test-unit/html/test-unit.css +339 -0
- data/test-unit/html/tutorial.png +0 -0
- data/test-unit/html/tutorial.svg +559 -0
- data/test-unit/html/us.png +0 -0
- data/test-unit/images/color-diff.png +0 -0
- data/test-unit/lib/test/unit/assertionfailederror.rb +25 -0
- data/test-unit/lib/test/unit/assertions.rb +1334 -0
- data/test-unit/lib/test/unit/attribute.rb +125 -0
- data/test-unit/lib/test/unit/autorunner.rb +363 -0
- data/test-unit/lib/test/unit/collector/descendant.rb +23 -0
- data/test-unit/lib/test/unit/collector/dir.rb +108 -0
- data/test-unit/lib/test/unit/collector/load.rb +144 -0
- data/test-unit/lib/test/unit/collector/objectspace.rb +34 -0
- data/test-unit/lib/test/unit/collector.rb +36 -0
- data/test-unit/lib/test/unit/color-scheme.rb +106 -0
- data/test-unit/lib/test/unit/color.rb +96 -0
- data/test-unit/lib/test/unit/diff.rb +740 -0
- data/test-unit/lib/test/unit/error.rb +130 -0
- data/test-unit/lib/test/unit/exceptionhandler.rb +39 -0
- data/test-unit/lib/test/unit/failure.rb +136 -0
- data/test-unit/lib/test/unit/fixture.rb +176 -0
- data/test-unit/lib/test/unit/notification.rb +129 -0
- data/test-unit/lib/test/unit/omission.rb +191 -0
- data/test-unit/lib/test/unit/pending.rb +150 -0
- data/test-unit/lib/test/unit/priority.rb +180 -0
- data/test-unit/lib/test/unit/runner/console.rb +52 -0
- data/test-unit/lib/test/unit/runner/emacs.rb +8 -0
- data/test-unit/lib/test/unit/runner/tap.rb +8 -0
- data/test-unit/lib/test/unit/testcase.rb +483 -0
- data/test-unit/lib/test/unit/testresult.rb +121 -0
- data/test-unit/lib/test/unit/testsuite.rb +110 -0
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +14 -0
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +430 -0
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +63 -0
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +82 -0
- data/test-unit/lib/test/unit/ui/testrunner.rb +53 -0
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +77 -0
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +41 -0
- data/test-unit/lib/test/unit/util/backtracefilter.rb +42 -0
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +28 -0
- data/test-unit/lib/test/unit/util/observable.rb +90 -0
- data/test-unit/lib/test/unit/util/output.rb +31 -0
- data/test-unit/lib/test/unit/util/procwrapper.rb +48 -0
- data/test-unit/lib/test/unit/version.rb +7 -0
- data/test-unit/lib/test/unit.rb +328 -0
- data/test-unit/sample/adder.rb +13 -0
- data/test-unit/sample/subtracter.rb +12 -0
- data/test-unit/sample/test_adder.rb +20 -0
- data/test-unit/sample/test_subtracter.rb +20 -0
- data/test-unit/sample/test_user.rb +23 -0
- data/test-unit/test/collector/test-descendant.rb +133 -0
- data/test-unit/test/collector/test-load.rb +442 -0
- data/test-unit/test/collector/test_dir.rb +406 -0
- data/test-unit/test/collector/test_objectspace.rb +100 -0
- data/test-unit/test/run-test.rb +15 -0
- data/test-unit/test/test-attribute.rb +86 -0
- data/test-unit/test/test-color-scheme.rb +69 -0
- data/test-unit/test/test-color.rb +47 -0
- data/test-unit/test/test-diff.rb +518 -0
- data/test-unit/test/test-emacs-runner.rb +60 -0
- data/test-unit/test/test-fixture.rb +287 -0
- data/test-unit/test/test-notification.rb +33 -0
- data/test-unit/test/test-omission.rb +81 -0
- data/test-unit/test/test-pending.rb +70 -0
- data/test-unit/test/test-priority.rb +119 -0
- data/test-unit/test/test-testcase.rb +544 -0
- data/test-unit/test/test_assertions.rb +1197 -0
- data/test-unit/test/test_error.rb +26 -0
- data/test-unit/test/test_failure.rb +33 -0
- data/test-unit/test/test_testresult.rb +113 -0
- data/test-unit/test/test_testsuite.rb +129 -0
- data/test-unit/test/testunit-test-util.rb +14 -0
- data/test-unit/test/ui/test_tap.rb +33 -0
- data/test-unit/test/ui/test_testrunmediator.rb +20 -0
- data/test-unit/test/util/test-method-owner-finder.rb +38 -0
- data/test-unit/test/util/test-output.rb +11 -0
- data/test-unit/test/util/test_backtracefilter.rb +41 -0
- data/test-unit/test/util/test_observable.rb +102 -0
- data/test-unit/test/util/test_procwrapper.rb +36 -0
- data/vendor/local/bin/envsubst.exe +0 -0
- data/vendor/local/bin/gettext.exe +0 -0
- data/vendor/local/bin/gettext.sh +123 -0
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +188 -0
- data/vendor/local/bin/glib-mkenums +511 -0
- 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/intl.dll +0 -0
- data/vendor/local/bin/libasprintf-0.dll +0 -0
- data/vendor/local/bin/libgcc_s_dw2-1.dll +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/bin/ngettext.exe +0 -0
- data/vendor/local/include/autosprintf.h +66 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +237 -0
- data/vendor/local/include/glib-2.0/gio/gasyncinitable.h +119 -0
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +73 -0
- data/vendor/local/include/glib-2.0/gio/gbufferedinputstream.h +123 -0
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +82 -0
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +103 -0
- data/vendor/local/include/glib-2.0/gio/gcharsetconverter.h +60 -0
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +57 -0
- data/vendor/local/include/glib-2.0/gio/gconverter.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +80 -0
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +80 -0
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +133 -0
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +116 -0
- data/vendor/local/include/glib-2.0/gio/gdrive.h +225 -0
- data/vendor/local/include/glib-2.0/gio/gemblem.h +58 -0
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +62 -0
- data/vendor/local/include/glib-2.0/gio/gfile.h +1017 -0
- data/vendor/local/include/glib-2.0/gio/gfileattribute.h +77 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +133 -0
- data/vendor/local/include/glib-2.0/gio/gfileicon.h +56 -0
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +951 -0
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +112 -0
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gfilenamecompleter.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +119 -0
- data/vendor/local/include/glib-2.0/gio/gfilterinputstream.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gfilteroutputstream.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gicon.h +91 -0
- data/vendor/local/include/glib-2.0/gio/ginetaddress.h +103 -0
- data/vendor/local/include/glib-2.0/gio/ginetsocketaddress.h +69 -0
- data/vendor/local/include/glib-2.0/gio/ginitable.h +96 -0
- data/vendor/local/include/glib-2.0/gio/ginputstream.h +172 -0
- data/vendor/local/include/glib-2.0/gio/gio.h +101 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +703 -0
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +79 -0
- data/vendor/local/include/glib-2.0/gio/gioerror.h +48 -0
- data/vendor/local/include/glib-2.0/gio/giomodule.h +132 -0
- data/vendor/local/include/glib-2.0/gio/gioscheduler.h +52 -0
- data/vendor/local/include/glib-2.0/gio/giostream.h +112 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +339 -0
- data/vendor/local/include/glib-2.0/gio/gloadableicon.h +97 -0
- data/vendor/local/include/glib-2.0/gio/gmemoryinputstream.h +82 -0
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +97 -0
- data/vendor/local/include/glib-2.0/gio/gmount.h +242 -0
- data/vendor/local/include/glib-2.0/gio/gmountoperation.h +123 -0
- data/vendor/local/include/glib-2.0/gio/gnativevolumemonitor.h +62 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +69 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +69 -0
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +207 -0
- data/vendor/local/include/glib-2.0/gio/gresolver.h +167 -0
- data/vendor/local/include/glib-2.0/gio/gseekable.h +99 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +125 -0
- data/vendor/local/include/glib-2.0/gio/gsocket.h +176 -0
- data/vendor/local/include/glib-2.0/gio/gsocketaddress.h +79 -0
- data/vendor/local/include/glib-2.0/gio/gsocketaddressenumerator.h +89 -0
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +130 -0
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gsocketconnection.h +91 -0
- data/vendor/local/include/glib-2.0/gio/gsocketcontrolmessage.h +105 -0
- data/vendor/local/include/glib-2.0/gio/gsocketlistener.h +138 -0
- data/vendor/local/include/glib-2.0/gio/gsocketservice.h +88 -0
- data/vendor/local/include/glib-2.0/gio/gsrvtarget.h +52 -0
- data/vendor/local/include/glib-2.0/gio/gtcpconnection.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gthemedicon.h +63 -0
- data/vendor/local/include/glib-2.0/gio/gthreadedsocketservice.h +81 -0
- data/vendor/local/include/glib-2.0/gio/gvfs.h +125 -0
- data/vendor/local/include/glib-2.0/gio/gvolume.h +211 -0
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +151 -0
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +55 -0
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +54 -0
- data/vendor/local/include/glib-2.0/glib/galloca.h +63 -0
- data/vendor/local/include/glib-2.0/glib/garray.h +179 -0
- data/vendor/local/include/glib-2.0/glib/gasyncqueue.h +120 -0
- data/vendor/local/include/glib-2.0/glib/gatomic.h +85 -0
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +68 -0
- data/vendor/local/include/glib-2.0/glib/gbase64.h +57 -0
- data/vendor/local/include/glib-2.0/glib/gbitlock.h +43 -0
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +191 -0
- data/vendor/local/include/glib-2.0/glib/gcache.h +69 -0
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +86 -0
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +77 -0
- data/vendor/local/include/glib-2.0/glib/gconvert.h +138 -0
- data/vendor/local/include/glib-2.0/glib/gdataset.h +122 -0
- data/vendor/local/include/glib-2.0/glib/gdate.h +263 -0
- data/vendor/local/include/glib-2.0/glib/gdir.h +52 -0
- data/vendor/local/include/glib-2.0/glib/gerror.h +98 -0
- data/vendor/local/include/glib-2.0/glib/gfileutils.h +128 -0
- data/vendor/local/include/glib-2.0/glib/ghash.h +166 -0
- data/vendor/local/include/glib-2.0/glib/ghook.h +181 -0
- data/vendor/local/include/glib-2.0/glib/ghostutils.h +40 -0
- data/vendor/local/include/glib-2.0/glib/gi18n-lib.h +38 -0
- data/vendor/local/include/glib-2.0/glib/gi18n.h +34 -0
- data/vendor/local/include/glib-2.0/glib/giochannel.h +366 -0
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +250 -0
- data/vendor/local/include/glib-2.0/glib/glist.h +120 -0
- data/vendor/local/include/glib-2.0/glib/gmacros.h +277 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +304 -0
- data/vendor/local/include/glib-2.0/glib/gmappedfile.h +49 -0
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +163 -0
- data/vendor/local/include/glib-2.0/glib/gmem.h +203 -0
- data/vendor/local/include/glib-2.0/glib/gmessages.h +343 -0
- data/vendor/local/include/glib-2.0/glib/gnode.h +288 -0
- data/vendor/local/include/glib-2.0/glib/goption.h +370 -0
- data/vendor/local/include/glib-2.0/glib/gpattern.h +49 -0
- data/vendor/local/include/glib-2.0/glib/gpoll.h +93 -0
- data/vendor/local/include/glib-2.0/glib/gprimes.h +51 -0
- data/vendor/local/include/glib-2.0/glib/gprintf.h +52 -0
- data/vendor/local/include/glib-2.0/glib/gqsort.h +46 -0
- data/vendor/local/include/glib-2.0/glib/gquark.h +52 -0
- data/vendor/local/include/glib-2.0/glib/gqueue.h +127 -0
- data/vendor/local/include/glib-2.0/glib/grand.h +85 -0
- data/vendor/local/include/glib-2.0/glib/gregex.h +243 -0
- data/vendor/local/include/glib-2.0/glib/grel.h +97 -0
- data/vendor/local/include/glib-2.0/glib/gscanner.h +278 -0
- data/vendor/local/include/glib-2.0/glib/gsequence.h +128 -0
- data/vendor/local/include/glib-2.0/glib/gshell.h +55 -0
- data/vendor/local/include/glib-2.0/glib/gslice.h +86 -0
- data/vendor/local/include/glib-2.0/glib/gslist.h +114 -0
- data/vendor/local/include/glib-2.0/glib/gspawn.h +139 -0
- data/vendor/local/include/glib-2.0/glib/gstdio.h +159 -0
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +267 -0
- data/vendor/local/include/glib-2.0/glib/gstring.h +178 -0
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +292 -0
- data/vendor/local/include/glib-2.0/glib/gthread.h +408 -0
- data/vendor/local/include/glib-2.0/glib/gthreadpool.h +114 -0
- data/vendor/local/include/glib-2.0/glib/gtimer.h +65 -0
- data/vendor/local/include/glib-2.0/glib/gtree.h +91 -0
- data/vendor/local/include/glib-2.0/glib/gtypes.h +451 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +404 -0
- data/vendor/local/include/glib-2.0/glib/gurifuncs.h +81 -0
- data/vendor/local/include/glib-2.0/glib/gutils.h +490 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +224 -0
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +305 -0
- data/vendor/local/include/glib-2.0/glib/gwin32.h +114 -0
- data/vendor/local/include/glib-2.0/glib-object.h +41 -0
- data/vendor/local/include/glib-2.0/glib.h +97 -0
- data/vendor/local/include/glib-2.0/gmodule.h +101 -0
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +236 -0
- data/vendor/local/include/glib-2.0/gobject/gclosure.h +251 -0
- data/vendor/local/include/glib-2.0/gobject/genums.h +261 -0
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +169 -0
- data/vendor/local/include/glib-2.0/gobject/gobject.h +562 -0
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +166 -0
- data/vendor/local/include/glib-2.0/gobject/gparam.h +410 -0
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +1083 -0
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +509 -0
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +51 -0
- data/vendor/local/include/glib-2.0/gobject/gtype.h +1608 -0
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +263 -0
- data/vendor/local/include/glib-2.0/gobject/gtypeplugin.h +134 -0
- data/vendor/local/include/glib-2.0/gobject/gvalue.h +159 -0
- data/vendor/local/include/glib-2.0/gobject/gvaluearray.h +77 -0
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +222 -0
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +243 -0
- data/vendor/local/include/libintl.h +464 -0
- data/vendor/local/lib/GNU.Gettext.dll +0 -0
- data/vendor/local/lib/gio-2.0.def +800 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +284 -0
- data/vendor/local/lib/glib-2.0.def +1381 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/gmodule-2.0.def +11 -0
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +349 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.def +3 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/intl.lib +0 -0
- data/vendor/local/lib/libasprintf.dll.a +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/libintl.def +31 -0
- data/vendor/local/lib/libintl.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +14 -0
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +15 -0
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +14 -0
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +14 -0
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +11 -0
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +11 -0
- data/vendor/local/manifest/gettext-runtime-dev_0.18.1.1-2_win32.mft +81 -0
- data/vendor/local/manifest/gettext-runtime_0.18.1.1-2_win32.mft +3 -0
- data/vendor/local/manifest/glib-dev_2.24.2-2_win32.mft +491 -0
- data/vendor/local/manifest/glib_2.24.2-2_win32.mft +101 -0
- data/vendor/local/share/aclocal/glib-2.0.m4 +211 -0
- data/vendor/local/share/aclocal/glib-gettext.m4 +432 -0
- data/vendor/local/share/doc/gettext/bind_textdomain_codeset.3.html +165 -0
- data/vendor/local/share/doc/gettext/bindtextdomain.3.html +160 -0
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext.html +8 -0
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceManager.html +305 -0
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceSet.html +356 -0
- data/vendor/local/share/doc/gettext/csharpdoc/begin.html +11 -0
- data/vendor/local/share/doc/gettext/csharpdoc/index.html +10 -0
- data/vendor/local/share/doc/gettext/csharpdoc/namespaces.html +6 -0
- data/vendor/local/share/doc/gettext/envsubst.1.html +213 -0
- data/vendor/local/share/doc/gettext/gettext.1.html +266 -0
- data/vendor/local/share/doc/gettext/gettext.3.html +186 -0
- data/vendor/local/share/doc/gettext/ngettext.1.html +280 -0
- data/vendor/local/share/doc/gettext/ngettext.3.html +143 -0
- data/vendor/local/share/doc/gettext/textdomain.3.html +150 -0
- data/vendor/local/share/doc/glib-2.24.2/COPYING +482 -0
- data/vendor/local/share/doc/glib-dev-2.24.2/COPYING +482 -0
- data/vendor/local/share/doc/libasprintf/autosprintf_all.html +174 -0
- data/vendor/local/share/glib-2.0/gdb/glib.py +252 -0
- data/vendor/local/share/glib-2.0/gdb/gobject.py +305 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +111 -0
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +277 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +1390 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +531 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +343 -0
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +568 -0
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +295 -0
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +620 -0
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +245 -0
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +388 -0
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +993 -0
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +544 -0
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +1416 -0
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +272 -0
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +206 -0
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +7450 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +115 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +520 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +312 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +155 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +3116 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +262 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +353 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +301 -0
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +217 -0
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +182 -0
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +183 -0
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +261 -0
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +479 -0
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +331 -0
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +717 -0
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +195 -0
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +388 -0
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +808 -0
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +301 -0
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +185 -0
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +362 -0
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +1465 -0
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +848 -0
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +263 -0
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +248 -0
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +1006 -0
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +787 -0
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +350 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +979 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +2152 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +297 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +930 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +428 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +548 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +274 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +741 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +258 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +377 -0
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +197 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +381 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +280 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +237 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +237 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +306 -0
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +274 -0
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +1028 -0
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +709 -0
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +180 -0
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +128 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +153 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +155 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +1088 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +206 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +97 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +4499 -0
- data/vendor/local/share/gtk-doc/html/gio/async.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +171 -0
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +45 -0
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +80 -0
- data/vendor/local/share/gtk-doc/html/gio/ch19.html +75 -0
- data/vendor/local/share/gtk-doc/html/gio/ch20.html +217 -0
- data/vendor/local/share/gtk-doc/html/gio/ch20s02.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/ch20s03.html +39 -0
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +96 -0
- data/vendor/local/share/gtk-doc/html/gio/extending.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +38 -0
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +33 -0
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +339 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +465 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +381 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +163 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +163 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +927 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +328 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +297 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +313 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +918 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +107 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +1235 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +1384 -0
- data/vendor/local/share/gtk-doc/html/gio/gvfs-overview.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +47 -0
- data/vendor/local/share/gtk-doc/html/gio/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/icons.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/index.html +318 -0
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +1795 -0
- data/vendor/local/share/gtk-doc/html/gio/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +42 -0
- data/vendor/local/share/gtk-doc/html/gio/networking.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +39 -0
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +293 -0
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +47 -0
- data/vendor/local/share/gtk-doc/html/gio/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +92 -0
- data/vendor/local/share/gtk-doc/html/gio/style.css +257 -0
- data/vendor/local/share/gtk-doc/html/gio/types.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/utils.html +33 -0
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +47 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +180 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +312 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +563 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +362 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +102 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +124 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +83 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +194 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +419 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +389 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +413 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +158 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +340 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +7835 -0
- data/vendor/local/share/gtk-doc/html/glib/file-name-encodings.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +893 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +818 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +413 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +430 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +802 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +372 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +500 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +2054 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +560 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +1686 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +398 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +1187 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +1665 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +460 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +528 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +2042 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +1278 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +1406 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +548 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +1023 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +1810 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +3798 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +1815 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +295 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +1512 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +1367 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +229 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +629 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +2196 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +2556 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +612 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +1451 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +389 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +1029 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +141 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +706 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +510 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +703 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +1045 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +1523 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +1466 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +204 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +2648 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +752 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +269 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +578 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +483 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +1353 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +238 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +1283 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +1212 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +924 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +466 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +301 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +2947 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +1290 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +1719 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +3379 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +606 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +3411 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +245 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +188 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +263 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +314 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +3356 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +150 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +438 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +476 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +438 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +159 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +118 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +64 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +160 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +120 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +59 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +93 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +2395 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +121 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +302 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +112 -0
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +2084 -0
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +2556 -0
- data/vendor/local/share/gtk-doc/html/glib/glib.html +80 -0
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +72 -0
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +131 -0
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +1171 -0
- data/vendor/local/share/gtk-doc/html/glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +336 -0
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +2717 -0
- data/vendor/local/share/gtk-doc/html/glib/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/mainloop-states.gif +0 -0
- data/vendor/local/share/gtk-doc/html/glib/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/style.css +257 -0
- data/vendor/local/share/gtk-doc/html/glib/tools.html +41 -0
- data/vendor/local/share/gtk-doc/html/glib/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +710 -0
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +453 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +85 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +55 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +51 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +46 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +38 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +46 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +72 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +178 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +42 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +42 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +50 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +2577 -0
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +136 -0
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +113 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +293 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +263 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +92 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +214 -0
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +355 -0
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +295 -0
- data/vendor/local/share/gtk-doc/html/gobject/glue.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +406 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +2355 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +847 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +1423 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +776 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +2741 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +5242 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +2609 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +4227 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +413 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +230 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +234 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +270 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +117 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +723 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +757 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +143 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +287 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +316 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +76 -0
- data/vendor/local/share/gtk-doc/html/gobject/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +100 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +86 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +113 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +122 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +257 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +283 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +125 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +167 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +160 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +121 -0
- data/vendor/local/share/gtk-doc/html/gobject/index.html +187 -0
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +734 -0
- data/vendor/local/share/gtk-doc/html/gobject/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +72 -0
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +80 -0
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +66 -0
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +55 -0
- data/vendor/local/share/gtk-doc/html/gobject/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +82 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +377 -0
- data/vendor/local/share/gtk-doc/html/gobject/style.css +257 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +35 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +40 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +63 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +55 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +43 -0
- data/vendor/local/share/gtk-doc/html/gobject/up.png +0 -0
- 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/gettext-runtime.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/gettext-runtime.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/gettext-runtime.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/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@quot/LC_MESSAGES/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gettext-runtime.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/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gettext-runtime.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/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gettext-runtime.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/locale.alias +77 -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/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gettext-runtime.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/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gettext-runtime.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/gettext-runtime.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/gettext-runtime.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/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gettext-runtime.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/gettext-runtime.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/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/envsubst.1 +54 -0
- data/vendor/local/share/man/man1/gettext.1 +69 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +307 -0
- data/vendor/local/share/man/man1/glib-mkenums.1 +234 -0
- data/vendor/local/share/man/man1/gobject-query.1 +83 -0
- data/vendor/local/share/man/man1/ngettext.1 +68 -0
- data/vendor/local/share/man/man3/bind_textdomain_codeset.3 +72 -0
- data/vendor/local/share/man/man3/bindtextdomain.3 +69 -0
- data/vendor/local/share/man/man3/dcgettext.3 +1 -0
- data/vendor/local/share/man/man3/dcngettext.3 +1 -0
- data/vendor/local/share/man/man3/dgettext.3 +1 -0
- data/vendor/local/share/man/man3/dngettext.3 +1 -0
- data/vendor/local/share/man/man3/gettext.3 +99 -0
- data/vendor/local/share/man/man3/ngettext.3 +60 -0
- data/vendor/local/share/man/man3/textdomain.3 +57 -0
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.log +10423 -0
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.sh +457 -0
- data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.log +2602 -0
- data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.sh +290 -0
- metadata +940 -0
@@ -0,0 +1,2042 @@
|
|
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>Date and Time Functions</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-I18N.html" title="Internationalization">
|
10
|
+
<link rel="next" href="glib-Random-Numbers.html" title="Random Numbers">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.14 (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-I18N.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-Date-and-Time-Functions.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#glib-Date-and-Time-Functions.description" class="shortcut">Description</a>
|
27
|
+
</td></tr>
|
28
|
+
</table>
|
29
|
+
<div class="refentry" title="Date and Time Functions">
|
30
|
+
<a name="glib-Date-and-Time-Functions"></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-Date-and-Time-Functions.top_of_page"></a>Date and Time Functions</span></h2>
|
34
|
+
<p>Date and Time Functions — calendrical calculations and miscellaneous time stuff</p>
|
35
|
+
</td>
|
36
|
+
<td valign="top" align="right"></td>
|
37
|
+
</tr></table></div>
|
38
|
+
<div class="refsynopsisdiv" title="Synopsis">
|
39
|
+
<a name="glib-Date-and-Time-Functions.synopsis"></a><h2>Synopsis</h2>
|
40
|
+
<pre class="synopsis">
|
41
|
+
#include <glib.h>
|
42
|
+
|
43
|
+
#define <a class="link" href="glib-Date-and-Time-Functions.html#G-USEC-PER-SEC:CAPS" title="G_USEC_PER_SEC">G_USEC_PER_SEC</a>
|
44
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal">GTimeVal</a>;
|
45
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-get-current-time" title="g_get_current_time ()">g_get_current_time</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *result</code></em>);
|
46
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-usleep" title="g_usleep ()">g_usleep</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> microseconds</code></em>);
|
47
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-time-val-add" title="g_time_val_add ()">g_time_val_add</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *time_</code></em>,
|
48
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> microseconds</code></em>);
|
49
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-time-val-from-iso8601" title="g_time_val_from_iso8601 ()">g_time_val_from_iso8601</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *iso_date</code></em>,
|
50
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *time_</code></em>);
|
51
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a>* <a class="link" href="glib-Date-and-Time-Functions.html#g-time-val-to-iso8601" title="g_time_val_to_iso8601 ()">g_time_val_to_iso8601</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *time_</code></em>);
|
52
|
+
|
53
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate">GDate</a>;
|
54
|
+
typedef <a class="link" href="glib-Date-and-Time-Functions.html#GTime" title="GTime">GTime</a>;
|
55
|
+
enum <a class="link" href="glib-Date-and-Time-Functions.html#GDateDMY" title="enum GDateDMY">GDateDMY</a>;
|
56
|
+
typedef <a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay">GDateDay</a>;
|
57
|
+
enum <a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth">GDateMonth</a>;
|
58
|
+
typedef <a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear">GDateYear</a>;
|
59
|
+
enum <a class="link" href="glib-Date-and-Time-Functions.html#GDateWeekday" title="enum GDateWeekday">GDateWeekday</a>;
|
60
|
+
|
61
|
+
#define <a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-BAD-DAY:CAPS" title="G_DATE_BAD_DAY">G_DATE_BAD_DAY</a>
|
62
|
+
#define <a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-BAD-JULIAN:CAPS" title="G_DATE_BAD_JULIAN">G_DATE_BAD_JULIAN</a>
|
63
|
+
#define <a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-BAD-YEAR:CAPS" title="G_DATE_BAD_YEAR">G_DATE_BAD_YEAR</a>
|
64
|
+
|
65
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="returnvalue">GDate</span></a>* <a class="link" href="glib-Date-and-Time-Functions.html#g-date-new" title="g_date_new ()">g_date_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
66
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="returnvalue">GDate</span></a>* <a class="link" href="glib-Date-and-Time-Functions.html#g-date-new-dmy" title="g_date_new_dmy ()">g_date_new_dmy</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</code></em>,
|
67
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>,
|
68
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);
|
69
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="returnvalue">GDate</span></a>* <a class="link" href="glib-Date-and-Time-Functions.html#g-date-new-julian" title="g_date_new_julian ()">g_date_new_julian</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="type">guint32</span></a> julian_day</code></em>);
|
70
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-clear" title="g_date_clear ()">g_date_clear</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
71
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_dates</code></em>);
|
72
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-free" title="g_date_free ()">g_date_free</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
73
|
+
|
74
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-day" title="g_date_set_day ()">g_date_set_day</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
75
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</code></em>);
|
76
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-month" title="g_date_set_month ()">g_date_set_month</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
77
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>);
|
78
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-year" title="g_date_set_year ()">g_date_set_year</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
79
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);
|
80
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-dmy" title="g_date_set_dmy ()">g_date_set_dmy</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
81
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</code></em>,
|
82
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>,
|
83
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> y</code></em>);
|
84
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-julian" title="g_date_set_julian ()">g_date_set_julian</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
85
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="type">guint32</span></a> julian_date</code></em>);
|
86
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-time" title="g_date_set_time ()">g_date_set_time</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
87
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTime" title="GTime"><span class="type">GTime</span></a> time_</code></em>);
|
88
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-time-t" title="g_date_set_time_t ()">g_date_set_time_t</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
89
|
+
<em class="parameter"><code><span class="type">time_t</span> timet</code></em>);
|
90
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-time-val" title="g_date_set_time_val ()">g_date_set_time_val</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
91
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *timeval</code></em>);
|
92
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-parse" title="g_date_set_parse ()">g_date_set_parse</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
93
|
+
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str</code></em>);
|
94
|
+
|
95
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-add-days" title="g_date_add_days ()">g_date_add_days</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
96
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_days</code></em>);
|
97
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-subtract-days" title="g_date_subtract_days ()">g_date_subtract_days</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
98
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_days</code></em>);
|
99
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-add-months" title="g_date_add_months ()">g_date_add_months</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
100
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_months</code></em>);
|
101
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-subtract-months" title="g_date_subtract_months ()">g_date_subtract_months</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
102
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_months</code></em>);
|
103
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-add-years" title="g_date_add_years ()">g_date_add_years</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
104
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_years</code></em>);
|
105
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-subtract-years" title="g_date_subtract_years ()">g_date_subtract_years</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
106
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_years</code></em>);
|
107
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-days-between" title="g_date_days_between ()">g_date_days_between</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date1</code></em>,
|
108
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date2</code></em>);
|
109
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-compare" title="g_date_compare ()">g_date_compare</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *lhs</code></em>,
|
110
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *rhs</code></em>);
|
111
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-clamp" title="g_date_clamp ()">g_date_clamp</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
112
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *min_date</code></em>,
|
113
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *max_date</code></em>);
|
114
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-order" title="g_date_order ()">g_date_order</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date1</code></em>,
|
115
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date2</code></em>);
|
116
|
+
|
117
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="returnvalue">GDateDay</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-day" title="g_date_get_day ()">g_date_get_day</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
118
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="returnvalue">GDateMonth</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-month" title="g_date_get_month ()">g_date_get_month</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
119
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="returnvalue">GDateYear</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-year" title="g_date_get_year ()">g_date_get_year</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
120
|
+
<a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="returnvalue">guint32</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-julian" title="g_date_get_julian ()">g_date_get_julian</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
121
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GDateWeekday" title="enum GDateWeekday"><span class="returnvalue">GDateWeekday</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-weekday" title="g_date_get_weekday ()">g_date_get_weekday</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
122
|
+
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-day-of-year" title="g_date_get_day_of_year ()">g_date_get_day_of_year</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
123
|
+
|
124
|
+
<a class="link" href="glib-Basic-Types.html#guint8" title="guint8"><span class="returnvalue">guint8</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-days-in-month" title="g_date_get_days_in_month ()">g_date_get_days_in_month</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>,
|
125
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);
|
126
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-is-first-of-month" title="g_date_is_first_of_month ()">g_date_is_first_of_month</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
127
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-is-last-of-month" title="g_date_is_last_of_month ()">g_date_is_last_of_month</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
128
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-is-leap-year" title="g_date_is_leap_year ()">g_date_is_leap_year</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);
|
129
|
+
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-monday-week-of-year" title="g_date_get_monday_week_of_year ()">g_date_get_monday_week_of_year</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
130
|
+
<a class="link" href="glib-Basic-Types.html#guint8" title="guint8"><span class="returnvalue">guint8</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-monday-weeks-in-year" title="g_date_get_monday_weeks_in_year ()">g_date_get_monday_weeks_in_year</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);
|
131
|
+
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-sunday-week-of-year" title="g_date_get_sunday_week_of_year ()">g_date_get_sunday_week_of_year</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
132
|
+
<a class="link" href="glib-Basic-Types.html#guint8" title="guint8"><span class="returnvalue">guint8</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-sunday-weeks-in-year" title="g_date_get_sunday_weeks_in_year ()">g_date_get_sunday_weeks_in_year</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);
|
133
|
+
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-get-iso8601-week-of-year" title="g_date_get_iso8601_week_of_year ()">g_date_get_iso8601_week_of_year</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
134
|
+
|
135
|
+
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-strftime" title="g_date_strftime ()">g_date_strftime</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *s</code></em>,
|
136
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> slen</code></em>,
|
137
|
+
<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>,
|
138
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
139
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-to-struct-tm" title="g_date_to_struct_tm ()">g_date_to_struct_tm</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
140
|
+
<em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>);
|
141
|
+
|
142
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid" title="g_date_valid ()">g_date_valid</a> (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);
|
143
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid-day" title="g_date_valid_day ()">g_date_valid_day</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</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-Date-and-Time-Functions.html#g-date-valid-month" title="g_date_valid_month ()">g_date_valid_month</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>);
|
145
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid-year" title="g_date_valid_year ()">g_date_valid_year</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);
|
146
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid-dmy" title="g_date_valid_dmy ()">g_date_valid_dmy</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</code></em>,
|
147
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>,
|
148
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);
|
149
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid-julian" title="g_date_valid_julian ()">g_date_valid_julian</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="type">guint32</span></a> julian_date</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-Date-and-Time-Functions.html#g-date-valid-weekday" title="g_date_valid_weekday ()">g_date_valid_weekday</a> (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateWeekday" title="enum GDateWeekday"><span class="type">GDateWeekday</span></a> weekday</code></em>);
|
151
|
+
</pre>
|
152
|
+
</div>
|
153
|
+
<div class="refsect1" title="Description">
|
154
|
+
<a name="glib-Date-and-Time-Functions.description"></a><h2>Description</h2>
|
155
|
+
<p>
|
156
|
+
The <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> data structure represents a day between January 1, Year 1,
|
157
|
+
and sometime a few thousand years in the future (right now it will go
|
158
|
+
to the year 65535 or so, but <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-parse" title="g_date_set_parse ()"><code class="function">g_date_set_parse()</code></a> only parses up to the
|
159
|
+
year 8000 or so - just count on "a few thousand"). <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> is meant to
|
160
|
+
represent everyday dates, not astronomical dates or historical dates
|
161
|
+
or ISO timestamps or the like. It extrapolates the current Gregorian
|
162
|
+
calendar forward and backward in time; there is no attempt to change
|
163
|
+
the calendar to match time periods or locations. <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> does not store
|
164
|
+
time information; it represents a <span class="emphasis"><em>day</em></span>.
|
165
|
+
</p>
|
166
|
+
<p>
|
167
|
+
The <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> implementation has several nice features; it is only a
|
168
|
+
64-bit struct, so storing large numbers of dates is very efficient. It
|
169
|
+
can keep both a Julian and day-month-year representation of the date,
|
170
|
+
since some calculations are much easier with one representation or the
|
171
|
+
other. A Julian representation is simply a count of days since some
|
172
|
+
fixed day in the past; for <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> the fixed day is January 1, 1 AD.
|
173
|
+
("Julian" dates in the <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> API aren't really Julian dates in the
|
174
|
+
technical sense; technically, Julian dates count from the start of the
|
175
|
+
Julian period, Jan 1, 4713 BC).
|
176
|
+
</p>
|
177
|
+
<p>
|
178
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> is simple to use. First you need a "blank" date; you can get a
|
179
|
+
dynamically allocated date from <a class="link" href="glib-Date-and-Time-Functions.html#g-date-new" title="g_date_new ()"><code class="function">g_date_new()</code></a>, or you can declare an
|
180
|
+
automatic variable or array and initialize it to a sane state by
|
181
|
+
calling <a class="link" href="glib-Date-and-Time-Functions.html#g-date-clear" title="g_date_clear ()"><code class="function">g_date_clear()</code></a>. A cleared date is sane; it's safe to call
|
182
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-dmy" title="g_date_set_dmy ()"><code class="function">g_date_set_dmy()</code></a> and the other mutator functions to initialize the
|
183
|
+
value of a cleared date. However, a cleared date is initially
|
184
|
+
<span class="emphasis"><em>invalid</em></span>, meaning that it doesn't represent a day
|
185
|
+
that exists. It is undefined to call any of the date calculation
|
186
|
+
routines on an invalid date. If you obtain a date from a user or other
|
187
|
+
unpredictable source, you should check its validity with the
|
188
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid" title="g_date_valid ()"><code class="function">g_date_valid()</code></a> predicate. <a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid" title="g_date_valid ()"><code class="function">g_date_valid()</code></a> is also used to check for
|
189
|
+
errors with <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-parse" title="g_date_set_parse ()"><code class="function">g_date_set_parse()</code></a> and other functions that can
|
190
|
+
fail. Dates can be invalidated by calling <a class="link" href="glib-Date-and-Time-Functions.html#g-date-clear" title="g_date_clear ()"><code class="function">g_date_clear()</code></a> again.
|
191
|
+
</p>
|
192
|
+
<p>
|
193
|
+
<span class="emphasis"><em>It is very important to use the API to access the <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
194
|
+
struct.</em></span> Often only the day-month-year or only the Julian
|
195
|
+
representation is valid. Sometimes neither is valid. Use the API.
|
196
|
+
</p>
|
197
|
+
<p>
|
198
|
+
GLib doesn't contain any time-manipulation functions; however, there
|
199
|
+
is a <a class="link" href="glib-Date-and-Time-Functions.html#GTime" title="GTime"><span class="type">GTime</span></a> typedef and a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> struct which represents a more
|
200
|
+
precise time (with microseconds). You can request the current time as
|
201
|
+
a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> with <a class="link" href="glib-Date-and-Time-Functions.html#g-get-current-time" title="g_get_current_time ()"><code class="function">g_get_current_time()</code></a>.
|
202
|
+
</p>
|
203
|
+
</div>
|
204
|
+
<div class="refsect1" title="Details">
|
205
|
+
<a name="glib-Date-and-Time-Functions.details"></a><h2>Details</h2>
|
206
|
+
<div class="refsect2" title="G_USEC_PER_SEC">
|
207
|
+
<a name="G-USEC-PER-SEC:CAPS"></a><h3>G_USEC_PER_SEC</h3>
|
208
|
+
<pre class="programlisting">#define G_USEC_PER_SEC 1000000
|
209
|
+
</pre>
|
210
|
+
<p>
|
211
|
+
Number of microseconds in one second (1 million). This macro is provided for
|
212
|
+
code readability.
|
213
|
+
</p>
|
214
|
+
</div>
|
215
|
+
<hr>
|
216
|
+
<div class="refsect2" title="GTimeVal">
|
217
|
+
<a name="GTimeVal"></a><h3>GTimeVal</h3>
|
218
|
+
<pre class="programlisting">typedef struct {
|
219
|
+
glong tv_sec;
|
220
|
+
glong tv_usec;
|
221
|
+
} GTimeVal;
|
222
|
+
</pre>
|
223
|
+
<p>
|
224
|
+
Represents a precise time, with seconds and microseconds.
|
225
|
+
Similar to the <span class="structname">struct timeval</span> returned by
|
226
|
+
the <code class="function"><code class="function">gettimeofday()</code></code> UNIX call.
|
227
|
+
</p>
|
228
|
+
<div class="variablelist"><table border="0">
|
229
|
+
<col align="left" valign="top">
|
230
|
+
<tbody>
|
231
|
+
<tr>
|
232
|
+
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> <em class="structfield"><code><a name="GTimeVal.tv-sec"></a>tv_sec</code></em>;</span></p></td>
|
233
|
+
<td>seconds
|
234
|
+
</td>
|
235
|
+
</tr>
|
236
|
+
<tr>
|
237
|
+
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> <em class="structfield"><code><a name="GTimeVal.tv-usec"></a>tv_usec</code></em>;</span></p></td>
|
238
|
+
<td>microseconds
|
239
|
+
</td>
|
240
|
+
</tr>
|
241
|
+
</tbody>
|
242
|
+
</table></div>
|
243
|
+
</div>
|
244
|
+
<hr>
|
245
|
+
<div class="refsect2" title="g_get_current_time ()">
|
246
|
+
<a name="g-get-current-time"></a><h3>g_get_current_time ()</h3>
|
247
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_get_current_time (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *result</code></em>);</pre>
|
248
|
+
<p>
|
249
|
+
Equivalent to the UNIX <code class="function">gettimeofday()</code> function, but portable.
|
250
|
+
</p>
|
251
|
+
<div class="variablelist"><table border="0">
|
252
|
+
<col align="left" valign="top">
|
253
|
+
<tbody><tr>
|
254
|
+
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
|
255
|
+
<td>
|
256
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> structure in which to store current time.
|
257
|
+
</td>
|
258
|
+
</tr></tbody>
|
259
|
+
</table></div>
|
260
|
+
</div>
|
261
|
+
<hr>
|
262
|
+
<div class="refsect2" title="g_usleep ()">
|
263
|
+
<a name="g-usleep"></a><h3>g_usleep ()</h3>
|
264
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_usleep (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> microseconds</code></em>);</pre>
|
265
|
+
<p>
|
266
|
+
Pauses the current thread for the given number of microseconds. There
|
267
|
+
are 1 million microseconds per second (represented by the
|
268
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#G-USEC-PER-SEC:CAPS" title="G_USEC_PER_SEC"><span class="type">G_USEC_PER_SEC</span></a> macro). <a class="link" href="glib-Date-and-Time-Functions.html#g-usleep" title="g_usleep ()"><code class="function">g_usleep()</code></a> may have limited precision,
|
269
|
+
depending on hardware and operating system; don't rely on the exact
|
270
|
+
length of the sleep.
|
271
|
+
</p>
|
272
|
+
<div class="variablelist"><table border="0">
|
273
|
+
<col align="left" valign="top">
|
274
|
+
<tbody><tr>
|
275
|
+
<td><p><span class="term"><em class="parameter"><code>microseconds</code></em> :</span></p></td>
|
276
|
+
<td>number of microseconds to pause
|
277
|
+
</td>
|
278
|
+
</tr></tbody>
|
279
|
+
</table></div>
|
280
|
+
</div>
|
281
|
+
<hr>
|
282
|
+
<div class="refsect2" title="g_time_val_add ()">
|
283
|
+
<a name="g-time-val-add"></a><h3>g_time_val_add ()</h3>
|
284
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_time_val_add (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *time_</code></em>,
|
285
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> microseconds</code></em>);</pre>
|
286
|
+
<p>
|
287
|
+
Adds the given number of microseconds to <em class="parameter"><code>time_</code></em>. <em class="parameter"><code>microseconds</code></em> can
|
288
|
+
also be negative to decrease the value of <em class="parameter"><code>time_</code></em>.
|
289
|
+
</p>
|
290
|
+
<div class="variablelist"><table border="0">
|
291
|
+
<col align="left" valign="top">
|
292
|
+
<tbody>
|
293
|
+
<tr>
|
294
|
+
<td><p><span class="term"><em class="parameter"><code>time_</code></em> :</span></p></td>
|
295
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a>
|
296
|
+
</td>
|
297
|
+
</tr>
|
298
|
+
<tr>
|
299
|
+
<td><p><span class="term"><em class="parameter"><code>microseconds</code></em> :</span></p></td>
|
300
|
+
<td>number of microseconds to add to <em class="parameter"><code>time</code></em>
|
301
|
+
</td>
|
302
|
+
</tr>
|
303
|
+
</tbody>
|
304
|
+
</table></div>
|
305
|
+
</div>
|
306
|
+
<hr>
|
307
|
+
<div class="refsect2" title="g_time_val_from_iso8601 ()">
|
308
|
+
<a name="g-time-val-from-iso8601"></a><h3>g_time_val_from_iso8601 ()</h3>
|
309
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_time_val_from_iso8601 (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *iso_date</code></em>,
|
310
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *time_</code></em>);</pre>
|
311
|
+
<p>
|
312
|
+
Converts a string containing an ISO 8601 encoded date and time
|
313
|
+
to a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> and puts it into <em class="parameter"><code>time_</code></em>.
|
314
|
+
</p>
|
315
|
+
<div class="variablelist"><table border="0">
|
316
|
+
<col align="left" valign="top">
|
317
|
+
<tbody>
|
318
|
+
<tr>
|
319
|
+
<td><p><span class="term"><em class="parameter"><code>iso_date</code></em> :</span></p></td>
|
320
|
+
<td>an ISO 8601 encoded date string
|
321
|
+
</td>
|
322
|
+
</tr>
|
323
|
+
<tr>
|
324
|
+
<td><p><span class="term"><em class="parameter"><code>time_</code></em> :</span></p></td>
|
325
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a>
|
326
|
+
</td>
|
327
|
+
</tr>
|
328
|
+
<tr>
|
329
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
330
|
+
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the conversion was successful.
|
331
|
+
|
332
|
+
</td>
|
333
|
+
</tr>
|
334
|
+
</tbody>
|
335
|
+
</table></div>
|
336
|
+
<p class="since">Since 2.12</p>
|
337
|
+
</div>
|
338
|
+
<hr>
|
339
|
+
<div class="refsect2" title="g_time_val_to_iso8601 ()">
|
340
|
+
<a name="g-time-val-to-iso8601"></a><h3>g_time_val_to_iso8601 ()</h3>
|
341
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a>* g_time_val_to_iso8601 (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *time_</code></em>);</pre>
|
342
|
+
<p>
|
343
|
+
Converts <em class="parameter"><code>time_</code></em> into an ISO 8601 encoded string, relative to the
|
344
|
+
Coordinated Universal Time (UTC).
|
345
|
+
</p>
|
346
|
+
<div class="variablelist"><table border="0">
|
347
|
+
<col align="left" valign="top">
|
348
|
+
<tbody>
|
349
|
+
<tr>
|
350
|
+
<td><p><span class="term"><em class="parameter"><code>time_</code></em> :</span></p></td>
|
351
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a>
|
352
|
+
</td>
|
353
|
+
</tr>
|
354
|
+
<tr>
|
355
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
356
|
+
<td> a newly allocated string containing an ISO 8601 date
|
357
|
+
|
358
|
+
</td>
|
359
|
+
</tr>
|
360
|
+
</tbody>
|
361
|
+
</table></div>
|
362
|
+
<p class="since">Since 2.12</p>
|
363
|
+
</div>
|
364
|
+
<hr>
|
365
|
+
<div class="refsect2" title="GDate">
|
366
|
+
<a name="GDate"></a><h3>GDate</h3>
|
367
|
+
<pre class="programlisting">typedef struct {
|
368
|
+
guint julian_days : 32; /* julian days representation - we use a
|
369
|
+
* bitfield hoping that 64 bit platforms
|
370
|
+
* will pack this whole struct in one big
|
371
|
+
* int
|
372
|
+
*/
|
373
|
+
|
374
|
+
guint julian : 1; /* julian is valid */
|
375
|
+
guint dmy : 1; /* dmy is valid */
|
376
|
+
|
377
|
+
/* DMY representation */
|
378
|
+
guint day : 6;
|
379
|
+
guint month : 4;
|
380
|
+
guint year : 16;
|
381
|
+
} GDate;
|
382
|
+
</pre>
|
383
|
+
<p>
|
384
|
+
Represents a day between January 1, Year 1 and a few thousand years in
|
385
|
+
the future. None of its members should be accessed directly. If the
|
386
|
+
<span class="structname">GDate</span> is obtained from <a class="link" href="glib-Date-and-Time-Functions.html#g-date-new" title="g_date_new ()"><code class="function">g_date_new()</code></a>, it will
|
387
|
+
be safe to mutate but invalid and thus not safe for calendrical computations.
|
388
|
+
If it's declared on the stack, it will contain garbage so must be
|
389
|
+
initialized with <a class="link" href="glib-Date-and-Time-Functions.html#g-date-clear" title="g_date_clear ()"><code class="function">g_date_clear()</code></a>. <a class="link" href="glib-Date-and-Time-Functions.html#g-date-clear" title="g_date_clear ()"><code class="function">g_date_clear()</code></a> makes the date invalid
|
390
|
+
but sane. An invalid date doesn't represent a day, it's "empty." A
|
391
|
+
date becomes valid after you set it to a Julian day or you set a day,
|
392
|
+
month, and year.
|
393
|
+
</p>
|
394
|
+
<div class="variablelist"><table border="0">
|
395
|
+
<col align="left" valign="top">
|
396
|
+
<tbody>
|
397
|
+
<tr>
|
398
|
+
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GDate.julian-days"></a>julian_days</code></em> : 32;</span></p></td>
|
399
|
+
<td>the Julian representation of the date
|
400
|
+
</td>
|
401
|
+
</tr>
|
402
|
+
<tr>
|
403
|
+
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GDate.julian"></a>julian</code></em> : 1;</span></p></td>
|
404
|
+
<td>this bit is set if <em class="parameter"><code>julian_days</code></em> is valid
|
405
|
+
</td>
|
406
|
+
</tr>
|
407
|
+
<tr>
|
408
|
+
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GDate.dmy"></a>dmy</code></em> : 1;</span></p></td>
|
409
|
+
<td>this is set if <em class="parameter"><code>day</code></em>, <em class="parameter"><code>month</code></em> and <em class="parameter"><code>year</code></em> are valid
|
410
|
+
</td>
|
411
|
+
</tr>
|
412
|
+
<tr>
|
413
|
+
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GDate.day"></a>day</code></em> : 6;</span></p></td>
|
414
|
+
<td>the day of the day-month-year representation of the date, as
|
415
|
+
a number between 1 and 31
|
416
|
+
</td>
|
417
|
+
</tr>
|
418
|
+
<tr>
|
419
|
+
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GDate.month"></a>month</code></em> : 4;</span></p></td>
|
420
|
+
<td>the day of the day-month-year representation of the date, as
|
421
|
+
a number between 1 and 12
|
422
|
+
</td>
|
423
|
+
</tr>
|
424
|
+
<tr>
|
425
|
+
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GDate.year"></a>year</code></em> : 16;</span></p></td>
|
426
|
+
<td>the day of the day-month-year representation of the date
|
427
|
+
</td>
|
428
|
+
</tr>
|
429
|
+
</tbody>
|
430
|
+
</table></div>
|
431
|
+
</div>
|
432
|
+
<hr>
|
433
|
+
<div class="refsect2" title="GTime">
|
434
|
+
<a name="GTime"></a><h3>GTime</h3>
|
435
|
+
<pre class="programlisting">typedef gint32 GTime;
|
436
|
+
</pre>
|
437
|
+
<p>
|
438
|
+
Simply a replacement for <span class="type">time_t</span>. It has been deprected
|
439
|
+
since it is <span class="emphasis"><em>not</em></span> equivalent to <span class="type">time_t</span>
|
440
|
+
on 64-bit platforms with a 64-bit <span class="type">time_t</span>.
|
441
|
+
Unrelated to <a class="link" href="glib-Timers.html#GTimer" title="GTimer"><span class="type">GTimer</span></a>.
|
442
|
+
</p>
|
443
|
+
<p>
|
444
|
+
Note that <span class="type">GTime</span> is defined to always be a 32bit integer,
|
445
|
+
unlike <span class="type">time_t</span> which may be 64bit on some systems.
|
446
|
+
Therefore, <span class="type">GTime</span> will overflow in the year 2038, and
|
447
|
+
you cannot use the address of a <span class="type">GTime</span> variable as argument
|
448
|
+
to the UNIX <code class="function">time()</code> function. Instead, do the following:
|
449
|
+
</p>
|
450
|
+
<div class="informalexample">
|
451
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
452
|
+
<tbody>
|
453
|
+
<tr>
|
454
|
+
<td class="listing_lines" align="right"><pre>1
|
455
|
+
2
|
456
|
+
3
|
457
|
+
4</pre></td>
|
458
|
+
<td class="listing_code"><pre class="programlisting"><span class="usertype">time_t</span><span class="normal"> ttime</span><span class="symbol">;</span>
|
459
|
+
<span class="usertype">GTime</span><span class="normal"> gtime</span><span class="symbol">;</span>
|
460
|
+
<span class="function">time</span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">ttime</span><span class="symbol">);</span>
|
461
|
+
<span class="normal">gtime </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="glib-Date-and-Time-Functions.html#GTime">GTime</a></span><span class="symbol">)</span><span class="normal">ttime</span><span class="symbol">;</span></pre></td>
|
462
|
+
</tr>
|
463
|
+
</tbody>
|
464
|
+
</table>
|
465
|
+
</div>
|
466
|
+
|
467
|
+
<p>
|
468
|
+
</p>
|
469
|
+
</div>
|
470
|
+
<hr>
|
471
|
+
<div class="refsect2" title="enum GDateDMY">
|
472
|
+
<a name="GDateDMY"></a><h3>enum GDateDMY</h3>
|
473
|
+
<pre class="programlisting">typedef enum
|
474
|
+
{
|
475
|
+
G_DATE_DAY = 0,
|
476
|
+
G_DATE_MONTH = 1,
|
477
|
+
G_DATE_YEAR = 2
|
478
|
+
} GDateDMY;
|
479
|
+
</pre>
|
480
|
+
<p>
|
481
|
+
This enumeration isn't used in the API, but may be useful if you need
|
482
|
+
to mark a number as a day, month, or year.
|
483
|
+
</p>
|
484
|
+
<div class="variablelist"><table border="0">
|
485
|
+
<col align="left" valign="top">
|
486
|
+
<tbody>
|
487
|
+
<tr>
|
488
|
+
<td><p><a name="G-DATE-DAY:CAPS"></a><span class="term"><code class="literal">G_DATE_DAY</code></span></p></td>
|
489
|
+
<td>a day
|
490
|
+
</td>
|
491
|
+
</tr>
|
492
|
+
<tr>
|
493
|
+
<td><p><a name="G-DATE-MONTH:CAPS"></a><span class="term"><code class="literal">G_DATE_MONTH</code></span></p></td>
|
494
|
+
<td>a month
|
495
|
+
</td>
|
496
|
+
</tr>
|
497
|
+
<tr>
|
498
|
+
<td><p><a name="G-DATE-YEAR:CAPS"></a><span class="term"><code class="literal">G_DATE_YEAR</code></span></p></td>
|
499
|
+
<td>a year
|
500
|
+
</td>
|
501
|
+
</tr>
|
502
|
+
</tbody>
|
503
|
+
</table></div>
|
504
|
+
</div>
|
505
|
+
<hr>
|
506
|
+
<div class="refsect2" title="GDateDay">
|
507
|
+
<a name="GDateDay"></a><h3>GDateDay</h3>
|
508
|
+
<pre class="programlisting">typedef guint8 GDateDay; /* day of the month */
|
509
|
+
</pre>
|
510
|
+
<p>
|
511
|
+
Integer representing a day of the month; between 1 and
|
512
|
+
31. <a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-BAD-DAY:CAPS" title="G_DATE_BAD_DAY"><span class="type">G_DATE_BAD_DAY</span></a> represents an invalid day of the month.
|
513
|
+
</p>
|
514
|
+
</div>
|
515
|
+
<hr>
|
516
|
+
<div class="refsect2" title="enum GDateMonth">
|
517
|
+
<a name="GDateMonth"></a><h3>enum GDateMonth</h3>
|
518
|
+
<pre class="programlisting">typedef enum
|
519
|
+
{
|
520
|
+
G_DATE_BAD_MONTH = 0,
|
521
|
+
G_DATE_JANUARY = 1,
|
522
|
+
G_DATE_FEBRUARY = 2,
|
523
|
+
G_DATE_MARCH = 3,
|
524
|
+
G_DATE_APRIL = 4,
|
525
|
+
G_DATE_MAY = 5,
|
526
|
+
G_DATE_JUNE = 6,
|
527
|
+
G_DATE_JULY = 7,
|
528
|
+
G_DATE_AUGUST = 8,
|
529
|
+
G_DATE_SEPTEMBER = 9,
|
530
|
+
G_DATE_OCTOBER = 10,
|
531
|
+
G_DATE_NOVEMBER = 11,
|
532
|
+
G_DATE_DECEMBER = 12
|
533
|
+
} GDateMonth;
|
534
|
+
</pre>
|
535
|
+
<p>
|
536
|
+
Enumeration representing a month; values are <a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-JANUARY:CAPS"><span class="type">G_DATE_JANUARY</span></a>,
|
537
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-FEBRUARY:CAPS"><span class="type">G_DATE_FEBRUARY</span></a>, etc. <a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-BAD-MONTH:CAPS"><span class="type">G_DATE_BAD_MONTH</span></a> is the invalid value.
|
538
|
+
</p>
|
539
|
+
<div class="variablelist"><table border="0">
|
540
|
+
<col align="left" valign="top">
|
541
|
+
<tbody>
|
542
|
+
<tr>
|
543
|
+
<td><p><a name="G-DATE-BAD-MONTH:CAPS"></a><span class="term"><code class="literal">G_DATE_BAD_MONTH</code></span></p></td>
|
544
|
+
<td>invalid value
|
545
|
+
</td>
|
546
|
+
</tr>
|
547
|
+
<tr>
|
548
|
+
<td><p><a name="G-DATE-JANUARY:CAPS"></a><span class="term"><code class="literal">G_DATE_JANUARY</code></span></p></td>
|
549
|
+
<td>January
|
550
|
+
</td>
|
551
|
+
</tr>
|
552
|
+
<tr>
|
553
|
+
<td><p><a name="G-DATE-FEBRUARY:CAPS"></a><span class="term"><code class="literal">G_DATE_FEBRUARY</code></span></p></td>
|
554
|
+
<td>February
|
555
|
+
</td>
|
556
|
+
</tr>
|
557
|
+
<tr>
|
558
|
+
<td><p><a name="G-DATE-MARCH:CAPS"></a><span class="term"><code class="literal">G_DATE_MARCH</code></span></p></td>
|
559
|
+
<td>March
|
560
|
+
</td>
|
561
|
+
</tr>
|
562
|
+
<tr>
|
563
|
+
<td><p><a name="G-DATE-APRIL:CAPS"></a><span class="term"><code class="literal">G_DATE_APRIL</code></span></p></td>
|
564
|
+
<td>April
|
565
|
+
</td>
|
566
|
+
</tr>
|
567
|
+
<tr>
|
568
|
+
<td><p><a name="G-DATE-MAY:CAPS"></a><span class="term"><code class="literal">G_DATE_MAY</code></span></p></td>
|
569
|
+
<td>May
|
570
|
+
</td>
|
571
|
+
</tr>
|
572
|
+
<tr>
|
573
|
+
<td><p><a name="G-DATE-JUNE:CAPS"></a><span class="term"><code class="literal">G_DATE_JUNE</code></span></p></td>
|
574
|
+
<td>June
|
575
|
+
</td>
|
576
|
+
</tr>
|
577
|
+
<tr>
|
578
|
+
<td><p><a name="G-DATE-JULY:CAPS"></a><span class="term"><code class="literal">G_DATE_JULY</code></span></p></td>
|
579
|
+
<td>July
|
580
|
+
</td>
|
581
|
+
</tr>
|
582
|
+
<tr>
|
583
|
+
<td><p><a name="G-DATE-AUGUST:CAPS"></a><span class="term"><code class="literal">G_DATE_AUGUST</code></span></p></td>
|
584
|
+
<td>August
|
585
|
+
</td>
|
586
|
+
</tr>
|
587
|
+
<tr>
|
588
|
+
<td><p><a name="G-DATE-SEPTEMBER:CAPS"></a><span class="term"><code class="literal">G_DATE_SEPTEMBER</code></span></p></td>
|
589
|
+
<td>September
|
590
|
+
</td>
|
591
|
+
</tr>
|
592
|
+
<tr>
|
593
|
+
<td><p><a name="G-DATE-OCTOBER:CAPS"></a><span class="term"><code class="literal">G_DATE_OCTOBER</code></span></p></td>
|
594
|
+
<td>October
|
595
|
+
</td>
|
596
|
+
</tr>
|
597
|
+
<tr>
|
598
|
+
<td><p><a name="G-DATE-NOVEMBER:CAPS"></a><span class="term"><code class="literal">G_DATE_NOVEMBER</code></span></p></td>
|
599
|
+
<td>November
|
600
|
+
</td>
|
601
|
+
</tr>
|
602
|
+
<tr>
|
603
|
+
<td><p><a name="G-DATE-DECEMBER:CAPS"></a><span class="term"><code class="literal">G_DATE_DECEMBER</code></span></p></td>
|
604
|
+
<td>December
|
605
|
+
</td>
|
606
|
+
</tr>
|
607
|
+
</tbody>
|
608
|
+
</table></div>
|
609
|
+
</div>
|
610
|
+
<hr>
|
611
|
+
<div class="refsect2" title="GDateYear">
|
612
|
+
<a name="GDateYear"></a><h3>GDateYear</h3>
|
613
|
+
<pre class="programlisting">typedef guint16 GDateYear;
|
614
|
+
</pre>
|
615
|
+
<p>
|
616
|
+
Integer representing a year; <a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-BAD-YEAR:CAPS" title="G_DATE_BAD_YEAR"><span class="type">G_DATE_BAD_YEAR</span></a> is the invalid
|
617
|
+
value. The year must be 1 or higher; negative (BC) years are not
|
618
|
+
allowed. The year is represented with four digits.
|
619
|
+
</p>
|
620
|
+
</div>
|
621
|
+
<hr>
|
622
|
+
<div class="refsect2" title="enum GDateWeekday">
|
623
|
+
<a name="GDateWeekday"></a><h3>enum GDateWeekday</h3>
|
624
|
+
<pre class="programlisting">typedef enum
|
625
|
+
{
|
626
|
+
G_DATE_BAD_WEEKDAY = 0,
|
627
|
+
G_DATE_MONDAY = 1,
|
628
|
+
G_DATE_TUESDAY = 2,
|
629
|
+
G_DATE_WEDNESDAY = 3,
|
630
|
+
G_DATE_THURSDAY = 4,
|
631
|
+
G_DATE_FRIDAY = 5,
|
632
|
+
G_DATE_SATURDAY = 6,
|
633
|
+
G_DATE_SUNDAY = 7
|
634
|
+
} GDateWeekday;
|
635
|
+
</pre>
|
636
|
+
<p>
|
637
|
+
Enumeration representing a day of the week; <a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-MONDAY:CAPS"><span class="type">G_DATE_MONDAY</span></a>,
|
638
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-TUESDAY:CAPS"><span class="type">G_DATE_TUESDAY</span></a>, etc. <a class="link" href="glib-Date-and-Time-Functions.html#G-DATE-BAD-WEEKDAY:CAPS"><span class="type">G_DATE_BAD_WEEKDAY</span></a> is an invalid weekday.
|
639
|
+
</p>
|
640
|
+
<div class="variablelist"><table border="0">
|
641
|
+
<col align="left" valign="top">
|
642
|
+
<tbody>
|
643
|
+
<tr>
|
644
|
+
<td><p><a name="G-DATE-BAD-WEEKDAY:CAPS"></a><span class="term"><code class="literal">G_DATE_BAD_WEEKDAY</code></span></p></td>
|
645
|
+
<td>invalid value
|
646
|
+
</td>
|
647
|
+
</tr>
|
648
|
+
<tr>
|
649
|
+
<td><p><a name="G-DATE-MONDAY:CAPS"></a><span class="term"><code class="literal">G_DATE_MONDAY</code></span></p></td>
|
650
|
+
<td>Monday
|
651
|
+
</td>
|
652
|
+
</tr>
|
653
|
+
<tr>
|
654
|
+
<td><p><a name="G-DATE-TUESDAY:CAPS"></a><span class="term"><code class="literal">G_DATE_TUESDAY</code></span></p></td>
|
655
|
+
<td>Tuesday
|
656
|
+
</td>
|
657
|
+
</tr>
|
658
|
+
<tr>
|
659
|
+
<td><p><a name="G-DATE-WEDNESDAY:CAPS"></a><span class="term"><code class="literal">G_DATE_WEDNESDAY</code></span></p></td>
|
660
|
+
<td>Wednesday
|
661
|
+
</td>
|
662
|
+
</tr>
|
663
|
+
<tr>
|
664
|
+
<td><p><a name="G-DATE-THURSDAY:CAPS"></a><span class="term"><code class="literal">G_DATE_THURSDAY</code></span></p></td>
|
665
|
+
<td>Thursday
|
666
|
+
</td>
|
667
|
+
</tr>
|
668
|
+
<tr>
|
669
|
+
<td><p><a name="G-DATE-FRIDAY:CAPS"></a><span class="term"><code class="literal">G_DATE_FRIDAY</code></span></p></td>
|
670
|
+
<td>Friday
|
671
|
+
</td>
|
672
|
+
</tr>
|
673
|
+
<tr>
|
674
|
+
<td><p><a name="G-DATE-SATURDAY:CAPS"></a><span class="term"><code class="literal">G_DATE_SATURDAY</code></span></p></td>
|
675
|
+
<td>Saturday
|
676
|
+
</td>
|
677
|
+
</tr>
|
678
|
+
<tr>
|
679
|
+
<td><p><a name="G-DATE-SUNDAY:CAPS"></a><span class="term"><code class="literal">G_DATE_SUNDAY</code></span></p></td>
|
680
|
+
<td>Sunday
|
681
|
+
</td>
|
682
|
+
</tr>
|
683
|
+
</tbody>
|
684
|
+
</table></div>
|
685
|
+
</div>
|
686
|
+
<hr>
|
687
|
+
<div class="refsect2" title="G_DATE_BAD_DAY">
|
688
|
+
<a name="G-DATE-BAD-DAY:CAPS"></a><h3>G_DATE_BAD_DAY</h3>
|
689
|
+
<pre class="programlisting">#define G_DATE_BAD_DAY 0U
|
690
|
+
</pre>
|
691
|
+
<p>
|
692
|
+
Represents an invalid <a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a>.
|
693
|
+
</p>
|
694
|
+
</div>
|
695
|
+
<hr>
|
696
|
+
<div class="refsect2" title="G_DATE_BAD_JULIAN">
|
697
|
+
<a name="G-DATE-BAD-JULIAN:CAPS"></a><h3>G_DATE_BAD_JULIAN</h3>
|
698
|
+
<pre class="programlisting">#define G_DATE_BAD_JULIAN 0U
|
699
|
+
</pre>
|
700
|
+
<p>
|
701
|
+
Represents an invalid Julian day number.
|
702
|
+
</p>
|
703
|
+
</div>
|
704
|
+
<hr>
|
705
|
+
<div class="refsect2" title="G_DATE_BAD_YEAR">
|
706
|
+
<a name="G-DATE-BAD-YEAR:CAPS"></a><h3>G_DATE_BAD_YEAR</h3>
|
707
|
+
<pre class="programlisting">#define G_DATE_BAD_YEAR 0U
|
708
|
+
</pre>
|
709
|
+
<p>
|
710
|
+
Represents an invalid year.
|
711
|
+
</p>
|
712
|
+
</div>
|
713
|
+
<hr>
|
714
|
+
<div class="refsect2" title="g_date_new ()">
|
715
|
+
<a name="g-date-new"></a><h3>g_date_new ()</h3>
|
716
|
+
<pre class="programlisting"><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="returnvalue">GDate</span></a>* g_date_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
717
|
+
<p>
|
718
|
+
Allocates a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> and initializes it to a sane state. The new date will
|
719
|
+
be cleared (as if you'd called <a class="link" href="glib-Date-and-Time-Functions.html#g-date-clear" title="g_date_clear ()"><code class="function">g_date_clear()</code></a>) but invalid (it won't
|
720
|
+
represent an existing day). Free the return value with <a class="link" href="glib-Date-and-Time-Functions.html#g-date-free" title="g_date_free ()"><code class="function">g_date_free()</code></a>.
|
721
|
+
</p>
|
722
|
+
<div class="variablelist"><table border="0">
|
723
|
+
<col align="left" valign="top">
|
724
|
+
<tbody><tr>
|
725
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
726
|
+
<td>a newly-allocated <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
727
|
+
</td>
|
728
|
+
</tr></tbody>
|
729
|
+
</table></div>
|
730
|
+
</div>
|
731
|
+
<hr>
|
732
|
+
<div class="refsect2" title="g_date_new_dmy ()">
|
733
|
+
<a name="g-date-new-dmy"></a><h3>g_date_new_dmy ()</h3>
|
734
|
+
<pre class="programlisting"><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="returnvalue">GDate</span></a>* g_date_new_dmy (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</code></em>,
|
735
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>,
|
736
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);</pre>
|
737
|
+
<p>
|
738
|
+
Like <a class="link" href="glib-Date-and-Time-Functions.html#g-date-new" title="g_date_new ()"><code class="function">g_date_new()</code></a>, but also sets the value of the date. Assuming the
|
739
|
+
day-month-year triplet you pass in represents an existing day, the
|
740
|
+
returned date will be valid.
|
741
|
+
</p>
|
742
|
+
<div class="variablelist"><table border="0">
|
743
|
+
<col align="left" valign="top">
|
744
|
+
<tbody>
|
745
|
+
<tr>
|
746
|
+
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td>
|
747
|
+
<td>day of the month
|
748
|
+
</td>
|
749
|
+
</tr>
|
750
|
+
<tr>
|
751
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
752
|
+
<td>month of the year
|
753
|
+
</td>
|
754
|
+
</tr>
|
755
|
+
<tr>
|
756
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
757
|
+
<td>year
|
758
|
+
</td>
|
759
|
+
</tr>
|
760
|
+
<tr>
|
761
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
762
|
+
<td>a newly-allocated <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> initialized with <em class="parameter"><code>day</code></em>, <em class="parameter"><code>month</code></em>, and <em class="parameter"><code>year</code></em>
|
763
|
+
</td>
|
764
|
+
</tr>
|
765
|
+
</tbody>
|
766
|
+
</table></div>
|
767
|
+
</div>
|
768
|
+
<hr>
|
769
|
+
<div class="refsect2" title="g_date_new_julian ()">
|
770
|
+
<a name="g-date-new-julian"></a><h3>g_date_new_julian ()</h3>
|
771
|
+
<pre class="programlisting"><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="returnvalue">GDate</span></a>* g_date_new_julian (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="type">guint32</span></a> julian_day</code></em>);</pre>
|
772
|
+
<p>
|
773
|
+
Like <a class="link" href="glib-Date-and-Time-Functions.html#g-date-new" title="g_date_new ()"><code class="function">g_date_new()</code></a>, but also sets the value of the date. Assuming the
|
774
|
+
Julian day number you pass in is valid (greater than 0, less than an
|
775
|
+
unreasonably large number), the returned date will be valid.
|
776
|
+
</p>
|
777
|
+
<div class="variablelist"><table border="0">
|
778
|
+
<col align="left" valign="top">
|
779
|
+
<tbody>
|
780
|
+
<tr>
|
781
|
+
<td><p><span class="term"><em class="parameter"><code>julian_day</code></em> :</span></p></td>
|
782
|
+
<td>days since January 1, Year 1
|
783
|
+
</td>
|
784
|
+
</tr>
|
785
|
+
<tr>
|
786
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
787
|
+
<td>a newly-allocated <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> initialized with <em class="parameter"><code>julian_day</code></em>
|
788
|
+
</td>
|
789
|
+
</tr>
|
790
|
+
</tbody>
|
791
|
+
</table></div>
|
792
|
+
</div>
|
793
|
+
<hr>
|
794
|
+
<div class="refsect2" title="g_date_clear ()">
|
795
|
+
<a name="g-date-clear"></a><h3>g_date_clear ()</h3>
|
796
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_clear (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
797
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_dates</code></em>);</pre>
|
798
|
+
<p>
|
799
|
+
Initializes one or more <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> structs to a sane but invalid
|
800
|
+
state. The cleared dates will not represent an existing date, but will
|
801
|
+
not contain garbage. Useful to init a date declared on the stack.
|
802
|
+
Validity can be tested with <a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid" title="g_date_valid ()"><code class="function">g_date_valid()</code></a>.
|
803
|
+
</p>
|
804
|
+
<div class="variablelist"><table border="0">
|
805
|
+
<col align="left" valign="top">
|
806
|
+
<tbody>
|
807
|
+
<tr>
|
808
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
809
|
+
<td>pointer to one or more dates to clear
|
810
|
+
</td>
|
811
|
+
</tr>
|
812
|
+
<tr>
|
813
|
+
<td><p><span class="term"><em class="parameter"><code>n_dates</code></em> :</span></p></td>
|
814
|
+
<td>number of dates to clear
|
815
|
+
</td>
|
816
|
+
</tr>
|
817
|
+
</tbody>
|
818
|
+
</table></div>
|
819
|
+
</div>
|
820
|
+
<hr>
|
821
|
+
<div class="refsect2" title="g_date_free ()">
|
822
|
+
<a name="g-date-free"></a><h3>g_date_free ()</h3>
|
823
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_free (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
824
|
+
<p>
|
825
|
+
Frees a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> returned from <a class="link" href="glib-Date-and-Time-Functions.html#g-date-new" title="g_date_new ()"><code class="function">g_date_new()</code></a>.
|
826
|
+
</p>
|
827
|
+
<div class="variablelist"><table border="0">
|
828
|
+
<col align="left" valign="top">
|
829
|
+
<tbody><tr>
|
830
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
831
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
832
|
+
</td>
|
833
|
+
</tr></tbody>
|
834
|
+
</table></div>
|
835
|
+
</div>
|
836
|
+
<hr>
|
837
|
+
<div class="refsect2" title="g_date_set_day ()">
|
838
|
+
<a name="g-date-set-day"></a><h3>g_date_set_day ()</h3>
|
839
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_set_day (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
840
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</code></em>);</pre>
|
841
|
+
<p>
|
842
|
+
Sets the day of the month for a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>. If the resulting day-month-year
|
843
|
+
triplet is invalid, the date will be invalid.
|
844
|
+
</p>
|
845
|
+
<div class="variablelist"><table border="0">
|
846
|
+
<col align="left" valign="top">
|
847
|
+
<tbody>
|
848
|
+
<tr>
|
849
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
850
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
851
|
+
</td>
|
852
|
+
</tr>
|
853
|
+
<tr>
|
854
|
+
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td>
|
855
|
+
<td>day to set
|
856
|
+
</td>
|
857
|
+
</tr>
|
858
|
+
</tbody>
|
859
|
+
</table></div>
|
860
|
+
</div>
|
861
|
+
<hr>
|
862
|
+
<div class="refsect2" title="g_date_set_month ()">
|
863
|
+
<a name="g-date-set-month"></a><h3>g_date_set_month ()</h3>
|
864
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_set_month (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
865
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>);</pre>
|
866
|
+
<p>
|
867
|
+
Sets the month of the year for a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>. If the resulting
|
868
|
+
day-month-year triplet is invalid, the date will be invalid.
|
869
|
+
</p>
|
870
|
+
<div class="variablelist"><table border="0">
|
871
|
+
<col align="left" valign="top">
|
872
|
+
<tbody>
|
873
|
+
<tr>
|
874
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
875
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
876
|
+
</td>
|
877
|
+
</tr>
|
878
|
+
<tr>
|
879
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
880
|
+
<td>month to set
|
881
|
+
</td>
|
882
|
+
</tr>
|
883
|
+
</tbody>
|
884
|
+
</table></div>
|
885
|
+
</div>
|
886
|
+
<hr>
|
887
|
+
<div class="refsect2" title="g_date_set_year ()">
|
888
|
+
<a name="g-date-set-year"></a><h3>g_date_set_year ()</h3>
|
889
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_set_year (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
890
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);</pre>
|
891
|
+
<p>
|
892
|
+
Sets the year for a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>. If the resulting day-month-year triplet is
|
893
|
+
invalid, the date will be invalid.
|
894
|
+
</p>
|
895
|
+
<div class="variablelist"><table border="0">
|
896
|
+
<col align="left" valign="top">
|
897
|
+
<tbody>
|
898
|
+
<tr>
|
899
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
900
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
901
|
+
</td>
|
902
|
+
</tr>
|
903
|
+
<tr>
|
904
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
905
|
+
<td>year to set
|
906
|
+
</td>
|
907
|
+
</tr>
|
908
|
+
</tbody>
|
909
|
+
</table></div>
|
910
|
+
</div>
|
911
|
+
<hr>
|
912
|
+
<div class="refsect2" title="g_date_set_dmy ()">
|
913
|
+
<a name="g-date-set-dmy"></a><h3>g_date_set_dmy ()</h3>
|
914
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_set_dmy (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
915
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</code></em>,
|
916
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>,
|
917
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> y</code></em>);</pre>
|
918
|
+
<p>
|
919
|
+
Sets the value of a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> from a day, month, and year. The day-month-year
|
920
|
+
triplet must be valid; if you aren't sure it is, call <a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid-dmy" title="g_date_valid_dmy ()"><code class="function">g_date_valid_dmy()</code></a> to
|
921
|
+
check before you set it.
|
922
|
+
</p>
|
923
|
+
<div class="variablelist"><table border="0">
|
924
|
+
<col align="left" valign="top">
|
925
|
+
<tbody>
|
926
|
+
<tr>
|
927
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
928
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
929
|
+
</td>
|
930
|
+
</tr>
|
931
|
+
<tr>
|
932
|
+
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td>
|
933
|
+
<td>day
|
934
|
+
</td>
|
935
|
+
</tr>
|
936
|
+
<tr>
|
937
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
938
|
+
<td>month
|
939
|
+
</td>
|
940
|
+
</tr>
|
941
|
+
<tr>
|
942
|
+
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
|
943
|
+
<td>year
|
944
|
+
</td>
|
945
|
+
</tr>
|
946
|
+
</tbody>
|
947
|
+
</table></div>
|
948
|
+
</div>
|
949
|
+
<hr>
|
950
|
+
<div class="refsect2" title="g_date_set_julian ()">
|
951
|
+
<a name="g-date-set-julian"></a><h3>g_date_set_julian ()</h3>
|
952
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_set_julian (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
953
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="type">guint32</span></a> julian_date</code></em>);</pre>
|
954
|
+
<p>
|
955
|
+
Sets the value of a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> from a Julian day number.
|
956
|
+
</p>
|
957
|
+
<div class="variablelist"><table border="0">
|
958
|
+
<col align="left" valign="top">
|
959
|
+
<tbody>
|
960
|
+
<tr>
|
961
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
962
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
963
|
+
</td>
|
964
|
+
</tr>
|
965
|
+
<tr>
|
966
|
+
<td><p><span class="term"><em class="parameter"><code>julian_date</code></em> :</span></p></td>
|
967
|
+
<td>Julian day number (days since January 1, Year 1)
|
968
|
+
</td>
|
969
|
+
</tr>
|
970
|
+
</tbody>
|
971
|
+
</table></div>
|
972
|
+
</div>
|
973
|
+
<hr>
|
974
|
+
<div class="refsect2" title="g_date_set_time ()">
|
975
|
+
<a name="g-date-set-time"></a><h3>g_date_set_time ()</h3>
|
976
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_set_time (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
977
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTime" title="GTime"><span class="type">GTime</span></a> time_</code></em>);</pre>
|
978
|
+
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
979
|
+
<h3 class="title">Warning</h3>
|
980
|
+
<p><code class="literal">g_date_set_time</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use <a class="link" href="glib-Date-and-Time-Functions.html#g-date-set-time-t" title="g_date_set_time_t ()"><code class="function">g_date_set_time_t()</code></a> instead.</p>
|
981
|
+
</div>
|
982
|
+
<p>
|
983
|
+
Sets the value of a date from a <a class="link" href="glib-Date-and-Time-Functions.html#GTime" title="GTime"><span class="type">GTime</span></a> value.
|
984
|
+
The time to date conversion is done using the user's current timezone.
|
985
|
+
</p>
|
986
|
+
<div class="variablelist"><table border="0">
|
987
|
+
<col align="left" valign="top">
|
988
|
+
<tbody>
|
989
|
+
<tr>
|
990
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
991
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>.
|
992
|
+
</td>
|
993
|
+
</tr>
|
994
|
+
<tr>
|
995
|
+
<td><p><span class="term"><em class="parameter"><code>time_</code></em> :</span></p></td>
|
996
|
+
<td>
|
997
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GTime" title="GTime"><span class="type">GTime</span></a> value to set.
|
998
|
+
</td>
|
999
|
+
</tr>
|
1000
|
+
</tbody>
|
1001
|
+
</table></div>
|
1002
|
+
</div>
|
1003
|
+
<hr>
|
1004
|
+
<div class="refsect2" title="g_date_set_time_t ()">
|
1005
|
+
<a name="g-date-set-time-t"></a><h3>g_date_set_time_t ()</h3>
|
1006
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_set_time_t (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1007
|
+
<em class="parameter"><code><span class="type">time_t</span> timet</code></em>);</pre>
|
1008
|
+
<p>
|
1009
|
+
Sets the value of a date to the date corresponding to a time
|
1010
|
+
specified as a time_t. The time to date conversion is done using
|
1011
|
+
the user's current timezone.
|
1012
|
+
</p>
|
1013
|
+
<p>
|
1014
|
+
To set the value of a date to the current day, you could write:
|
1015
|
+
</p>
|
1016
|
+
<div class="informalexample">
|
1017
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
1018
|
+
<tbody>
|
1019
|
+
<tr>
|
1020
|
+
<td class="listing_lines" align="right"><pre>1</pre></td>
|
1021
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="glib-Date-and-Time-Functions.html#g-date-set-time-t">g_date_set_time_t</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">date</span><span class="symbol">,</span><span class="normal"> </span><span class="function">time</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">));</span></pre></td>
|
1022
|
+
</tr>
|
1023
|
+
</tbody>
|
1024
|
+
</table>
|
1025
|
+
</div>
|
1026
|
+
|
1027
|
+
<p>
|
1028
|
+
</p>
|
1029
|
+
<div class="variablelist"><table border="0">
|
1030
|
+
<col align="left" valign="top">
|
1031
|
+
<tbody>
|
1032
|
+
<tr>
|
1033
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1034
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
1035
|
+
</td>
|
1036
|
+
</tr>
|
1037
|
+
<tr>
|
1038
|
+
<td><p><span class="term"><em class="parameter"><code>timet</code></em> :</span></p></td>
|
1039
|
+
<td>
|
1040
|
+
<span class="type">time_t</span> value to set
|
1041
|
+
</td>
|
1042
|
+
</tr>
|
1043
|
+
</tbody>
|
1044
|
+
</table></div>
|
1045
|
+
<p class="since">Since 2.10</p>
|
1046
|
+
</div>
|
1047
|
+
<hr>
|
1048
|
+
<div class="refsect2" title="g_date_set_time_val ()">
|
1049
|
+
<a name="g-date-set-time-val"></a><h3>g_date_set_time_val ()</h3>
|
1050
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_set_time_val (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1051
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> *timeval</code></em>);</pre>
|
1052
|
+
<p>
|
1053
|
+
Sets the value of a date from a <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> value. Note that the
|
1054
|
+
<em class="parameter"><code>tv_usec</code></em> member is ignored, because <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> can't make use of the
|
1055
|
+
additional precision.
|
1056
|
+
</p>
|
1057
|
+
<div class="variablelist"><table border="0">
|
1058
|
+
<col align="left" valign="top">
|
1059
|
+
<tbody>
|
1060
|
+
<tr>
|
1061
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1062
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
1063
|
+
</td>
|
1064
|
+
</tr>
|
1065
|
+
<tr>
|
1066
|
+
<td><p><span class="term"><em class="parameter"><code>timeval</code></em> :</span></p></td>
|
1067
|
+
<td>
|
1068
|
+
<a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal"><span class="type">GTimeVal</span></a> value to set
|
1069
|
+
</td>
|
1070
|
+
</tr>
|
1071
|
+
</tbody>
|
1072
|
+
</table></div>
|
1073
|
+
<p class="since">Since 2.10</p>
|
1074
|
+
</div>
|
1075
|
+
<hr>
|
1076
|
+
<div class="refsect2" title="g_date_set_parse ()">
|
1077
|
+
<a name="g-date-set-parse"></a><h3>g_date_set_parse ()</h3>
|
1078
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_set_parse (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1079
|
+
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str</code></em>);</pre>
|
1080
|
+
<p>
|
1081
|
+
Parses a user-inputted string <em class="parameter"><code>str</code></em>, and try to figure out what date it
|
1082
|
+
represents, taking the <a class="link" href="glib-running.html#setlocale" title="Locale">current locale</a>
|
1083
|
+
into account. If the string is successfully parsed, the date will be
|
1084
|
+
valid after the call. Otherwise, it will be invalid. You should check
|
1085
|
+
using <a class="link" href="glib-Date-and-Time-Functions.html#g-date-valid" title="g_date_valid ()"><code class="function">g_date_valid()</code></a> to see whether the parsing succeeded.
|
1086
|
+
</p>
|
1087
|
+
<p>
|
1088
|
+
This function is not appropriate for file formats and the like; it
|
1089
|
+
isn't very precise, and its exact behavior varies with the
|
1090
|
+
locale. It's intended to be a heuristic routine that guesses what the
|
1091
|
+
user means by a given string (and it does work pretty well in that
|
1092
|
+
capacity).
|
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>date</code></em> :</span></p></td>
|
1099
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to fill in
|
1100
|
+
</td>
|
1101
|
+
</tr>
|
1102
|
+
<tr>
|
1103
|
+
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
1104
|
+
<td>string to parse
|
1105
|
+
</td>
|
1106
|
+
</tr>
|
1107
|
+
</tbody>
|
1108
|
+
</table></div>
|
1109
|
+
</div>
|
1110
|
+
<hr>
|
1111
|
+
<div class="refsect2" title="g_date_add_days ()">
|
1112
|
+
<a name="g-date-add-days"></a><h3>g_date_add_days ()</h3>
|
1113
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_add_days (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1114
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_days</code></em>);</pre>
|
1115
|
+
<p>
|
1116
|
+
Increments a date some number of days. To move forward by weeks, add
|
1117
|
+
weeks*7 days. The date must be valid.
|
1118
|
+
</p>
|
1119
|
+
<div class="variablelist"><table border="0">
|
1120
|
+
<col align="left" valign="top">
|
1121
|
+
<tbody>
|
1122
|
+
<tr>
|
1123
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1124
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to increment
|
1125
|
+
</td>
|
1126
|
+
</tr>
|
1127
|
+
<tr>
|
1128
|
+
<td><p><span class="term"><em class="parameter"><code>n_days</code></em> :</span></p></td>
|
1129
|
+
<td>number of days to move the date forward
|
1130
|
+
</td>
|
1131
|
+
</tr>
|
1132
|
+
</tbody>
|
1133
|
+
</table></div>
|
1134
|
+
</div>
|
1135
|
+
<hr>
|
1136
|
+
<div class="refsect2" title="g_date_subtract_days ()">
|
1137
|
+
<a name="g-date-subtract-days"></a><h3>g_date_subtract_days ()</h3>
|
1138
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_subtract_days (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1139
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_days</code></em>);</pre>
|
1140
|
+
<p>
|
1141
|
+
Moves a date some number of days into the past. To move by weeks, just
|
1142
|
+
move by weeks*7 days. The date must be valid.
|
1143
|
+
</p>
|
1144
|
+
<div class="variablelist"><table border="0">
|
1145
|
+
<col align="left" valign="top">
|
1146
|
+
<tbody>
|
1147
|
+
<tr>
|
1148
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1149
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to decrement
|
1150
|
+
</td>
|
1151
|
+
</tr>
|
1152
|
+
<tr>
|
1153
|
+
<td><p><span class="term"><em class="parameter"><code>n_days</code></em> :</span></p></td>
|
1154
|
+
<td>number of days to move
|
1155
|
+
</td>
|
1156
|
+
</tr>
|
1157
|
+
</tbody>
|
1158
|
+
</table></div>
|
1159
|
+
</div>
|
1160
|
+
<hr>
|
1161
|
+
<div class="refsect2" title="g_date_add_months ()">
|
1162
|
+
<a name="g-date-add-months"></a><h3>g_date_add_months ()</h3>
|
1163
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_add_months (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1164
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_months</code></em>);</pre>
|
1165
|
+
<p>
|
1166
|
+
Increments a date by some number of months. If the day of the month is
|
1167
|
+
greater than 28, this routine may change the day of the month (because
|
1168
|
+
the destination month may not have the current day in it). The date
|
1169
|
+
must be valid.
|
1170
|
+
</p>
|
1171
|
+
<div class="variablelist"><table border="0">
|
1172
|
+
<col align="left" valign="top">
|
1173
|
+
<tbody>
|
1174
|
+
<tr>
|
1175
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1176
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to increment
|
1177
|
+
</td>
|
1178
|
+
</tr>
|
1179
|
+
<tr>
|
1180
|
+
<td><p><span class="term"><em class="parameter"><code>n_months</code></em> :</span></p></td>
|
1181
|
+
<td>number of months to move forward
|
1182
|
+
</td>
|
1183
|
+
</tr>
|
1184
|
+
</tbody>
|
1185
|
+
</table></div>
|
1186
|
+
</div>
|
1187
|
+
<hr>
|
1188
|
+
<div class="refsect2" title="g_date_subtract_months ()">
|
1189
|
+
<a name="g-date-subtract-months"></a><h3>g_date_subtract_months ()</h3>
|
1190
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_subtract_months (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1191
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_months</code></em>);</pre>
|
1192
|
+
<p>
|
1193
|
+
Moves a date some number of months into the past. If the current day of
|
1194
|
+
the month doesn't exist in the destination month, the day of the month
|
1195
|
+
may change. The date must be valid.
|
1196
|
+
</p>
|
1197
|
+
<div class="variablelist"><table border="0">
|
1198
|
+
<col align="left" valign="top">
|
1199
|
+
<tbody>
|
1200
|
+
<tr>
|
1201
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1202
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to decrement
|
1203
|
+
</td>
|
1204
|
+
</tr>
|
1205
|
+
<tr>
|
1206
|
+
<td><p><span class="term"><em class="parameter"><code>n_months</code></em> :</span></p></td>
|
1207
|
+
<td>number of months to move
|
1208
|
+
</td>
|
1209
|
+
</tr>
|
1210
|
+
</tbody>
|
1211
|
+
</table></div>
|
1212
|
+
</div>
|
1213
|
+
<hr>
|
1214
|
+
<div class="refsect2" title="g_date_add_years ()">
|
1215
|
+
<a name="g-date-add-years"></a><h3>g_date_add_years ()</h3>
|
1216
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_add_years (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1217
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_years</code></em>);</pre>
|
1218
|
+
<p>
|
1219
|
+
Increments a date by some number of years. If the date is February 29,
|
1220
|
+
and the destination year is not a leap year, the date will be changed
|
1221
|
+
to February 28. The date must be valid.
|
1222
|
+
</p>
|
1223
|
+
<div class="variablelist"><table border="0">
|
1224
|
+
<col align="left" valign="top">
|
1225
|
+
<tbody>
|
1226
|
+
<tr>
|
1227
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1228
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to increment
|
1229
|
+
</td>
|
1230
|
+
</tr>
|
1231
|
+
<tr>
|
1232
|
+
<td><p><span class="term"><em class="parameter"><code>n_years</code></em> :</span></p></td>
|
1233
|
+
<td>number of years to move forward
|
1234
|
+
</td>
|
1235
|
+
</tr>
|
1236
|
+
</tbody>
|
1237
|
+
</table></div>
|
1238
|
+
</div>
|
1239
|
+
<hr>
|
1240
|
+
<div class="refsect2" title="g_date_subtract_years ()">
|
1241
|
+
<a name="g-date-subtract-years"></a><h3>g_date_subtract_years ()</h3>
|
1242
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_subtract_years (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1243
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> n_years</code></em>);</pre>
|
1244
|
+
<p>
|
1245
|
+
Moves a date some number of years into the past. If the current day
|
1246
|
+
doesn't exist in the destination year (i.e. it's February 29 and you
|
1247
|
+
move to a non-leap-year) then the day is changed to February 29. The date
|
1248
|
+
must be valid.
|
1249
|
+
</p>
|
1250
|
+
<div class="variablelist"><table border="0">
|
1251
|
+
<col align="left" valign="top">
|
1252
|
+
<tbody>
|
1253
|
+
<tr>
|
1254
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1255
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to decrement
|
1256
|
+
</td>
|
1257
|
+
</tr>
|
1258
|
+
<tr>
|
1259
|
+
<td><p><span class="term"><em class="parameter"><code>n_years</code></em> :</span></p></td>
|
1260
|
+
<td>number of years to move
|
1261
|
+
</td>
|
1262
|
+
</tr>
|
1263
|
+
</tbody>
|
1264
|
+
</table></div>
|
1265
|
+
</div>
|
1266
|
+
<hr>
|
1267
|
+
<div class="refsect2" title="g_date_days_between ()">
|
1268
|
+
<a name="g-date-days-between"></a><h3>g_date_days_between ()</h3>
|
1269
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_days_between (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date1</code></em>,
|
1270
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date2</code></em>);</pre>
|
1271
|
+
<p>
|
1272
|
+
Computes the number of days between two dates.
|
1273
|
+
If <em class="parameter"><code>date2</code></em> is prior to <em class="parameter"><code>date1</code></em>, the returned value is negative.
|
1274
|
+
Both dates must be valid.
|
1275
|
+
</p>
|
1276
|
+
<div class="variablelist"><table border="0">
|
1277
|
+
<col align="left" valign="top">
|
1278
|
+
<tbody>
|
1279
|
+
<tr>
|
1280
|
+
<td><p><span class="term"><em class="parameter"><code>date1</code></em> :</span></p></td>
|
1281
|
+
<td>the first date
|
1282
|
+
</td>
|
1283
|
+
</tr>
|
1284
|
+
<tr>
|
1285
|
+
<td><p><span class="term"><em class="parameter"><code>date2</code></em> :</span></p></td>
|
1286
|
+
<td>the second date
|
1287
|
+
</td>
|
1288
|
+
</tr>
|
1289
|
+
<tr>
|
1290
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1291
|
+
<td>the number of days between <em class="parameter"><code>date1</code></em> and <em class="parameter"><code>date2</code></em>
|
1292
|
+
</td>
|
1293
|
+
</tr>
|
1294
|
+
</tbody>
|
1295
|
+
</table></div>
|
1296
|
+
</div>
|
1297
|
+
<hr>
|
1298
|
+
<div class="refsect2" title="g_date_compare ()">
|
1299
|
+
<a name="g-date-compare"></a><h3>g_date_compare ()</h3>
|
1300
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_date_compare (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *lhs</code></em>,
|
1301
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *rhs</code></em>);</pre>
|
1302
|
+
<p>
|
1303
|
+
<code class="function">qsort()</code>-style comparsion function for dates. Both
|
1304
|
+
dates must be valid.
|
1305
|
+
</p>
|
1306
|
+
<div class="variablelist"><table border="0">
|
1307
|
+
<col align="left" valign="top">
|
1308
|
+
<tbody>
|
1309
|
+
<tr>
|
1310
|
+
<td><p><span class="term"><em class="parameter"><code>lhs</code></em> :</span></p></td>
|
1311
|
+
<td>first date to compare
|
1312
|
+
</td>
|
1313
|
+
</tr>
|
1314
|
+
<tr>
|
1315
|
+
<td><p><span class="term"><em class="parameter"><code>rhs</code></em> :</span></p></td>
|
1316
|
+
<td>second date to compare
|
1317
|
+
</td>
|
1318
|
+
</tr>
|
1319
|
+
<tr>
|
1320
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1321
|
+
<td>0 for equal, less than zero if <em class="parameter"><code>lhs</code></em> is less than <em class="parameter"><code>rhs</code></em>,
|
1322
|
+
greater than zero if <em class="parameter"><code>lhs</code></em> is greater than <em class="parameter"><code>rhs</code></em>
|
1323
|
+
</td>
|
1324
|
+
</tr>
|
1325
|
+
</tbody>
|
1326
|
+
</table></div>
|
1327
|
+
</div>
|
1328
|
+
<hr>
|
1329
|
+
<div class="refsect2" title="g_date_clamp ()">
|
1330
|
+
<a name="g-date-clamp"></a><h3>g_date_clamp ()</h3>
|
1331
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_clamp (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1332
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *min_date</code></em>,
|
1333
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *max_date</code></em>);</pre>
|
1334
|
+
<p>
|
1335
|
+
If <em class="parameter"><code>date</code></em> is prior to <em class="parameter"><code>min_date</code></em>, sets <em class="parameter"><code>date</code></em> equal to <em class="parameter"><code>min_date</code></em>.
|
1336
|
+
If <em class="parameter"><code>date</code></em> falls after <em class="parameter"><code>max_date</code></em>, sets <em class="parameter"><code>date</code></em> equal to <em class="parameter"><code>max_date</code></em>.
|
1337
|
+
Otherwise, <em class="parameter"><code>date</code></em> is unchanged.
|
1338
|
+
Either of <em class="parameter"><code>min_date</code></em> and <em class="parameter"><code>max_date</code></em> may be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. All non-<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> dates
|
1339
|
+
must be valid.
|
1340
|
+
</p>
|
1341
|
+
<div class="variablelist"><table border="0">
|
1342
|
+
<col align="left" valign="top">
|
1343
|
+
<tbody>
|
1344
|
+
<tr>
|
1345
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1346
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to clamp
|
1347
|
+
</td>
|
1348
|
+
</tr>
|
1349
|
+
<tr>
|
1350
|
+
<td><p><span class="term"><em class="parameter"><code>min_date</code></em> :</span></p></td>
|
1351
|
+
<td>minimum accepted value for <em class="parameter"><code>date</code></em>
|
1352
|
+
</td>
|
1353
|
+
</tr>
|
1354
|
+
<tr>
|
1355
|
+
<td><p><span class="term"><em class="parameter"><code>max_date</code></em> :</span></p></td>
|
1356
|
+
<td>maximum accepted value for <em class="parameter"><code>date</code></em>
|
1357
|
+
</td>
|
1358
|
+
</tr>
|
1359
|
+
</tbody>
|
1360
|
+
</table></div>
|
1361
|
+
</div>
|
1362
|
+
<hr>
|
1363
|
+
<div class="refsect2" title="g_date_order ()">
|
1364
|
+
<a name="g-date-order"></a><h3>g_date_order ()</h3>
|
1365
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_order (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date1</code></em>,
|
1366
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date2</code></em>);</pre>
|
1367
|
+
<p>
|
1368
|
+
Checks if <em class="parameter"><code>date1</code></em> is less than or equal to <em class="parameter"><code>date2</code></em>,
|
1369
|
+
and swap the values if this is not the case.
|
1370
|
+
</p>
|
1371
|
+
<div class="variablelist"><table border="0">
|
1372
|
+
<col align="left" valign="top">
|
1373
|
+
<tbody>
|
1374
|
+
<tr>
|
1375
|
+
<td><p><span class="term"><em class="parameter"><code>date1</code></em> :</span></p></td>
|
1376
|
+
<td>the first date
|
1377
|
+
</td>
|
1378
|
+
</tr>
|
1379
|
+
<tr>
|
1380
|
+
<td><p><span class="term"><em class="parameter"><code>date2</code></em> :</span></p></td>
|
1381
|
+
<td>the second date
|
1382
|
+
</td>
|
1383
|
+
</tr>
|
1384
|
+
</tbody>
|
1385
|
+
</table></div>
|
1386
|
+
</div>
|
1387
|
+
<hr>
|
1388
|
+
<div class="refsect2" title="g_date_get_day ()">
|
1389
|
+
<a name="g-date-get-day"></a><h3>g_date_get_day ()</h3>
|
1390
|
+
<pre class="programlisting"><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="returnvalue">GDateDay</span></a> g_date_get_day (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1391
|
+
<p>
|
1392
|
+
Returns the day of the month. The date must be valid.
|
1393
|
+
</p>
|
1394
|
+
<div class="variablelist"><table border="0">
|
1395
|
+
<col align="left" valign="top">
|
1396
|
+
<tbody>
|
1397
|
+
<tr>
|
1398
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1399
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to extract the day of the month from
|
1400
|
+
</td>
|
1401
|
+
</tr>
|
1402
|
+
<tr>
|
1403
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1404
|
+
<td>day of the month
|
1405
|
+
</td>
|
1406
|
+
</tr>
|
1407
|
+
</tbody>
|
1408
|
+
</table></div>
|
1409
|
+
</div>
|
1410
|
+
<hr>
|
1411
|
+
<div class="refsect2" title="g_date_get_month ()">
|
1412
|
+
<a name="g-date-get-month"></a><h3>g_date_get_month ()</h3>
|
1413
|
+
<pre class="programlisting"><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="returnvalue">GDateMonth</span></a> g_date_get_month (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1414
|
+
<p>
|
1415
|
+
Returns the month of the year. The date must be valid.
|
1416
|
+
</p>
|
1417
|
+
<div class="variablelist"><table border="0">
|
1418
|
+
<col align="left" valign="top">
|
1419
|
+
<tbody>
|
1420
|
+
<tr>
|
1421
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1422
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to get the month from
|
1423
|
+
</td>
|
1424
|
+
</tr>
|
1425
|
+
<tr>
|
1426
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1427
|
+
<td>month of the year as a <a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a>
|
1428
|
+
</td>
|
1429
|
+
</tr>
|
1430
|
+
</tbody>
|
1431
|
+
</table></div>
|
1432
|
+
</div>
|
1433
|
+
<hr>
|
1434
|
+
<div class="refsect2" title="g_date_get_year ()">
|
1435
|
+
<a name="g-date-get-year"></a><h3>g_date_get_year ()</h3>
|
1436
|
+
<pre class="programlisting"><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="returnvalue">GDateYear</span></a> g_date_get_year (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1437
|
+
<p>
|
1438
|
+
Returns the year of a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>. The date must be valid.
|
1439
|
+
</p>
|
1440
|
+
<div class="variablelist"><table border="0">
|
1441
|
+
<col align="left" valign="top">
|
1442
|
+
<tbody>
|
1443
|
+
<tr>
|
1444
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1445
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
1446
|
+
</td>
|
1447
|
+
</tr>
|
1448
|
+
<tr>
|
1449
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1450
|
+
<td>year in which the date falls
|
1451
|
+
</td>
|
1452
|
+
</tr>
|
1453
|
+
</tbody>
|
1454
|
+
</table></div>
|
1455
|
+
</div>
|
1456
|
+
<hr>
|
1457
|
+
<div class="refsect2" title="g_date_get_julian ()">
|
1458
|
+
<a name="g-date-get-julian"></a><h3>g_date_get_julian ()</h3>
|
1459
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="returnvalue">guint32</span></a> g_date_get_julian (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1460
|
+
<p>
|
1461
|
+
Returns the Julian day or "serial number" of the <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>. The
|
1462
|
+
Julian day is simply the number of days since January 1, Year 1; i.e.,
|
1463
|
+
January 1, Year 1 is Julian day 1; January 2, Year 1 is Julian day 2,
|
1464
|
+
etc. The date must be valid.
|
1465
|
+
</p>
|
1466
|
+
<div class="variablelist"><table border="0">
|
1467
|
+
<col align="left" valign="top">
|
1468
|
+
<tbody>
|
1469
|
+
<tr>
|
1470
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1471
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to extract the Julian day from
|
1472
|
+
</td>
|
1473
|
+
</tr>
|
1474
|
+
<tr>
|
1475
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1476
|
+
<td>Julian day
|
1477
|
+
</td>
|
1478
|
+
</tr>
|
1479
|
+
</tbody>
|
1480
|
+
</table></div>
|
1481
|
+
</div>
|
1482
|
+
<hr>
|
1483
|
+
<div class="refsect2" title="g_date_get_weekday ()">
|
1484
|
+
<a name="g-date-get-weekday"></a><h3>g_date_get_weekday ()</h3>
|
1485
|
+
<pre class="programlisting"><a class="link" href="glib-Date-and-Time-Functions.html#GDateWeekday" title="enum GDateWeekday"><span class="returnvalue">GDateWeekday</span></a> g_date_get_weekday (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1486
|
+
<p>
|
1487
|
+
Returns the day of the week for a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>. The date must be valid.
|
1488
|
+
</p>
|
1489
|
+
<div class="variablelist"><table border="0">
|
1490
|
+
<col align="left" valign="top">
|
1491
|
+
<tbody>
|
1492
|
+
<tr>
|
1493
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1494
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>.
|
1495
|
+
</td>
|
1496
|
+
</tr>
|
1497
|
+
<tr>
|
1498
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1499
|
+
<td>day of the week as a <a class="link" href="glib-Date-and-Time-Functions.html#GDateWeekday" title="enum GDateWeekday"><span class="type">GDateWeekday</span></a>.
|
1500
|
+
</td>
|
1501
|
+
</tr>
|
1502
|
+
</tbody>
|
1503
|
+
</table></div>
|
1504
|
+
</div>
|
1505
|
+
<hr>
|
1506
|
+
<div class="refsect2" title="g_date_get_day_of_year ()">
|
1507
|
+
<a name="g-date-get-day-of-year"></a><h3>g_date_get_day_of_year ()</h3>
|
1508
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_date_get_day_of_year (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1509
|
+
<p>
|
1510
|
+
Returns the day of the year, where Jan 1 is the first day of the
|
1511
|
+
year. The date must be valid.
|
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>date</code></em> :</span></p></td>
|
1518
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to extract day of year from
|
1519
|
+
</td>
|
1520
|
+
</tr>
|
1521
|
+
<tr>
|
1522
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1523
|
+
<td>day of the year
|
1524
|
+
</td>
|
1525
|
+
</tr>
|
1526
|
+
</tbody>
|
1527
|
+
</table></div>
|
1528
|
+
</div>
|
1529
|
+
<hr>
|
1530
|
+
<div class="refsect2" title="g_date_get_days_in_month ()">
|
1531
|
+
<a name="g-date-get-days-in-month"></a><h3>g_date_get_days_in_month ()</h3>
|
1532
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint8" title="guint8"><span class="returnvalue">guint8</span></a> g_date_get_days_in_month (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>,
|
1533
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);</pre>
|
1534
|
+
<p>
|
1535
|
+
Returns the number of days in a month, taking leap years into account.
|
1536
|
+
</p>
|
1537
|
+
<div class="variablelist"><table border="0">
|
1538
|
+
<col align="left" valign="top">
|
1539
|
+
<tbody>
|
1540
|
+
<tr>
|
1541
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
1542
|
+
<td>month
|
1543
|
+
</td>
|
1544
|
+
</tr>
|
1545
|
+
<tr>
|
1546
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
1547
|
+
<td>year
|
1548
|
+
</td>
|
1549
|
+
</tr>
|
1550
|
+
<tr>
|
1551
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1552
|
+
<td>number of days in <em class="parameter"><code>month</code></em> during the <em class="parameter"><code>year</code></em>
|
1553
|
+
</td>
|
1554
|
+
</tr>
|
1555
|
+
</tbody>
|
1556
|
+
</table></div>
|
1557
|
+
</div>
|
1558
|
+
<hr>
|
1559
|
+
<div class="refsect2" title="g_date_is_first_of_month ()">
|
1560
|
+
<a name="g-date-is-first-of-month"></a><h3>g_date_is_first_of_month ()</h3>
|
1561
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_is_first_of_month (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1562
|
+
<p>
|
1563
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the date is on the first of a month. The date must be valid.
|
1564
|
+
</p>
|
1565
|
+
<div class="variablelist"><table border="0">
|
1566
|
+
<col align="left" valign="top">
|
1567
|
+
<tbody>
|
1568
|
+
<tr>
|
1569
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1570
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to check
|
1571
|
+
</td>
|
1572
|
+
</tr>
|
1573
|
+
<tr>
|
1574
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1575
|
+
<td>
|
1576
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the date is the first of the month
|
1577
|
+
</td>
|
1578
|
+
</tr>
|
1579
|
+
</tbody>
|
1580
|
+
</table></div>
|
1581
|
+
</div>
|
1582
|
+
<hr>
|
1583
|
+
<div class="refsect2" title="g_date_is_last_of_month ()">
|
1584
|
+
<a name="g-date-is-last-of-month"></a><h3>g_date_is_last_of_month ()</h3>
|
1585
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_is_last_of_month (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1586
|
+
<p>
|
1587
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the date is the last day of the month. The date must be valid.
|
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>date</code></em> :</span></p></td>
|
1594
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to check
|
1595
|
+
</td>
|
1596
|
+
</tr>
|
1597
|
+
<tr>
|
1598
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1599
|
+
<td>
|
1600
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the date is the last day of the month
|
1601
|
+
</td>
|
1602
|
+
</tr>
|
1603
|
+
</tbody>
|
1604
|
+
</table></div>
|
1605
|
+
</div>
|
1606
|
+
<hr>
|
1607
|
+
<div class="refsect2" title="g_date_is_leap_year ()">
|
1608
|
+
<a name="g-date-is-leap-year"></a><h3>g_date_is_leap_year ()</h3>
|
1609
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_is_leap_year (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);</pre>
|
1610
|
+
<p>
|
1611
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the year is a leap year.<sup>[<a name="id701533" href="#ftn.id701533" class="footnote">4</a>]</sup>
|
1612
|
+
</p>
|
1613
|
+
<div class="variablelist"><table border="0">
|
1614
|
+
<col align="left" valign="top">
|
1615
|
+
<tbody>
|
1616
|
+
<tr>
|
1617
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
1618
|
+
<td>year to check
|
1619
|
+
</td>
|
1620
|
+
</tr>
|
1621
|
+
<tr>
|
1622
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1623
|
+
<td>
|
1624
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the year is a leap year
|
1625
|
+
</td>
|
1626
|
+
</tr>
|
1627
|
+
</tbody>
|
1628
|
+
</table></div>
|
1629
|
+
</div>
|
1630
|
+
<hr>
|
1631
|
+
<div class="refsect2" title="g_date_get_monday_week_of_year ()">
|
1632
|
+
<a name="g-date-get-monday-week-of-year"></a><h3>g_date_get_monday_week_of_year ()</h3>
|
1633
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_date_get_monday_week_of_year (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1634
|
+
<p>
|
1635
|
+
Returns the week of the year, where weeks are understood to start on
|
1636
|
+
Monday. If the date is before the first Monday of the year, return
|
1637
|
+
0. The date must be valid.
|
1638
|
+
</p>
|
1639
|
+
<div class="variablelist"><table border="0">
|
1640
|
+
<col align="left" valign="top">
|
1641
|
+
<tbody>
|
1642
|
+
<tr>
|
1643
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1644
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
1645
|
+
</td>
|
1646
|
+
</tr>
|
1647
|
+
<tr>
|
1648
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1649
|
+
<td>week of the year
|
1650
|
+
</td>
|
1651
|
+
</tr>
|
1652
|
+
</tbody>
|
1653
|
+
</table></div>
|
1654
|
+
</div>
|
1655
|
+
<hr>
|
1656
|
+
<div class="refsect2" title="g_date_get_monday_weeks_in_year ()">
|
1657
|
+
<a name="g-date-get-monday-weeks-in-year"></a><h3>g_date_get_monday_weeks_in_year ()</h3>
|
1658
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint8" title="guint8"><span class="returnvalue">guint8</span></a> g_date_get_monday_weeks_in_year (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);</pre>
|
1659
|
+
<p>
|
1660
|
+
Returns the number of weeks in the year, where weeks are taken to start
|
1661
|
+
on Monday. Will be 52 or 53. The date must be valid. (Years always have 52
|
1662
|
+
7-day periods, plus 1 or 2 extra days depending on whether it's a leap
|
1663
|
+
year. This function is basically telling you how many Mondays are in
|
1664
|
+
the year, i.e. there are 53 Mondays if one of the extra days happens
|
1665
|
+
to be a Monday.)
|
1666
|
+
</p>
|
1667
|
+
<div class="variablelist"><table border="0">
|
1668
|
+
<col align="left" valign="top">
|
1669
|
+
<tbody>
|
1670
|
+
<tr>
|
1671
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
1672
|
+
<td>a year
|
1673
|
+
</td>
|
1674
|
+
</tr>
|
1675
|
+
<tr>
|
1676
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1677
|
+
<td>number of Mondays in the year
|
1678
|
+
</td>
|
1679
|
+
</tr>
|
1680
|
+
</tbody>
|
1681
|
+
</table></div>
|
1682
|
+
</div>
|
1683
|
+
<hr>
|
1684
|
+
<div class="refsect2" title="g_date_get_sunday_week_of_year ()">
|
1685
|
+
<a name="g-date-get-sunday-week-of-year"></a><h3>g_date_get_sunday_week_of_year ()</h3>
|
1686
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_date_get_sunday_week_of_year (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1687
|
+
<p>
|
1688
|
+
Returns the week of the year during which this date falls, if weeks
|
1689
|
+
are understood to being on Sunday. The date must be valid. Can return 0 if
|
1690
|
+
the day is before the first Sunday of the year.
|
1691
|
+
</p>
|
1692
|
+
<div class="variablelist"><table border="0">
|
1693
|
+
<col align="left" valign="top">
|
1694
|
+
<tbody>
|
1695
|
+
<tr>
|
1696
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1697
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
1698
|
+
</td>
|
1699
|
+
</tr>
|
1700
|
+
<tr>
|
1701
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1702
|
+
<td>week number
|
1703
|
+
</td>
|
1704
|
+
</tr>
|
1705
|
+
</tbody>
|
1706
|
+
</table></div>
|
1707
|
+
</div>
|
1708
|
+
<hr>
|
1709
|
+
<div class="refsect2" title="g_date_get_sunday_weeks_in_year ()">
|
1710
|
+
<a name="g-date-get-sunday-weeks-in-year"></a><h3>g_date_get_sunday_weeks_in_year ()</h3>
|
1711
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint8" title="guint8"><span class="returnvalue">guint8</span></a> g_date_get_sunday_weeks_in_year (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);</pre>
|
1712
|
+
<p>
|
1713
|
+
Returns the number of weeks in the year, where weeks are taken to start
|
1714
|
+
on Sunday. Will be 52 or 53. The date must be valid. (Years always have 52
|
1715
|
+
7-day periods, plus 1 or 2 extra days depending on whether it's a leap
|
1716
|
+
year. This function is basically telling you how many Sundays are in
|
1717
|
+
the year, i.e. there are 53 Sundays if one of the extra days happens
|
1718
|
+
to be a Sunday.)
|
1719
|
+
</p>
|
1720
|
+
<div class="variablelist"><table border="0">
|
1721
|
+
<col align="left" valign="top">
|
1722
|
+
<tbody>
|
1723
|
+
<tr>
|
1724
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
1725
|
+
<td>year to count weeks in
|
1726
|
+
</td>
|
1727
|
+
</tr>
|
1728
|
+
<tr>
|
1729
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1730
|
+
<td>number of weeks
|
1731
|
+
</td>
|
1732
|
+
</tr>
|
1733
|
+
</tbody>
|
1734
|
+
</table></div>
|
1735
|
+
</div>
|
1736
|
+
<hr>
|
1737
|
+
<div class="refsect2" title="g_date_get_iso8601_week_of_year ()">
|
1738
|
+
<a name="g-date-get-iso8601-week-of-year"></a><h3>g_date_get_iso8601_week_of_year ()</h3>
|
1739
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_date_get_iso8601_week_of_year (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1740
|
+
<p>
|
1741
|
+
Returns the week of the year, where weeks are interpreted according
|
1742
|
+
to ISO 8601.
|
1743
|
+
</p>
|
1744
|
+
<div class="variablelist"><table border="0">
|
1745
|
+
<col align="left" valign="top">
|
1746
|
+
<tbody>
|
1747
|
+
<tr>
|
1748
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1749
|
+
<td>a valid <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
1750
|
+
</td>
|
1751
|
+
</tr>
|
1752
|
+
<tr>
|
1753
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1754
|
+
<td> ISO 8601 week number of the year.
|
1755
|
+
|
1756
|
+
</td>
|
1757
|
+
</tr>
|
1758
|
+
</tbody>
|
1759
|
+
</table></div>
|
1760
|
+
<p class="since">Since 2.6</p>
|
1761
|
+
</div>
|
1762
|
+
<hr>
|
1763
|
+
<div class="refsect2" title="g_date_strftime ()">
|
1764
|
+
<a name="g-date-strftime"></a><h3>g_date_strftime ()</h3>
|
1765
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> g_date_strftime (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *s</code></em>,
|
1766
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> slen</code></em>,
|
1767
|
+
<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>,
|
1768
|
+
<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1769
|
+
<p>
|
1770
|
+
Generates a printed representation of the date, in a
|
1771
|
+
<a class="link" href="glib-running.html#setlocale" title="Locale">locale</a>-specific way. Works just like
|
1772
|
+
the platform's C library <code class="function">strftime()</code> function, but only accepts date-related
|
1773
|
+
formats; time-related formats give undefined results. Date must be valid.
|
1774
|
+
Unlike <code class="function">strftime()</code> (which uses the locale encoding), works on a UTF-8 format
|
1775
|
+
string and stores a UTF-8 result.
|
1776
|
+
</p>
|
1777
|
+
<p>
|
1778
|
+
This function does not provide any conversion specifiers in addition
|
1779
|
+
to those implemented by the platform's C library. For example, don't
|
1780
|
+
expect that using <a class="link" href="glib-Date-and-Time-Functions.html#g-date-strftime" title="g_date_strftime ()"><code class="function">g_date_strftime()</code></a> would make the <code class="literal">F</code> provided by the C99
|
1781
|
+
<code class="function">strftime()</code> work on Windows where the C library only complies to C89.
|
1782
|
+
</p>
|
1783
|
+
<div class="variablelist"><table border="0">
|
1784
|
+
<col align="left" valign="top">
|
1785
|
+
<tbody>
|
1786
|
+
<tr>
|
1787
|
+
<td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td>
|
1788
|
+
<td>destination buffer
|
1789
|
+
</td>
|
1790
|
+
</tr>
|
1791
|
+
<tr>
|
1792
|
+
<td><p><span class="term"><em class="parameter"><code>slen</code></em> :</span></p></td>
|
1793
|
+
<td>buffer size
|
1794
|
+
</td>
|
1795
|
+
</tr>
|
1796
|
+
<tr>
|
1797
|
+
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
|
1798
|
+
<td>format string
|
1799
|
+
</td>
|
1800
|
+
</tr>
|
1801
|
+
<tr>
|
1802
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1803
|
+
<td>valid <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a>
|
1804
|
+
</td>
|
1805
|
+
</tr>
|
1806
|
+
<tr>
|
1807
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1808
|
+
<td>number of characters written to the buffer, or 0 the buffer was too small
|
1809
|
+
</td>
|
1810
|
+
</tr>
|
1811
|
+
</tbody>
|
1812
|
+
</table></div>
|
1813
|
+
</div>
|
1814
|
+
<hr>
|
1815
|
+
<div class="refsect2" title="g_date_to_struct_tm ()">
|
1816
|
+
<a name="g-date-to-struct-tm"></a><h3>g_date_to_struct_tm ()</h3>
|
1817
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_date_to_struct_tm (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>,
|
1818
|
+
<em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>);</pre>
|
1819
|
+
<p>
|
1820
|
+
Fills in the date-related bits of a <span class="structname">struct tm</span>
|
1821
|
+
using the <em class="parameter"><code>date</code></em> value. Initializes the non-date parts with something
|
1822
|
+
sane but meaningless.
|
1823
|
+
</p>
|
1824
|
+
<div class="variablelist"><table border="0">
|
1825
|
+
<col align="left" valign="top">
|
1826
|
+
<tbody>
|
1827
|
+
<tr>
|
1828
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1829
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to set the <span class="structname">struct tm</span> from.
|
1830
|
+
</td>
|
1831
|
+
</tr>
|
1832
|
+
<tr>
|
1833
|
+
<td><p><span class="term"><em class="parameter"><code>tm</code></em> :</span></p></td>
|
1834
|
+
<td>
|
1835
|
+
<span class="structname">struct tm</span> to fill.
|
1836
|
+
</td>
|
1837
|
+
</tr>
|
1838
|
+
</tbody>
|
1839
|
+
</table></div>
|
1840
|
+
</div>
|
1841
|
+
<hr>
|
1842
|
+
<div class="refsect2" title="g_date_valid ()">
|
1843
|
+
<a name="g-date-valid"></a><h3>g_date_valid ()</h3>
|
1844
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_valid (<em class="parameter"><code>const <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> *date</code></em>);</pre>
|
1845
|
+
<p>
|
1846
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> represents an existing day. The date must not
|
1847
|
+
contain garbage; it should have been initialized with <a class="link" href="glib-Date-and-Time-Functions.html#g-date-clear" title="g_date_clear ()"><code class="function">g_date_clear()</code></a>
|
1848
|
+
if it wasn't allocated by one of the <a class="link" href="glib-Date-and-Time-Functions.html#g-date-new" title="g_date_new ()"><code class="function">g_date_new()</code></a> variants.
|
1849
|
+
</p>
|
1850
|
+
<div class="variablelist"><table border="0">
|
1851
|
+
<col align="left" valign="top">
|
1852
|
+
<tbody>
|
1853
|
+
<tr>
|
1854
|
+
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
|
1855
|
+
<td>a <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> to check
|
1856
|
+
</td>
|
1857
|
+
</tr>
|
1858
|
+
<tr>
|
1859
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1860
|
+
<td>Whether the date is valid
|
1861
|
+
</td>
|
1862
|
+
</tr>
|
1863
|
+
</tbody>
|
1864
|
+
</table></div>
|
1865
|
+
</div>
|
1866
|
+
<hr>
|
1867
|
+
<div class="refsect2" title="g_date_valid_day ()">
|
1868
|
+
<a name="g-date-valid-day"></a><h3>g_date_valid_day ()</h3>
|
1869
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_valid_day (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</code></em>);</pre>
|
1870
|
+
<p>
|
1871
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the day of the month is valid (a day is valid if it's
|
1872
|
+
between 1 and 31 inclusive).
|
1873
|
+
</p>
|
1874
|
+
<div class="variablelist"><table border="0">
|
1875
|
+
<col align="left" valign="top">
|
1876
|
+
<tbody>
|
1877
|
+
<tr>
|
1878
|
+
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td>
|
1879
|
+
<td>day to check
|
1880
|
+
</td>
|
1881
|
+
</tr>
|
1882
|
+
<tr>
|
1883
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1884
|
+
<td>
|
1885
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the day is valid
|
1886
|
+
</td>
|
1887
|
+
</tr>
|
1888
|
+
</tbody>
|
1889
|
+
</table></div>
|
1890
|
+
</div>
|
1891
|
+
<hr>
|
1892
|
+
<div class="refsect2" title="g_date_valid_month ()">
|
1893
|
+
<a name="g-date-valid-month"></a><h3>g_date_valid_month ()</h3>
|
1894
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_valid_month (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>);</pre>
|
1895
|
+
<p>
|
1896
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the month value is valid. The 12 <a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a>
|
1897
|
+
enumeration values are the only valid months.
|
1898
|
+
</p>
|
1899
|
+
<div class="variablelist"><table border="0">
|
1900
|
+
<col align="left" valign="top">
|
1901
|
+
<tbody>
|
1902
|
+
<tr>
|
1903
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
1904
|
+
<td>month
|
1905
|
+
</td>
|
1906
|
+
</tr>
|
1907
|
+
<tr>
|
1908
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1909
|
+
<td>
|
1910
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the month is valid
|
1911
|
+
</td>
|
1912
|
+
</tr>
|
1913
|
+
</tbody>
|
1914
|
+
</table></div>
|
1915
|
+
</div>
|
1916
|
+
<hr>
|
1917
|
+
<div class="refsect2" title="g_date_valid_year ()">
|
1918
|
+
<a name="g-date-valid-year"></a><h3>g_date_valid_year ()</h3>
|
1919
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_valid_year (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);</pre>
|
1920
|
+
<p>
|
1921
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the year is valid. Any year greater than 0 is valid,
|
1922
|
+
though there is a 16-bit limit to what <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> will understand.
|
1923
|
+
</p>
|
1924
|
+
<div class="variablelist"><table border="0">
|
1925
|
+
<col align="left" valign="top">
|
1926
|
+
<tbody>
|
1927
|
+
<tr>
|
1928
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
1929
|
+
<td>year
|
1930
|
+
</td>
|
1931
|
+
</tr>
|
1932
|
+
<tr>
|
1933
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1934
|
+
<td>
|
1935
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the year is valid
|
1936
|
+
</td>
|
1937
|
+
</tr>
|
1938
|
+
</tbody>
|
1939
|
+
</table></div>
|
1940
|
+
</div>
|
1941
|
+
<hr>
|
1942
|
+
<div class="refsect2" title="g_date_valid_dmy ()">
|
1943
|
+
<a name="g-date-valid-dmy"></a><h3>g_date_valid_dmy ()</h3>
|
1944
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_valid_dmy (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateDay" title="GDateDay"><span class="type">GDateDay</span></a> day</code></em>,
|
1945
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateMonth" title="enum GDateMonth"><span class="type">GDateMonth</span></a> month</code></em>,
|
1946
|
+
<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateYear" title="GDateYear"><span class="type">GDateYear</span></a> year</code></em>);</pre>
|
1947
|
+
<p>
|
1948
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the day-month-year triplet forms a valid, existing day
|
1949
|
+
in the range of days <a class="link" href="glib-Date-and-Time-Functions.html#GDate" title="GDate"><span class="type">GDate</span></a> understands (Year 1 or later, no more than
|
1950
|
+
a few thousand years in the future).
|
1951
|
+
</p>
|
1952
|
+
<div class="variablelist"><table border="0">
|
1953
|
+
<col align="left" valign="top">
|
1954
|
+
<tbody>
|
1955
|
+
<tr>
|
1956
|
+
<td><p><span class="term"><em class="parameter"><code>day</code></em> :</span></p></td>
|
1957
|
+
<td>day
|
1958
|
+
</td>
|
1959
|
+
</tr>
|
1960
|
+
<tr>
|
1961
|
+
<td><p><span class="term"><em class="parameter"><code>month</code></em> :</span></p></td>
|
1962
|
+
<td>month
|
1963
|
+
</td>
|
1964
|
+
</tr>
|
1965
|
+
<tr>
|
1966
|
+
<td><p><span class="term"><em class="parameter"><code>year</code></em> :</span></p></td>
|
1967
|
+
<td>year
|
1968
|
+
</td>
|
1969
|
+
</tr>
|
1970
|
+
<tr>
|
1971
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1972
|
+
<td>
|
1973
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the date is a valid one
|
1974
|
+
</td>
|
1975
|
+
</tr>
|
1976
|
+
</tbody>
|
1977
|
+
</table></div>
|
1978
|
+
</div>
|
1979
|
+
<hr>
|
1980
|
+
<div class="refsect2" title="g_date_valid_julian ()">
|
1981
|
+
<a name="g-date-valid-julian"></a><h3>g_date_valid_julian ()</h3>
|
1982
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_valid_julian (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="type">guint32</span></a> julian_date</code></em>);</pre>
|
1983
|
+
<p>
|
1984
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the Julian day is valid. Anything greater than zero
|
1985
|
+
is basically a valid Julian, though there is a 32-bit limit.
|
1986
|
+
</p>
|
1987
|
+
<div class="variablelist"><table border="0">
|
1988
|
+
<col align="left" valign="top">
|
1989
|
+
<tbody>
|
1990
|
+
<tr>
|
1991
|
+
<td><p><span class="term"><em class="parameter"><code>julian_date</code></em> :</span></p></td>
|
1992
|
+
<td>Julian day to check
|
1993
|
+
</td>
|
1994
|
+
</tr>
|
1995
|
+
<tr>
|
1996
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1997
|
+
<td>
|
1998
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the Julian day is valid
|
1999
|
+
</td>
|
2000
|
+
</tr>
|
2001
|
+
</tbody>
|
2002
|
+
</table></div>
|
2003
|
+
</div>
|
2004
|
+
<hr>
|
2005
|
+
<div class="refsect2" title="g_date_valid_weekday ()">
|
2006
|
+
<a name="g-date-valid-weekday"></a><h3>g_date_valid_weekday ()</h3>
|
2007
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_date_valid_weekday (<em class="parameter"><code><a class="link" href="glib-Date-and-Time-Functions.html#GDateWeekday" title="enum GDateWeekday"><span class="type">GDateWeekday</span></a> weekday</code></em>);</pre>
|
2008
|
+
<p>
|
2009
|
+
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the weekday is valid. The seven <a class="link" href="glib-Date-and-Time-Functions.html#GDateWeekday" title="enum GDateWeekday"><span class="type">GDateWeekday</span></a> enumeration
|
2010
|
+
values are the only valid weekdays.
|
2011
|
+
</p>
|
2012
|
+
<div class="variablelist"><table border="0">
|
2013
|
+
<col align="left" valign="top">
|
2014
|
+
<tbody>
|
2015
|
+
<tr>
|
2016
|
+
<td><p><span class="term"><em class="parameter"><code>weekday</code></em> :</span></p></td>
|
2017
|
+
<td>weekday
|
2018
|
+
</td>
|
2019
|
+
</tr>
|
2020
|
+
<tr>
|
2021
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2022
|
+
<td>
|
2023
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the weekday is valid
|
2024
|
+
</td>
|
2025
|
+
</tr>
|
2026
|
+
</tbody>
|
2027
|
+
</table></div>
|
2028
|
+
</div>
|
2029
|
+
</div>
|
2030
|
+
<div class="footnotes">
|
2031
|
+
<br><hr width="100" align="left">
|
2032
|
+
<div class="footnote"><p><sup>[<a name="ftn.id701533" href="#id701533" class="para">4</a>] </sup>
|
2033
|
+
For the purposes of this function, leap year is every year divisible by
|
2034
|
+
4 unless that year is divisible by 100. If it is divisible by 100 it would
|
2035
|
+
be a leap year only if that year is also divisible by 400.</p></div>
|
2036
|
+
</div>
|
2037
|
+
</div>
|
2038
|
+
<div class="footer">
|
2039
|
+
<hr>
|
2040
|
+
Generated by GTK-Doc V1.14</div>
|
2041
|
+
</body>
|
2042
|
+
</html>
|