1 2 3 4 5 6 7
#!/bin/sh case "$1" in -here) date +%FT%TZ%:z ;; -net) date -u +%F"$(beats)" ;; *) date -u -Iseconds ;; esac