You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name: just_passed
Category: time
Description: returns a date in the past not before the given milliseconds
Parameters: milliseconds int
Localizable: false
Return: string
Example: jr template run --embedded '{{just_passed 60000}}'
Output: 2024-11-10 22:59:5
Name: now_add
Category: time
Description: returns a date in the future for the given milliseconds
Parameters: milliseconds int
Localizable: false
Return: string
Example: jr template run --embedded '{{now_add 60000}}'
Output: 2024-11-10 21:50:00
Name: now_sub
Category: time
Description: returns a date in the past for the given milliseconds
Parameters: milliseconds int
Localizable: false
Return: string
Example: jr template run --embedded '{{now_sub 60000}}'
Output: 2024-11-10 22:01:00
The text was updated successfully, but these errors were encountered:
ugol
changed the title
Port just_passed, now_add and now_sub functions from jr
feat: port just_passed, now_add and now_sub functions from jr
Oct 27, 2024
Three new time functions added in jr
Name: just_passed
Category: time
Description: returns a date in the past not before the given milliseconds
Parameters: milliseconds int
Localizable: false
Return: string
Example: jr template run --embedded '{{just_passed 60000}}'
Output: 2024-11-10 22:59:5
Name: now_add
Category: time
Description: returns a date in the future for the given milliseconds
Parameters: milliseconds int
Localizable: false
Return: string
Example: jr template run --embedded '{{now_add 60000}}'
Output: 2024-11-10 21:50:00
Name: now_sub
Category: time
Description: returns a date in the past for the given milliseconds
Parameters: milliseconds int
Localizable: false
Return: string
Example: jr template run --embedded '{{now_sub 60000}}'
Output: 2024-11-10 22:01:00
The text was updated successfully, but these errors were encountered: