GnuCash 2.4.99
Defines
gnc-accounting-period.c File Reference

General utilities for dealing with accounting periods. More...

#include "config.h"
#include <string.h>
#include "gnc-accounting-period.h"
#include "gnc-gdate-utils.h"
#include "gnc-date.h"
#include "gnc-gconf-utils.h"
#include "qof.h"
#include "gnc-ui-util.h"

Go to the source code of this file.

Defines

#define GCONF_SECTION   "window/pages/account_tree/summary"
#define KEY_START_CHOICE   "start_choice"
#define KEY_START_DATE   "start_date"
#define KEY_START_PERIOD   "start_period"
#define KEY_END_CHOICE   "end_choice"
#define KEY_END_DATE   "end_date"
#define KEY_END_PERIOD   "end_period"

Functions

Accounting Periods
time_t gnc_accounting_period_fiscal_start (void)
time_t gnc_accounting_period_fiscal_end (void)
GDate * gnc_accounting_period_start_gdate (GncAccountingPeriod which, const GDate *fy_end, const GDate *contains)
time_t gnc_accounting_period_start_timet (GncAccountingPeriod which, const GDate *fy_end, const GDate *contains)
GDate * gnc_accounting_period_end_gdate (GncAccountingPeriod which, const GDate *fy_end, const GDate *contains)
time_t gnc_accounting_period_end_timet (GncAccountingPeriod which, const GDate *fy_end, const GDate *contains)

Detailed Description

General utilities for dealing with accounting periods.

Author:
David Hampton <hampton@employees.org>

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 dependancy 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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines