LibreOffice Module connectivity (master) 1
FDateFunctions.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <file/fcode.hxx>
23
24namespace connectivity::file
25 {
33 {
34 protected:
35 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
36 };
37
45 {
46 protected:
47 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
48 };
49
58 {
59 protected:
60 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
61 };
62
70 {
71 protected:
72 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
73 };
74
83 {
84 protected:
85 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
86 };
87
96 {
97 protected:
98 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
99 };
100
109 {
110 protected:
111 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
112 };
113
133 class OOp_Week : public ONthOperator
134 {
135 protected:
136 virtual ORowSetValue operate(const std::vector<ORowSetValue>& lhs) const override;
137 };
138
146 {
147 protected:
148 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
149 };
150
158 {
159 protected:
160 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
161 };
162
171 {
172 protected:
173 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
174 };
175
183 {
184 protected:
185 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
186 };
187
196 {
197 protected:
198 virtual ORowSetValue operate(const std::vector<ORowSetValue>& lhs) const override;
199 };
200
209 {
210 protected:
211 virtual ORowSetValue operate(const std::vector<ORowSetValue>& lhs) const override;
212 };
213
220 class OOp_Now : public ONthOperator
221 {
222 protected:
223 virtual ORowSetValue operate(const std::vector<ORowSetValue>& lhs) const override;
224 };
225
226}
227
228/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
CURDATE() CURRENT_DATE Returns today's date as a value in 'YYYY-MM-DD' or YYYYMMDD format,...
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
CURTIME() CURRENT_TIME Returns the current time as a value in 'HH:MM:SS' or HHMMSS format,...
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
DAYNAME(date) Returns the name of the weekday for date:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
DAYOFMONTH(date) Returns the day of the month for date, in the range 1 to 31:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
DAYOFWEEK(date) Returns the weekday index for date (1 = Sunday, 2 = Monday, ... 7 = Saturday).
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
DAYOFYEAR(date) Returns the day of the year for date, in the range 1 to 366:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
HOUR(time) Returns the hour for time, in the range 0 to 23:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
MINUTE(time) Returns the minute for time, in the range 0 to 59:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
MONTHNAME(date) Returns the name of the month for date:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
MONTH(date) Returns the month for date, in the range 1 to 12:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
NOW() Returns the current date and time as a value in 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS format,...
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
QUARTER(date) Returns the quarter of the year for date, in the range 1 to 4:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
SECOND(time) Returns the second for time, in the range 0 to 59:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
WEEK(date) WEEK(date,first) With a single argument, returns the week for date, in the range 0 to 53 (...
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
YEAR(date) Returns the year for date, in the range 1000 to 9999:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override