LibreOffice Module basic (master) 1
Enumerations | Functions
date.hxx File Reference
#include <com/sun/star/util/Date.hpp>
#include <com/sun/star/util/Time.hpp>
#include <com/sun/star/util/DateTime.hpp>
#include <basic/sbxvar.hxx>
Include dependency graph for date.hxx:

Go to the source code of this file.

Enumerations

enum class  SbDateCorrection {
  None ,
  RollOver ,
  TruncateToMonth
}
 

Functions

bool implDateSerial (sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, bool bUseTwoDigitYear, SbDateCorrection eCorr, double &rdRet)
 
double implTimeSerial (sal_Int16 nHour, sal_Int16 nMinute, sal_Int16 nSecond)
 
bool implDateTimeSerial (sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, sal_Int16 nHour, sal_Int16 nMinute, sal_Int16 nSecond, double &rdRet)
 
sal_Int16 implGetWeekDay (double aDate, bool bFirstDayParam=false, sal_Int16 nFirstDay=0)
 
sal_Int16 implGetDateYear (double aDate)
 
sal_Int16 implGetDateMonth (double aDate)
 
sal_Int16 implGetDateDay (double aDate)
 
sal_Int16 implGetHour (double dDate)
 
sal_Int16 implGetMinute (double dDate)
 
sal_Int16 implGetSecond (double dDate)
 
css::util::Date SbxDateToUNODate (const SbxValue *)
 
void SbxDateFromUNODate (SbxValue *, const css::util::Date &)
 
css::util::Time SbxDateToUNOTime (const SbxValue *)
 
void SbxDateFromUNOTime (SbxValue *, const css::util::Time &)
 
css::util::DateTime SbxDateToUNODateTime (const SbxValue *)
 
void SbxDateFromUNODateTime (SbxValue *, const css::util::DateTime &)
 

Enumeration Type Documentation

◆ SbDateCorrection

enum class SbDateCorrection
strong
Enumerator
None 
RollOver 
TruncateToMonth 

Definition at line 28 of file date.hxx.

Function Documentation

◆ implDateSerial()

bool implDateSerial ( sal_Int16  nYear,
sal_Int16  nMonth,
sal_Int16  nDay,
bool  bUseTwoDigitYear,
SbDateCorrection  eCorr,
double &  rdRet 
)

◆ implDateTimeSerial()

bool implDateTimeSerial ( sal_Int16  nYear,
sal_Int16  nMonth,
sal_Int16  nDay,
sal_Int16  nHour,
sal_Int16  nMinute,
sal_Int16  nSecond,
double &  rdRet 
)

Definition at line 4750 of file methods.cxx.

References implDateSerial(), implTimeSerial(), and None.

◆ implGetDateDay()

sal_Int16 implGetDateDay ( double  aDate)

◆ implGetDateMonth()

sal_Int16 implGetDateMonth ( double  aDate)

◆ implGetDateYear()

sal_Int16 implGetDateYear ( double  aDate)

Definition at line 4621 of file methods.cxx.

References Date::AddDays(), and Date::GetYear().

Referenced by SbxValue::Format().

◆ implGetHour()

sal_Int16 implGetHour ( double  dDate)

◆ implGetMinute()

sal_Int16 implGetMinute ( double  dDate)

Definition at line 4761 of file methods.cxx.

Referenced by SbxValue::Format().

◆ implGetSecond()

sal_Int16 implGetSecond ( double  dDate)

◆ implGetWeekDay()

sal_Int16 implGetWeekDay ( double  aDate,
bool  bFirstDayParam = false,
sal_Int16  nFirstDay = 0 
)

◆ implTimeSerial()

double implTimeSerial ( sal_Int16  nHour,
sal_Int16  nMinute,
sal_Int16  nSecond 
)

◆ SbxDateFromUNODate()

void SbxDateFromUNODate ( SbxValue ,
const css::util::Date  
)

◆ SbxDateFromUNODateTime()

void SbxDateFromUNODateTime ( SbxValue ,
const css::util::DateTime  
)

◆ SbxDateFromUNOTime()

void SbxDateFromUNOTime ( SbxValue ,
const css::util::Time  
)

◆ SbxDateToUNODate()

css::util::Date SbxDateToUNODate ( const SbxValue )

◆ SbxDateToUNODateTime()

css::util::DateTime SbxDateToUNODateTime ( const SbxValue )

◆ SbxDateToUNOTime()

css::util::Time SbxDateToUNOTime ( const SbxValue )