@@ -2790,21 +2790,21 @@ interpolation:
27902790 - created_at : " 2020-01-01 00:00:00.000+00:00"
27912791 - updated_at : " 2020-01-02 00:00:00.000+00:00"
27922792 macros :
2793- - title : Now (UTC)
2793+ - title : now_utc
27942794 description : Returns the current date and time in the UTC timezone.
27952795 arguments : {}
27962796 return_type : Datetime
27972797 examples :
27982798 - " '{{ now_utc() }}' -> '2021-09-01 00:00:00+00:00'"
27992799 - " '{{ now_utc().strftime('%Y-%m-%d') }}' -> '2021-09-01'"
2800- - title : Today (UTC)
2800+ - title : today_utc
28012801 description : Returns the current date in UTC timezone. The output is a date object.
28022802 arguments : {}
28032803 return_type : Date
28042804 examples :
28052805 - " '{{ today_utc() }}' -> '2021-09-01'"
28062806 - " '{{ today_utc().strftime('%Y/%m/%d')}}' -> '2021/09/01'"
2807- - title : Timestamp
2807+ - title : timestamp
28082808 description : Converts a number or a string representing a datetime (formatted as ISO8601) to a timestamp. If the input is a number, it is converted to an int. If no timezone is specified, the string is interpreted as UTC.
28092809 arguments :
28102810 datetime : A string formatted as ISO8601 or an integer representing a unix timestamp
@@ -2815,15 +2815,15 @@ interpolation:
28152815 - " '{{ timestamp('2022-02-28T00:00:00Z') }}' -> 1646006400"
28162816 - " '{{ timestamp('2022-02-28 00:00:00Z') }}' -> 1646006400"
28172817 - " '{{ timestamp('2022-02-28T00:00:00-08:00') }}' -> 1646035200"
2818- - title : Max
2818+ - title : max
28192819 description : Returns the largest object of a iterable, or or two or more arguments.
28202820 arguments :
28212821 args : iterable or a sequence of two or more arguments
28222822 return_type : Any
28232823 examples :
28242824 - " '{{ max(2, 3) }}' -> 3"
28252825 - " '{{ max([2, 3]) }}' -> 3"
2826- - title : Day Delta
2826+ - title : day_delta
28272827 description : Returns the datetime of now() + num_days.
28282828 arguments :
28292829 num_days : The number of days to add to now
@@ -2833,16 +2833,16 @@ interpolation:
28332833 - " '{{ day_delta(1) }}' -> '2021-09-02T00:00:00.000000+0000'"
28342834 - " '{{ day_delta(-1) }}' -> '2021-08-31:00:00.000000+0000'"
28352835 - " '{{ day_delta(25, format='%Y-%m-%d') }}' -> '2021-09-02'"
2836- - title : Duration
2837- description : Converts an ISO8601 duratioin to datetime. timedelta.
2836+ - title : duration
2837+ description : Converts an ISO8601 duration to datetime timedelta.
28382838 arguments :
28392839 duration_string : " A string representing an ISO8601 duration. See https://www.digi.com/resources/documentation/digidocs//90001488-13/reference/r_iso_8601_duration_format.htm for more details."
28402840 return_type : datetime.timedelta
28412841 examples :
28422842 - " '{{ duration('P1D') }}' -> '1 day, 0:00:00'"
28432843 - " '{{ duration('P6DT23H') }}' -> '6 days, 23:00:00'"
28442844 - " '{{ (now_utc() - duration('P1D')).strftime('%Y-%m-%dT%H:%M:%SZ') }}' -> '2021-08-31T00:00:00Z'"
2845- - title : Format Datetime
2845+ - title : format_datetime
28462846 description : Converts a datetime or a datetime-string to the specified format.
28472847 arguments :
28482848 datetime : The datetime object or a string to convert. If datetime is a string, it must be formatted as ISO8601.
@@ -2854,7 +2854,7 @@ interpolation:
28542854 - " {{ format_datetime(config['start_date'], '%Y-%m-%dT%H:%M:%S.%fZ') }}"
28552855 - " {{ format_datetime(config['start_date'], '%Y-%m-%dT%H:%M:%S.%fZ', '%a, %d %b %Y %H:%M:%S %z') }}"
28562856 filters :
2857- - title : Hash
2857+ - title : hash
28582858 description : Convert the specified value to a hashed string.
28592859 arguments :
28602860 hash_type : Valid hash type for converts ('md5' as default value).
@@ -2864,26 +2864,26 @@ interpolation:
28642864 - " {{ 'Test client_secret' | hash() }} -> '3032d57a12f76b61a820e47b9a5a0cbb'"
28652865 - " {{ 'Test client_secret' | hash('md5') }} -> '3032d57a12f76b61a820e47b9a5a0cbb'"
28662866 - " {{ 'Test client_secret' | hash('md5', salt='salt') }} -> '5011a0168579c2d94cbbe1c6ad14327c'"
2867- - title : Base64 encoder
2867+ - title : base64encode
28682868 description : Convert the specified value to a string in the base64 format.
28692869 arguments : {}
28702870 return_type : str
28712871 examples :
28722872 - " {{ 'Test client_secret' | base64encode }} -> 'VGVzdCBjbGllbnRfc2VjcmV0'"
2873- - title : Base64 decoder
2873+ - title : base64decode
28742874 description : Decodes the specified base64 format value into a common string.
28752875 arguments : {}
28762876 return_type : str
28772877 examples :
28782878 - " {{ 'ZmFrZSByZWZyZXNoX3Rva2VuIHZhbHVl' | base64decode }} -> 'fake refresh_token value'"
2879- - title : String
2879+ - title : string
28802880 description : Converts the specified value to a string.
28812881 arguments : {}
28822882 return_type : str
28832883 examples :
28842884 - ' {{ 1 | string }} -> "1"'
28852885 - ' {{ ["hello", "world" | string }} -> "["hello", "world"]"'
2886- - title : Regex Search
2886+ - title : regex_search
28872887 description : Match the input string against a regular expression and return the first match.
28882888 arguments :
28892889 regex : The regular expression to search for. It must include a capture group.
0 commit comments