SbloodyS commented on code in PR #18726:
URL:
https://github.com/apache/dolphinscheduler/pull/18726#discussion_r4346050575
##########
docs/docs/en/guide/parameter/built-in.md:
##########
@@ -49,4 +49,6 @@
- Before(-)/After(+) The last day of Month(The unit of N is month):
`$[month_last_day(yyyy-MM-dd,-N)]`,Such as when N=1, 2022-08-28 => 2022-07-31
- Before(-)/After(+) The first day of Week(The unit of N is week):
`$[week_first_day(yyyy-MM-dd,-N)]`,Such as when N=1, 2022-08-26 => 2022-08-15
- Before(-)/After(+) The last day of Week(The unit of N is week):
`$[week_last_day(yyyy-MM-dd,-N)]`, Such as when N=1, 2022-08-26 => 2022-08-21
+ - The date format parameter also supports date offsets (e.g.
`yyyy-MM-dd-1` to calculate month/week boundaries based on yesterday), such as
`$[month_first_day(yyyy-MM-dd-1)]` or `$[month_first_day(yyyy-MM-dd-1, 0)]`.
Review Comment:
It's better to use fixed methods, such as `$[month_first_day(yyyy-MM-dd-1)]`
--
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]