git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1465 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas
1998-12-20 20:59:23 +00:00
parent d7754daea1
commit 5cd602e0da
2 changed files with 14 additions and 2 deletions

View File

@@ -204,7 +204,16 @@ xaccQuerySetMaxSplits (Query *q, int max)
/* ================================================== */
void
xaccQuerySetDateRange (Query *q, long long early, long long late)
xaccQuerySetDateRange (Query *q, time_t early, time_t late)
{
if (!q) return;
q->changed = 1;
q->earliest.tv_sec = early;
q->latest.tv_sec = late;
}
void
xaccQuerySetDateRangeL (Query *q, long long early, long long late)
{
if (!q) return;
q->changed = 1;

View File

@@ -65,7 +65,10 @@ void xaccQuerySetMaxSplits (Query *, int);
* that are within this date range. The arguments "earliest"
* and "latest" are seconds before or since 00:00:00 Jan 1 1970.
*/
void xaccQuerySetDateRange (Query *, long long earliest, long long latest);
void xaccQuerySetDateRange (Query *, time_t earliest, time_t latest);
#ifndef SWIG /* swig chokes on long long */
void xaccQuerySetDateRangeL (Query *, long long earliest, long long latest);
#endif
/* The xaccQuerySetSortOrder() method sets the sort order that
* should be used on the splits. The three arguments should