aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-yesterday
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-08-21 02:44:05 +0000
committerJulio Capote <jcapote@gmail.com>2022-08-21 02:44:05 +0000
commitbf922c47dedde37e3d97c4bf82f38e7d769fa267 (patch)
tree14c2c8a17250f93a0248bd9b887fa8562c26a345 /libexec/recit-yesterday
parent9e4f34a5989f6be48eaaebf17c8e42e61ebf3d76 (diff)
downloadrecit-bf922c47dedde37e3d97c4bf82f38e7d769fa267.tar.gz
move tomorrow/yesterday/today to entries
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