LibreOffice Module comphelper (master) 1
Namespaces | Functions | Variables
date.cxx File Reference
#include <comphelper/date.hxx>
#include <cassert>
Include dependency graph for date.cxx:

Go to the source code of this file.

Namespaces

namespace  comphelper
 
namespace  comphelper::date
 

Functions

sal_Int32 comphelper::date::convertDateToDaysNormalizing (sal_uInt16 nDay, sal_uInt16 nMonth, sal_Int16 nYear)
 Obtain days from zero for a given date, with normalizing. More...
 
bool comphelper::date::isValidDate (sal_uInt16 nDay, sal_uInt16 nMonth, sal_Int16 nYear)
 Whether date is a valid date. More...
 
void comphelper::date::convertDaysToDate (sal_Int32 nDays, sal_uInt16 &rDay, sal_uInt16 &rMonth, sal_Int16 &rYear)
 Obtain date for a days from zero value. More...
 
bool comphelper::date::normalize (sal_uInt16 &rDay, sal_uInt16 &rMonth, sal_Int16 &rYear)
 Normalize date, i.e. More...
 

Variables

constexpr sal_Int32 comphelper::date::MIN_DAYS = -11968265
 
constexpr sal_Int32 comphelper::date::MAX_DAYS = 11967900
 
constexpr sal_Int16 comphelper::date::kYearMax = SAL_MAX_INT16
 
constexpr sal_Int16 comphelper::date::kYearMin = SAL_MIN_INT16
 
constexpr sal_Int32 comphelper::date::nNullDateDays = convertDateToDays(30, 12, 1899)