set tv_usec to 0 rather than 1 when a fraction of a second is not
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 19 Jun 2008 04:14:25 +0000 (04:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 19 Jun 2008 04:14:25 +0000 (04:14 +0000)
commitd780a41c37c0f076239bdacc4e8b02735ac006a4
treeb8c9f02914f33a993e608c4e45e0c3b20d177eb3
parentf6da8a493c3a1fc12b5f30edf966f5d2c43a85ac
set tv_usec to 0 rather than 1 when a fraction of a second is not

        * glib/gtimer.c (g_time_val_from_iso8601): set tv_usec to 0 rather
        than 1 when a fraction of a second is not specified
        (g_time_val_from_iso8601): calculate a fraction of a second
        correctly even in case it does not happen to consist of exactly
        six digits; do not allow random data after the ISO 8601 string,
        only whitespace
        (make g_time_val_to_iso8601): support fractions of a second
        Patch by Peter Kjellerstedt

        * tests/testglib.c: Update to match

svn path=/trunk/; revision=7057
ChangeLog
glib/gtimer.c
tests/testglib.c