]> err.no Git - dotfiles/commitdiff
Add meetingdate function
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Fri, 20 Jul 2007 10:39:47 +0000 (10:39 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Fri, 20 Jul 2007 10:39:47 +0000 (10:39 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@1037 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

environment

index 715f2f45836e25a2d447ad17c43102ab5f62ff1a..fb3bbde8e5eaf12ae0da98d9b01c5055fa1d804d 100644 (file)
@@ -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