morrySnow commented on code in PR #2212:
URL: https://github.com/apache/doris-website/pull/2212#discussion_r2055845645


##########
docs/sql-manual/sql-functions/scalar-functions/date-time-functions/weekofyear.md:
##########
@@ -24,27 +24,36 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-## weekofyear
-### Description
-#### Syntax
+## Description
 
-`INT WEEKOFYEAR (DATETIME DATE)`
+Get the week of the year
 
+## Syntax
 
+```sql
+WEEKOFYEAR (<date>)

Review Comment:
   需要类似 yearweek,写清楚计算 week 的逻辑是什么



##########
docs/sql-manual/sql-functions/scalar-functions/date-time-functions/week.md:
##########
@@ -24,16 +24,28 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-## week
-### Description
-#### Syntax
+## Description
 
-`INT WEEK(DATE date[, INT mode])`
+Returns the day of the week for a given date. The default value of mode is 0
 
-Returns the week number for date.The value of the mode argument defaults to 0.
-The following table describes how the mode argument works.
+## Syntax
 
-|Mode |First day of week |Range  |Week 1 is the first week …    |
+```sql
+WEEK(<date>[, <mode>])

Review Comment:
   是不是和 yearweek 是一个函数?如果是的话,保留一个,然后另外一个作为它的别名



-- 
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

Reply via email to