diff options
Diffstat (limited to 'src/times.cc')
-rw-r--r-- | src/times.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/times.cc b/src/times.cc index c8eda4bf..26c91ea4 100644 --- a/src/times.cc +++ b/src/times.cc @@ -661,6 +661,16 @@ void date_parser_t::determine_when(date_parser_t::lexer_t::token_t& tok, (boost::get<date_time::weekdays>(*tok.value)); break; + case lexer_t::token_t::TOK_TODAY: + specifier = date_specifier_t(CURRENT_DATE()); + break; + case lexer_t::token_t::TOK_TOMORROW: + specifier = date_specifier_t(CURRENT_DATE() + gregorian::days(1)); + break; + case lexer_t::token_t::TOK_YESTERDAY: + specifier = date_specifier_t(CURRENT_DATE() - gregorian::days(1)); + break; + default: tok.unexpected(); break; |