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
Job option automatic datestamp ${DATE:..} is not documented #309
Comments
Could add this info to the Option edit page too |
Also, if two arguments are using |
@cafemike what rundeck version are you using? |
@gschueler This was found in version 2.9.4-1. |
i could not reproduce in 2.10. what is your job definition, and how are you entering the date string for the options? (i.e. what format are you using. example:
|
how can i add seconds and minutes to DATE using this option? |
use |
like this ${DATE:yyyyMMddmmss} ? |
yes |
thanks, it worked. |
why this parameter: ${DATE-11:yyyyMMdd} 2018-01-11 evaluates to 2018-12-31, shouldn't be 2017-12-31? |
@thiagobucca sounds like a bug |
Can I add or minus "minutes, seconds" using this? It's like, supports days only. |
have you find a solution to play on minutes or second ? |
It only supports days - see the code for |
Issue type: Documentation
You can use the string
${DATE:format}
as a job option vlaue, which will be converted when the job/command is executed.${DATE:format}
current date in format used by the Java SimpleDateFormatter${DATE+2:format}
two days from now${DATE-2:format}
two days agoThe text was updated successfully, but these errors were encountered: