LibreOffice Module basic (master) 1
|
#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>
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 &) |
|
strong |
bool implDateSerial | ( | sal_Int16 | nYear, |
sal_Int16 | nMonth, | ||
sal_Int16 | nDay, | ||
bool | bUseTwoDigitYear, | ||
SbDateCorrection | eCorr, | ||
double & | rdRet | ||
) |
Definition at line 4630 of file methods.cxx.
References Date::AddDays(), Date::AddMonths(), ERRCODE_BASIC_BAD_ARGUMENT, StarBASIC::Error(), GetDayDiff(), Date::GetMonth(), Date::GetYear(), Date::IsValidDate(), SbiRuntime::isVBAEnabled(), None, Date::Normalize(), RollOver, SAL_MAX_INT16, Date::SetDay(), Date::SetMonth(), and TruncateToMonth.
Referenced by SbxValue::Format(), and 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.
sal_Int16 implGetDateDay | ( | double | aDate | ) |
sal_Int16 implGetDateMonth | ( | double | aDate | ) |
sal_Int16 implGetDateYear | ( | double | aDate | ) |
Definition at line 4621 of file methods.cxx.
References Date::AddDays(), and Date::GetYear().
Referenced by SbxValue::Format().
sal_Int16 implGetHour | ( | double | dDate | ) |
sal_Int16 implGetMinute | ( | double | dDate | ) |
Definition at line 4761 of file methods.cxx.
Referenced by SbxValue::Format().
sal_Int16 implGetSecond | ( | double | dDate | ) |
sal_Int16 implGetWeekDay | ( | double | aDate, |
bool | bFirstDayParam = false , |
||
sal_Int16 | nFirstDay = 0 |
||
) |
Definition at line 2953 of file methods1.cxx.
References Date::AddDays(), ERRCODE_BASIC_BAD_ARGUMENT, ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::Error(), Date::GetDayOfWeek(), getLocaleCalendar(), and SUNDAY.
Referenced by SbxValue::Format().
double implTimeSerial | ( | sal_Int16 | nHour, |
sal_Int16 | nMinute, | ||
sal_Int16 | nSecond | ||
) |
Definition at line 4740 of file methods.cxx.
References tools::Time::secondPerDay, tools::Time::secondPerHour, and tools::Time::secondPerMinute.
Referenced by implDateTimeSerial().
void SbxDateFromUNODate | ( | SbxValue * | , |
const css::util::Date & | |||
) |
void SbxDateFromUNODateTime | ( | SbxValue * | , |
const css::util::DateTime & | |||
) |
void SbxDateFromUNOTime | ( | SbxValue * | , |
const css::util::Time & | |||
) |
css::util::Date SbxDateToUNODate | ( | const SbxValue * | ) |
css::util::DateTime SbxDateToUNODateTime | ( | const SbxValue * | ) |
css::util::Time SbxDateToUNOTime | ( | const SbxValue * | ) |