Skip to content

Commit

Permalink
docs: add explanation for argument in datediff macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis-UiPath authored and cverhoef committed Mar 29, 2022
1 parent 946335a commit 5a129c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Usage:
`{{ pm_utils.date_from_timestamp('[expression]') }}`

#### datediff ([source](macros/multiple_databases/datediff.sql))
This macro computes the difference between two date, time, or datetime expressions based on the specified datepart. It returns an integer indicating the difference in, for example, milliseconds, days, or months.
This macro computes the difference between two date, time, or datetime expressions based on the specified `datepart` and returns an integer value. The datepart can be any of the following values: year, quarter, month, week, day, hour, minute, second, millisecond.

Usage:
`{{ pm_utils.datediff('[datepart]', '[start_date_expression]', '[end_date_expression]') }}`
Expand Down

0 comments on commit 5a129c6

Please sign in to comment.