fengjian1129 commented on code in PR #11667:
URL: https://github.com/apache/dolphinscheduler/pull/11667#discussion_r977478508


##########
docs/docs/zh/guide/parameter/built-in.md:
##########
@@ -28,23 +28,33 @@
 - 我们定义这种基准变量为 \$[...] 格式的,\$[yyyyMMddHHmmss] 是可以任意分解组合的,比如:\$[yyyyMMdd], 
\$[HHmmss], \$[yyyy-MM-dd] 等
 
 - 也可以通过以下两种方式:
-
-  1.使用add_months()函数,该函数用于加减月份,
-  第一个入口参数为[yyyyMMdd],表示返回时间的格式
-  第二个入口参数为月份偏移量,表示加减多少个月
-  * 后 N 年:$[add_months(yyyyMMdd,12*N)]
-  * 前 N 年:$[add_months(yyyyMMdd,-12*N)]
-  * 后 N 月:$[add_months(yyyyMMdd,N)]
-  * 前 N 月:$[add_months(yyyyMMdd,-N)]
-  *******************************************
-  2.直接加减数字
-  在自定义格式后直接“+/-”数字
-  * 后 N 周:$[yyyyMMdd+7*N]
-  * 前 N 周:$[yyyyMMdd-7*N]
-  * 后 N 天:$[yyyyMMdd+N]
-  * 前 N 天:$[yyyyMMdd-N]
-  * 后 N 小时:$[HHmmss+N/24]
-  * 前 N 小时:$[HHmmss-N/24]
-  * 后 N 分钟:$[HHmmss+N/24/60]
-  * 前 N 分钟:$[HHmmss-N/24/60]
-
+    1.使用add_months()函数,该函数用于加减月份,
+    第一个入口参数为[yyyyMMdd],表示返回时间的格式
+    第二个入口参数为月份偏移量,表示加减多少个月

Review Comment:
   If my PR is merged, I will consider adding this design to the next PR. 
However, for business development, people prefer to use independent time 
expressions rather than one formula to produce multiple time expressions. In 
other words, I want to calculate the month. I only use addmonth (); I want to 
calculate the year. I only use addyear () and so on



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to