Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: port just_passed, now_add and now_sub functions from jr #27

Open
ugol opened this issue Sep 27, 2024 · 0 comments
Open

feat: port just_passed, now_add and now_sub functions from jr #27

ugol opened this issue Sep 27, 2024 · 0 comments

Comments

@ugol
Copy link
Contributor

ugol commented Sep 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

@ugol 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant