Re: Timespecs & GDates

2008-01-05 Thread Andreas Köhler
Hi, Am Montag, den 24.12.2007, 16:29 -0500 schrieb Derek Atkins: > 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. g_date_compare (early,

Re: Timespecs & GDates

2007-12-24 Thread Derek Atkins
Christian Stimming <[EMAIL PROTECTED]> writes: > Am Sonntag, 23. Dezember 2007 18:49 schrieb Derek Atkins: >> Quoting Andreas Köhler <[EMAIL PROTECTED]>: >> > Hi Phil, >> > >> > Am Freitag, den 21.12.2007, 20:10 -0500 schrieb Phil Longstaff: >> >> 2) Now that GDates are used, is there any reason t

Re: Timespecs & GDates

2007-12-23 Thread Christian Stimming
Am Sonntag, 23. Dezember 2007 18:49 schrieb Derek Atkins: > Quoting Andreas Köhler <[EMAIL PROTECTED]>: > > 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 everywh

Re: Timespecs & GDates

2007-12-23 Thread Derek Atkins
Quoting Andreas Köhler <[EMAIL PROTECTED]>: > 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

Re: Timespecs & GDates

2007-12-23 Thread Phil Longstaff
Derek Atkins wrote: > Phil Longstaff <[EMAIL PROTECTED]> writes: > > >> Two questions: >> >> 1) Can anyone tell me why gnc_price_set_time() takes a Timespec passed >> by value but the routines in Transaction.h which take Timespecs are >> passed by reference? It would simplify the gda backend

Re: Timespecs & GDates

2007-12-23 Thread Andreas Köhler
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. --

Re: Timespecs & GDates

2007-12-23 Thread Derek Atkins
Phil Longstaff <[EMAIL PROTECTED]> writes: > Two questions: > > 1) Can anyone tell me why gnc_price_set_time() takes a Timespec passed > by value but the routines in Transaction.h which take Timespecs are > passed by reference? It would simplify the gda backend if they were > always passed the

Timespecs & GDates

2007-12-21 Thread Phil Longstaff
Two questions: 1) Can anyone tell me why gnc_price_set_time() takes a Timespec passed by value but the routines in Transaction.h which take Timespecs are passed by reference? It would simplify the gda backend if they were always passed the same way (either by value or by reference, but not bot