summaryrefslogtreecommitdiff
path: root/glib/src/date.ccg
Commit message (Collapse)AuthorAgeFilesLines
* Remove Glib::TimeValKjell Ahlstedt2019-08-131-6/+0
| | | | | | | | | | | | | | | | | | GTimeVal has been deprecated in glib. Remove its wrapping in glibmm. * examples/dbus/server_without_bus.cc: * examples/dbus/session_bus_service.cc: Replace TimeVal by DateTime. * gio/src/fileinfo.[ccg|hg]: Remove [set_]modification_time(). Add set/get_modification_date_time(). * glib/glibmm.h: * glib/glibmm/filelist.am: Remove timeval. * glib/glibmm/timeval.[cc|h]: Removed files. * glib/src/date.[ccg|hg]: Remove set_time(const GTimeVal& timeval). * glib/src/datetime.[ccg|hg]: Remove create_now_local/utc(const TimeVal& tv) and to_timeval(). Add create_from_iso8601(), format_iso8601() and operator bool(). * tools/m4/convert_glib.m4: * tools/m4/convert_gio.m4: Remove conversions for GTimeVal.
* Update the Free Software Foundation address in copyright noticesKjell Ahlstedt2017-08-301-2/+1
| | | | Bug 786824
* Fix build when _WRAP_ENUM generates enum classKjell Ahlstedt2017-04-111-0/+10
| | | | Bug 86864
* Remove deprecated API.Murray Cumming2016-11-141-18/+0
|
* Run clang-format on the .ccg files.Murray Cumming2016-02-261-90/+133
| | | | This seems to work.
* Replace ScopedPtr with make_unique_ptr_gfree().Murray Cumming2016-01-181-1/+1
| | | | | Using std::unique_ptr. ScopedPtr is now deprecated. Bug #760223
* Yet more nullptr instead of 0.Murray Cumming2015-11-201-3/+3
|
* C++11: Some use of the auto keyword.Murray Cumming2015-07-151-2/+2
|
* Remove useless Subversion tags.Mark Vender2012-09-151-3/+0
| | | | *.[hg|ccg]: Remove uselless Subversion tags.
* Use std::time_t instead of ::time_t.Kjell Ahlstedt2012-09-121-4/+6
| | | | | | | * build/c_std.m4: * glib/src/date.[hg|ccg]: Use std::time_t instead of ::time_t. Only std::time_t is required to be declared in <ctime>, which is recommended instead of <time.h> in C++ programs.
* Date: set_time(): Use g_date_set_time_t() instead of g_date_set_time().José Alburquerque2011-10-131-1/+1
| | | | | | | * glib/src/date.ccg: The latter function is deprecated. This fixes the build with the master branch of glib with deprecations disabled though there's one small error related to the Threads discussion on the mailing list that will still have to be looked at.
* Remove the reduced API options and code, as discussed on mailing list.Murray Cumming2010-05-311-10/+0
| | | | | | | | | * configure.ac: Removed the --enable-api-exceptions, --enable-api-properties, --enable-api-vfuncs and --enable-api-default-signal-handlers options. * build/reduced.m4: Removed. * tools/m4/*.m4: * tools/pm/Output.pm: Remove any use of ifdefs and auto_ptr for reduced API. * *.[hg|ccg|h|cc]: Remove the idefed code.
* Use 0 instead of NULL.Murray Cumming2010-01-291-1/+1
| | | | | | | * gio/src/*.ccg * glib/src/*.ccg: Use 0 instead of NULL because this is C++ where NULL is generally not a good idea. I didn't see any places where it was a real problem though.
* Get rid of all uses of GLIBMM_USING_STD()Daniel Elstner2009-08-161-3/+0
| | | | | | | | | | * glib/src/*.{ccg,hg}: Remove all uses of GLIBMM_USING_STD(). We definitely do not need this anymore, and probably never did. We never covered all symbols from namespace std anyway and never got any complaint about it. Also, be careful to always include the glibmmconfig.h header when it is needed. * glib/glibmm/*.{cc,h}: ditto. * glib/glibmmconfig.h.in: Clean up and re-indent.
* Wrapped several ISO 8601 related functions.Krzesimir Nowak2009-07-261-0/+5
| | | | | | | | * glib/glibmm/timeval.cc: * glib/glibmm/timeval.h: Wrapped g_time_val_from_iso8601() and g_time_val_to_iso8601(). * glib/src/date.ccg: * glib/src/date.hg: Wrapped g_date_get_iso8601_week_of_year().
* Check for invalid date in Glib::Date copy constructor.José Alburquerque2009-06-221-2/+3
|
* Change license header to mention Lesser General Public License version 2.1Deng Xiyue2009-01-191-4/+4
| | | | | | | | | | 2009-01-20 Deng Xiyue <manphiz@gmail.com> * Change license header to mention Lesser General Public License version 2.1 instead of Library General Public License, to be consistent with COPYING. svn path=/trunk/; revision=779
* Clean up glib includes (Bug #563987)Jonathon Jongsma2008-12-101-2/+0
| | | | svn path=/trunk/; revision=749
* Added copy constructor and assignment operator; Made GDate constructorJosé Alburquerque2008-06-101-0/+14
| | | | | | | | | | | | | | | 2008-06-09 José Alburquerque <jaalburqu@svn.gnome.org> * glib/src/date.ccg: * glib/src/date.hg: Added copy constructor and assignment operator; Made GDate constructor visible. * configure.in: * tests/Makefile.am: * tests/glibmm_date/Makefile.am: * tests/glibmm_date/main.cc: Added simple test to test Glib::Date. svn path=/trunk/; revision=661
* Include glib.h instead of gmessages.h or gtestutils.h so this builds withMurray Cumming2007-12-281-1/+4
| | | | | | | | | | | | 2007-12-28 Murray Cumming <murrayc@murrayc.com> * glib/glibmm/error.cc: * glib/glibmm/exception.cc: * glib/src/convert.ccg: * glib/src/date.ccg: Include glib.h instead of gmessages.h or gtestutils.h so this builds with all versions of glib. svn path=/trunk/; revision=474
* Added a test for the case that time_t is equivalent to guint32, as seemsMurray Cumming2007-10-221-1/+9
| | | | | | | | | | | | | | | | | | | 2007-10-22 Murray Cumming <murrayc@murrayc.com> * Merged this change from 2007-03-03 from the glibmm-2-12 branch, which was missing from this branch: * configure.in: * glib/glibmmconfig.h.in: * glib/src/date.ccg: * glib/src/date.hg: * scripts/Makefile.am: * scripts/c_std.m4: Added a test for the case that time_t is equivalent to guint32, as seems to be the case on NetBSD-4.99.6/amd64, so we can ifdef-out the (deprecated, anyway) Glib::Date::set_time(GTime) method when necessary, because GTime is also equivalent to guint32. Bug #386990. svn path=/trunk/; revision=456
* fix implementation of Glib::Date::set_time_current() so that it doesn'tJonathon Jongsma2006-07-161-1/+1
| | | | | | | 2006-07-16 Jonathon Jongsma <jonathon.jongsma@gmail.com> * glib/src/date.ccg: fix implementation of Glib::Date::set_time_current() so that it doesn't set the date to Dec 31, 1969.
* Merged changes from glibmm-2-10 branch.Murray Cumming2006-05-121-0/+11
|
* Added --enable-deprecated-api option. When set to disabled, it does notMurray Cumming2005-11-291-0/+2
| | | | | | | | | | | | | 2005-11-29 Murray Cumming <murrayc@murrayc.com> * build_shared/Makefile_build.am_fragment: * configure.in: Added --enable-deprecated-api option. When set to disabled, it does not build deprecated API. This reduces the size of the library, and might be useful for embedded devices. * glib/src/date.ccg: * glib/src/date.hg: Use _DEPRECATE_IFDEF_START/END around the deprecated set_time() method.
* Depend on glib 2.9, which has new API.Murray Cumming2005-11-231-1/+18
| | | | | | | | | | | | | 2005-11-23 Murray Cumming <murrayc@murrayc.com> * configure.in: Depend on glib 2.9, which has new API. * glib/src/date.ccg: * glib/src/date.hg: Wrap glib_date_set_time_t() and glib_date_set_time_val(). Deprecate set_time(GTime) in favour of the new method overloads. Added set_time_current(), wrapping the case that the time_t is 0.
* Added clamp_min() and clamp_max() to wrap the case where g_date_clamp()Murray Cumming2004-01-221-0/+12
| | | | | | | 2004-01-22 Murray Cumming <murrayc@usa.net> * glib/date.[hg|ccg]: Added clamp_min() and clamp_max() to wrap the case where g_date_clamp() takes null values.
* Some GTKMM_ prefixes that I forgot.Murray Cumming2003-01-221-1/+1
|
* Initial revisionMurray Cumming2003-01-071-0/+325