mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Transaction members Timespec->time64
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user