Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -e
- typeset -ig start=$(date -d '2013-01-01T00:00' +%s)
- typeset -ig goal=$(date -d '2014-01-01T00:00' +%s)
- rm -f DATETEST
- for ((; start <= goal; start += 3600)); do
- echo $(date -d "@${start}" +'%Y%m%d %H:%M') >> DATETEST
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement