Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #9839] Implement support for formatting date/time #3224
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9839
Created by bsheqa on 2015-08-05 09:37:25 +00:00
It would be nice to have a date() function which could be used for services. The function should support multiple formats, like 'date' on linux.
This is an example on how it may look:
2016-03-29 11:22:34 +00:00 by (unknown) 47575eb
2016-03-29 11:27:20 +00:00 by (unknown) eb08922
2016-03-29 12:52:48 +00:00 by (unknown) 112f024
2016-04-21 11:31:12 +00:00 by gbeutner 5af437b
2016-04-21 12:04:56 +00:00 by gbeutner 46ff7bd
Updated by mfrosch on 2015-08-06 10:57:30 +00:00
We should provide a Date object to format dates and output them via config calls.
Output should be provided via functions, not macros :)
Updated by dgoetz on 2016-02-25 09:49:56 +00:00
It would also be nice to have the possibility to compare dates like in this use case.
I want create an internal check to notify someone if a date set as customvariable is reached. This necessary for a tool handling certificates requiring to be renewed every year as a black box.
This would require a function for the date object to get "now" and some comparison operators.
Updated by mfriedrich on 2016-03-29 15:02:57 +00:00