more 64-bit date stuff

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1458 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/xacc-12-patch
Linas Vepstas 28 years ago
parent cdc5993634
commit cbf12b7e6e

@ -1461,6 +1461,21 @@ xaccTransSetDateSecs (Transaction *trans, time_t secs)
}
void
xaccTransSetDateSecsL (Transaction *trans, long long secs)
{
if (!trans) return;
CHECK_OPEN (trans);
DEBUGCMD ({
time_t sicko = secs;
PINFO ("xaccTransSetDateSecsL(): addr=%p set date to %Lu %s \n",
trans, secs, ctime (&sicko));
})
trans->date_posted.tv_sec = secs;
trans->date_posted.tv_nsec = 0;
}
void
xaccTransSetDateEnteredSecs (Transaction *trans, time_t secs)
{
@ -1662,6 +1677,13 @@ xaccTransGetDate (Transaction *trans)
return (trans->date_posted.tv_sec);
}
long long
xaccTransGetDateL (Transaction *trans)
{
if (!trans) return 0;
return (trans->date_posted.tv_sec);
}
void
xaccTransGetDateTS (Transaction *trans, Timespec *ts)
{

@ -204,6 +204,7 @@ char * xaccTransGetNum (Transaction *);
char * xaccTransGetDescription (Transaction *);
char * xaccTransGetDocref (Transaction *);
time_t xaccTransGetDate (Transaction *);
long long xaccTransGetDateL (Transaction *);
void xaccTransGetDateTS (Transaction *, Timespec *);
void xaccTransGetDateEnteredTS (Transaction *, Timespec *);

Loading…
Cancel
Save