add notes explaining some date funcs

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3540 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-01-27 17:13:01 +00:00
parent f080ab5884
commit b31188f465
2 changed files with 10 additions and 0 deletions

View File

@ -327,6 +327,8 @@ char dateSeparator ()
/********************************************************************\ /********************************************************************\
* iso 8601 datetimes should look like 1998-07-02 11:00:00.68-05 * iso 8601 datetimes should look like 1998-07-02 11:00:00.68-05
\********************************************************************/ \********************************************************************/
/* hack alert -- this routine returns incorrect values for
* dates before 1970 */
Timespec Timespec
gnc_iso8601_to_timespec(const char *str) gnc_iso8601_to_timespec(const char *str)
@ -373,6 +375,8 @@ gnc_iso8601_to_timespec(const char *str)
/********************************************************************\ /********************************************************************\
\********************************************************************/ \********************************************************************/
/* hack alert -- this routine returns incorrect values for
* dates before 1970 */
time_t time_t
xaccDMYToSec (int day, int month, int year) xaccDMYToSec (int day, int month, int year)

View File

@ -133,6 +133,12 @@ void scanDate (const char *buff, int *day, int *month, int *year);
*/ */
char dateSeparator(void); char dateSeparator(void);
/*
* 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 ...
*/
time_t xaccDMYToSec (int day, int month, int year); time_t xaccDMYToSec (int day, int month, int year);
time_t xaccScanDateS (const char *buff); time_t xaccScanDateS (const char *buff);