+ minimal in-source docs

This commit is contained in:
Robert Schulze 2023-09-15 11:21:49 +00:00
parent d0ad2fee5c
commit 70c95c7410
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 37 additions and 8 deletions

View File

@ -736,10 +736,43 @@ REGISTER_FUNCTION(MakeDate)
factory.registerFunction<FunctionMakeDateTime>();
factory.registerFunction<FunctionMakeDateTime64>();
factory.registerFunction<FunctionYYYYYMMDDToDate<DateTraits>>();
factory.registerFunction<FunctionYYYYYMMDDToDate<Date32Traits>>();
factory.registerFunction<FunctionYYYYMMDDhhmmssToDateTime>();
factory.registerFunction<FunctionYYYYMMDDhhmmssToDateTime64>();
factory.registerFunction<FunctionYYYYYMMDDToDate<DateTraits>>(
FunctionDocumentation{
.description = R"(
Converts a number containing the year, month and day number to a Date.
This functions is the opposite of function `toYYYYMMDD()`.
The output is undefined if the input does not encode a valid Date value.
)",
.categories{"Dates and Times"}
}
);
factory.registerFunction<FunctionYYYYYMMDDToDate<Date32Traits>>(
FunctionDocumentation{
.description = R"(
Like function `YYYYMMDDToDate()` but produces a Date32.
)",
.categories{"Dates and Times"}
}
);
factory.registerFunction<FunctionYYYYMMDDhhmmssToDateTime>(
FunctionDocumentation{
.description = R"(
Converts a number containing the year, month and day number to a DateTime.
The output is undefined if the input does not encode a valid DateTime value.
This functions is the opposite of function `toYYYYMMDD()`.
)",
.categories{"Dates and Times"}
}
);
factory.registerFunction<FunctionYYYYMMDDhhmmssToDateTime64>(
FunctionDocumentation{
.description = R"(
Like function `YYYYMMDDhhmmssToDate()` but produces a DateTime64.
Accepts an additional, optional `precision` parameter after the `timezone` parameter.
)",
.categories{"Dates and Times"}
}
);
}
}

View File

@ -56,10 +56,6 @@ URLHierarchy
URLPathHierarchy
UUIDNumToString
UUIDStringToNum
YYYYMMDDToDate
YYYYMMDDToDate32
YYYYMMDDhhmmssToDateTime
YYYYMMDDhhmmssToDateTime64
_CAST
__bitBoolMaskAnd
__bitBoolMaskOr