kspread

kspread_functions_helper.h
1/* This file is part of the KDE project
2 Copyright (C) 1998-2002 The KSpread Team
3 www.koffice.org/kspread
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20#ifndef kspread_functions_helper_h_
21#define kspread_functions_helper_h_
22// helper functions for other functions
23
24class TQDate;
25
26namespace KSpread
27{
28
29/* 0: US 30 / 360
30 * 1: real days
31 * 2: real days / 360
32 * 3: real days / 365
33 * 4: European 30 / 360
34 */
35int daysPerYear( TQDate const & date, int basis );
36
37/* 0: US 30 / 360
38 * 1: real days
39 * 2: real days / 360
40 * 3: real days / 365
41 * 4: European 30 / 360
42 */
43int daysBetweenDates( TQDate const & date1, TQDate const & date2, int basis );
44
45} //namespace KSpread
46
47#endif
The KSpread namespace.
Definition commands.h:39