Transaction members Timespec->time64

This commit is contained in:
lmat
2017-12-31 07:37:02 -05:00
committed by Christopher Lam
parent 9a86dd222b
commit 1f050fd1e5
30 changed files with 262 additions and 369 deletions

View File

@@ -54,17 +54,15 @@ static QofLogModule log_module = GNC_MOD_ENGINE;
Timespec
gnc_transaction_get_date_posted(const Transaction *t)
{
Timespec result;
xaccTransGetDatePostedTS(t, &result);
return(result);
Timespec ret = {xaccTransRetDatePosted(t), 0};
return ret;
}
Timespec
gnc_transaction_get_date_entered(const Transaction *t)
{
Timespec result;
xaccTransGetDateEnteredTS(t, &result);
return(result);
Timespec result = {xaccTransRetDateEntered(t), 0};
return result;
}
Timespec
@@ -78,7 +76,7 @@ gnc_split_get_date_reconciled(const Split *s)
void
gnc_transaction_set_date(Transaction *t, Timespec ts)
{
xaccTransSetDatePostedTS(t, &ts);
xaccTransSetDatePostedSecs(t, ts.tv_sec);
}
/** Gets the transaction Number or split Action based on book option: