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

Activity

Show:

Tim Anderson July 18, 2016 at 5:02 AM

Changes applied in revision 7156

Fixed

Details

Assignee

Reporter

Time tracking

2h logged

Components

Fix versions

Priority

Who's Looking?

Open Who's Looking?

Created July 9, 2016 at 1:44 AM
Updated November 6, 2016 at 10:54 PM
Resolved July 18, 2016 at 5:02 AM
Who's Looking?