GnuCash
5.6-150-g038405b370+
|
General utilities for dealing with accounting periods. More...
#include <config.h>
#include <string.h>
#include "gnc-accounting-period.h"
#include "gnc-date.h"
#include "gnc-prefs.h"
#include "qof.h"
#include "gnc-session.h"
Go to the source code of this file.
Functions | |
Accounting Periods | |
time64 | gnc_accounting_period_fiscal_start (void) |
time64 | gnc_accounting_period_fiscal_end (void) |
GDate * | gnc_accounting_period_start_gdate (GncAccountingPeriod which, const GDate *fy_end, const GDate *contains) |
This function returns the starting date for an accounting period. More... | |
GDate * | gnc_accounting_period_end_gdate (GncAccountingPeriod which, const GDate *fy_end, const GDate *contains) |
This function returns the ending date for an accounting period. More... | |
General utilities for dealing with accounting periods.
These are general utility functions for specifying an accounting period and converting it to a value usable by the gnucash engine. The choice of src/app-utils is arbitrary as these utilities don't fit well anywhere else. They are at a higher level than a GDate, so they don't fit in src/core-utils/gnc-gdate-utils.c. They don't operate on engine data structures, so they don't belong in src/engine/Period.c. Putting them into src/engine/gnc-date.c would be the best place for them, but then that creates a new dependency from the src/engine directory to the src/core-utils directory that doesn't currently exist. Since that might be a problem for CashUtils, the app-file directory was chosen.
Definition in file gnc-accounting-period.c.