We're updating the issue view to help you get more done. 

Date reporting functions to support now, today, yesterday, tomorrow and hour additions

Description

To simplify reporting and macro expressions, add the following:

  • date:now() - returns the current date/time

  • date:today() - returns the current date, with the time set to 00:00

  • date:tomorrow() - returns tomorrow's date, with the time set to 00:00

  • date:yesterday() - returns yesterday's date, with the time set to 00:00

In addition, add support to add/subtract hours via the add() function e.g.:

  • date:add(date:now(), "12h")

  • date:add(date:today(), "8h")

  • date:add(date:now(), "-12h")

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Priority

Minor