From: tfheen Date: Fri, 20 Jul 2007 10:39:47 +0000 (+0000) Subject: Add meetingdate function X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7cb8dc7cf7e1bbe7a9d499ebcf36b75b1ea0174;p=dotfiles Add meetingdate function git-svn-id: file:///svn/tfheen/trunk/dotfiles@1037 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/environment b/environment index 715f2f4..fb3bbde 100644 --- a/environment +++ b/environment @@ -50,6 +50,13 @@ nod () { vim + ${NOD} } +meetingdate () { + TIME=$1 + TZMEETING=$2 + TZ=${TZ:=$3} + date -d "$(TZ=$TZMEETING date --rfc-822 -d "$TIME")" +} + blog () { pushd $(pwd) if [ ! -d "$HOME/blog" ]; then