datetime: Allow setting fractionary seconds in new_full()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 15 Sep 2010 09:05:41 +0000 (10:05 +0100)
committerRyan Lortie <desrt@desrt.ca>
Fri, 17 Sep 2010 15:40:10 +0000 (11:40 -0400)
commit0746f7403638a6f17c61ec04beb4f692914ce9a0
tree8ee6fb533f7d282293a6f926331d97608cec8a1b
parent67f1e52ce2a1372e4f8ffc5fdf292b33120264ab
datetime: Allow setting fractionary seconds in new_full()

Otherwise we'll have to do:

  dt = g_date_time_new_full (Y, M, D, h, m, s, tz);
  tmp = g_date_time_add_usec (dt, usec);
  g_date_time_unref (dt);
  dt = tmp;

With its additional allocations.

https://bugzilla.gnome.org/show_bug.cgi?id=50076
glib/gdatetime.c
glib/gdatetime.h
glib/tests/gdatetime.c