diff --git a/src/libqof/qof/gnc-date.h b/src/libqof/qof/gnc-date.h index 2debe791b4..926fb372ab 100644 --- a/src/libqof/qof/gnc-date.h +++ b/src/libqof/qof/gnc-date.h @@ -354,20 +354,14 @@ Timespec gnc_iso8601_to_timespec_gmt(const gchar *); */ gchar * gnc_timespec_to_iso8601_buff (Timespec ts, gchar * buff); -/** DOCUMENT ME! FIXME: Probably similar to xaccDMYToSec() this date - * routine might return incorrect values for dates before 1970. */ +/** Set the proleptic Gregorian day, month, and year from a Timespec + * \param ts: input timespec + * \param day: output day, 1 - 31 + * \param month: output month, 1 - 12 + * \param year: output year, 0001 - 9999 CE + */ void gnc_timespec2dmy (Timespec ts, gint *day, gint *month, gint *year); -/* \warning hack alert XXX FIXME -- these date routines return incorrect - * values for dates before 1970. Most of them are good only up - * till 2038. This needs fixing ... - * - * XXX This routine should be modified to assume that the - * the user wanted the time at noon, localtime. The returned - * time_t should be seconds (at GMT) of the local noon-time. -*/ -/* time_t xaccDMYToSec (gint day, gint month, gint year); */ - /** The gnc_timezone function returns the number of seconds *west* * of UTC represented by the tm argument, adjusted for daylight * savings time. diff --git a/src/libqof/qof/test/test-gnc-date.c b/src/libqof/qof/test/test-gnc-date.c index 1039d27527..441e37921b 100644 --- a/src/libqof/qof/test/test-gnc-date.c +++ b/src/libqof/qof/test/test-gnc-date.c @@ -674,8 +674,8 @@ test_timespecCanonicalDayTime (void) g_assert_cmpint (nc.tv_sec, ==, rc.tv_sec); } -/* gnc_date_my_last_mday -int gnc_date_my_last_mday (int month, int year)// C: 1 Local: 1:0:0 +/* gnc_date_get_last_mday +int gnc_date_get_last_mday (int month, int year)// C: 1 Local: 1:0:0 */ static void test_gnc_date_get_last_mday (void) @@ -1505,7 +1505,8 @@ test_qof_scan_date (void) } /* dateSeparator return date character -char dateSeparator (void)// C: 2 in 2 Local: 0:0:0 +char dateSeparator (void)// C: 1 Local: 0:0:0 +src/register/register-gnome/datecell-gnome.h */ /* static void test_dateSeparator (void) @@ -1745,14 +1746,6 @@ test_gnc_timespec_to_iso8601_buff (void) g_time_zone_unref (tz05); g_time_zone_unref (tz0840); } -/* gnc_timespec_last_mday -int -gnc_timespec_last_mday (Timespec t)// C: 1 Local: 0:0:0 -*/ -/* static void -test_gnc_timespec_last_mday (void) -{ -}*/ /* gnc_timespec2dmy void gnc_timespec2dmy (Timespec t, int *day, int *month, int *year)// C: 1 Local: 0:0:0