LibreOffice Module connectivity (master) 1
|
DAYOFWEEK(date) Returns the weekday index for date (1 = Sunday, 2 = Monday, ... 7 = Saturday). More...
#include <FDateFunctions.hxx>
Protected Member Functions | |
virtual ORowSetValue | operate (const ORowSetValue &lhs) const override |
Additional Inherited Members | |
Public Member Functions inherited from connectivity::file::OUnaryOperator | |
virtual void | Exec (OCodeStack &) override |
virtual ORowSetValue | operate (const ORowSetValue &lhs) const =0 |
virtual void | Exec (OCodeStack &)=0 |
Public Member Functions inherited from connectivity::file::OCode | |
virtual | ~OCode () |
OCode (OCode &&)=default | |
OCode (const OCode &)=default | |
OCode ()=default | |
OCode & | operator= (const OCode &)=default |
OCode & | operator= (OCode &&)=default |
DAYOFWEEK(date) Returns the weekday index for date (1 = Sunday, 2 = Monday, ... 7 = Saturday).
These index values correspond to the ODBC standard.
SELECT DAYOFWEEK('1998-02-03'); -> 3
Definition at line 32 of file FDateFunctions.hxx.
|
overrideprotectedvirtual |
Implements connectivity::file::OUnaryOperator.
Definition at line 29 of file FDateFunctions.cxx.
References FRIDAY, connectivity::ORowSetValue::getDate(), Date::GetDayOfWeek(), connectivity::ORowSetValue::isNull(), MONDAY, SATURDAY, SUNDAY, THURSDAY, TUESDAY, and WEDNESDAY.