summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.cc b/src/session.cc
index 6fa07664..9d1a23f4 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -235,6 +235,11 @@ expr_t::ptr_op_t session_t::lookup(const string& name)
{
const char * p = name.c_str();
switch (*p) {
+ case 'd':
+ if (is_eq(p, "date"))
+ return MAKE_FUNCTOR(session_t::fn_today);
+ break;
+
case 'n':
if (is_eq(p, "now"))
return MAKE_FUNCTOR(session_t::fn_now);