1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/common/enums/date_part_specifier.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/common/constants.hpp"
12
13namespace duckdb {
14
15enum class DatePartSpecifier : uint8_t {
16 YEAR,
17 MONTH,
18 DAY,
19 DECADE,
20 CENTURY,
21 MILLENNIUM,
22 MICROSECONDS,
23 MILLISECONDS,
24 SECOND,
25 MINUTE,
26 HOUR,
27 EPOCH,
28 DOW,
29 ISODOW,
30 WEEK,
31 ISOYEAR,
32 QUARTER,
33 DOY,
34 YEARWEEK,
35 ERA,
36 TIMEZONE,
37 TIMEZONE_HOUR,
38 TIMEZONE_MINUTE
39};
40
41DUCKDB_API bool TryGetDatePartSpecifier(const string &specifier, DatePartSpecifier &result);
42DUCKDB_API DatePartSpecifier GetDatePartSpecifier(const string &specifier);
43
44} // namespace duckdb
45