citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit c2000f91c344b71a90eeaa04cca6ce9b0b5d50b5
parent bf8386acec74969d4e93c638960025e053ec8a33
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 28 Oct 2020 15:13:13 -0700

cmdtree: utc local

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Abin/localutc | 3+++
Mdotfiles/cmdtree/cfg.def.h | 1+
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/bin/localutc b/bin/localutc @@ -0,0 +1,3 @@ +#!/usr/bin/env sh +exec date -d "$*"Z +'%F %R' + diff --git a/dotfiles/cmdtree/cfg.def.h b/dotfiles/cmdtree/cfg.def.h @@ -217,6 +217,7 @@ static struct command media_commands[] = { static struct command date_commands[] = { DEFCMD("d", "local", "n mydate") DEFCMD("u", "utc", "n mydate -u") + DEFCMD("l", "utc-local", "dmenupn localutc localutc") }; static struct command open_doc_commands[] = {