KOffice – TDE office suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4KB

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