ENH: Add new interval hint :fortnight (sopw - eow).

This commit is contained in:
Daniel 2020-01-27 14:29:51 +01:00 committed by Thomas Lauf
parent 41c50e009c
commit 13fb0ad8e3
3 changed files with 3 additions and 0 deletions

View file

@ -37,6 +37,7 @@ Range hints provide convenient shortcuts to date ranges:
:yesterday The 24 hours of the previous day
:day The 24 hours of the current day
:week This week
:fortnight This week and the one before
:month This month
:quarter This quarter
:year This year

View file

@ -147,6 +147,7 @@ bool expandIntervalHint (
{":yesterday", {"yesterday", "today"}},
{":day", {"today", "eod"}},
{":week", {"sow", "eow"}},
{":fortnight", {"sopw", "eow"}},
{":month", {"som", "eom"}},
{":quarter", {"soq", "eoq"}},
{":year", {"soy", "eoy"}},

View file

@ -105,6 +105,7 @@ void initializeEntities (CLI& cli)
cli.entity ("hint", ":quarter");
cli.entity ("hint", ":quiet");
cli.entity ("hint", ":week");
cli.entity ("hint", ":fortnight");
cli.entity ("hint", ":year");
cli.entity ("hint", ":yes");
cli.entity ("hint", ":yesterday");