mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
f080ab5884
commit
b31188f465
@ -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)
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user