summaryrefslogtreecommitdiff
path: root/meetup
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2011-05-09 02:35:51 +0000
committerChristian Pointner <equinox@ffgraz.net>2011-05-09 02:35:51 +0000
commit9a258c8a754917d9e1ae78ba5a674b18e7dda999 (patch)
treec0bdc1344979d934ef24017c2ed16bf2222a41a9 /meetup
parent39868deae293c5a28d1eb76c59ae0138a3f81602 (diff)
added gen_dates script (not finished yet)
Diffstat (limited to 'meetup')
-rwxr-xr-xmeetup/gen_dates.sh13
1 files changed, 13 insertions, 0 deletions
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