1 2 3 4 5 6
#!/bin/sh case "$1" in -here) exec date +%Y-%m-%dT%H:%M:%SZ%:z ;; *) exec date -u +%Y-%m-%dT%H:%M:%SZ ;; esac