diff options
Diffstat (limited to 'meetup')
-rwxr-xr-x | meetup/gen_dates.sh | 13 |
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 |