morrySnow commented on code in PR #2197: URL: https://github.com/apache/doris-website/pull/2197#discussion_r2055716537
########## docs/sql-manual/sql-functions/scalar-functions/date-time-functions/to-days.md: ########## @@ -24,27 +24,44 @@ specific language governing permissions and limitations under the License. --> -## to_days -### Description -#### Syntax -`INT TO DAYS` +## Description +Date calculation function, which is used to convert a date into a day value, that is, to calculate the total number of days from December 31, 0 AD (the base date) to the specified date. +## Syntax -Days of returning date distance 0000-01-01 +```sql +TO_DAYS([<datetime_value> | <date_value>]) Review Comment: 简化为 `TO_DAYS(<datetime_or_date_value>)` 如果要强调类型,可以在参数说明中呈现 ########## docs/sql-manual/sql-functions/scalar-functions/date-time-functions/weeks-add.md: ########## @@ -24,27 +24,64 @@ specific language governing permissions and limitations under the License. --> -## weeks_add -### description -#### Syntax +## Description +This function is used to add (or subtract) a certain number of weeks from a specified date or time value. -`DATETIME WEEKS_ADD(DATETIME date, INT weeks)` +## Syntax -ADD a specified number of weeks from a datetime or date +```sql +WEEKS_ADD([<date_value> | <datetime_value>], <weeks_value>) Review Comment: 类似的 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org