From 9a258c8a754917d9e1ae78ba5a674b18e7dda999 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 9 May 2011 02:35:51 +0000 Subject: added gen_dates script (not finished yet) --- meetup/gen_dates.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 meetup/gen_dates.sh diff --git a/meetup/gen_dates.sh b/meetup/gen_dates.sh new file mode 100755 index 0000000..0457a39 --- /dev/null +++ b/meetup/gen_dates.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +DOW=`date --date="next monday" +"%d"` +DOW_TS=`date --date="next monday" +"%s"` + +echo $DOW +echo $DOW_TS + +NEXT_DOW_TS=$((DOW_TS + (7 * 24 * 3600))) +NEXT_DOW=`date --date="@$NEXT_DOW_TS" +"%d"` + +echo $NEXT_DOW +echo $NEXT_DOW_TS -- cgit v1.2.1