aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-yesterday
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlibexec/recit-yesterday9
1 files changed, 1 insertions, 8 deletions
diff --git a/libexec/recit-yesterday b/libexec/recit-yesterday
index ad6e804..48bcb96 100755
--- a/libexec/recit-yesterday
+++ b/libexec/recit-yesterday
@@ -1,11 +1,4 @@
#!/usr/bin/env bash
# Usage: recit yesterday
-# shellcheck source=/dev/null
-source lib/loader
-
-recfile=$(load_recit)
-
-fmt_date=$(perl -e "use POSIX qw(strftime); print strftime('%Y-%m-%d', localtime(time - 86400)), qq(\n);")
-
-recsel -e "(Time >> '$fmt_date 00:00:00' && Time << '$fmt_date 23:59:59') || Time == '$fmt_date'" -t Entry "${recfile}"
+recit-entries -t yesterday