Timespecs & GDates

Derek Atkins warlord at MIT.EDU
Mon Dec 24 16:29:04 EST 2007


Christian Stimming <stimming at tuhh.de> writes:

> Am Sonntag, 23. Dezember 2007 18:49 schrieb Derek Atkins:
>> Quoting Andreas Köhler <andi5.py at gmx.net>:
>> > Hi Phil,
>> >
>> > Am Freitag, den 21.12.2007, 20:10 -0500 schrieb Phil Longstaff:
>> >> 2) Now that GDates are used, is there any reason that Timespec couldn't
>> >> be replaced by GDate everywhere?
>> >
>> > GDates only support dates, but no times.  So is the question is whether
>> > we we want to support only whole days.
>>
>> Ahh, there is that..   It would mean you could never support fixing
>> http://bugzilla.gnome.org/show_bug.cgi?id=89439
>
> OTOH it would mean http://bugzilla.gnome.org/show_bug.cgi?id=137017 (issues 
> induced by time zone change) gets fixed, eventually. It has Severity: major 
> Priority: High for almost two year by now :-)

Does gdate have the concept of less-than-or-equal?  With a Timespec
(or time_t) it's easy to just add 12 hours to the "day" and use that
as the comparison to make sure I get everything on the right day.

However, I dont have a strong opinion about whether we should migrate
to GDate or stay with Timespec.  I don't think that timezone issues
are necessarily any better or easier to handle with GDates.

> Christian

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list