diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index a9c1a392..342055c0 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -328,6 +328,10 @@ function timestamp { } function parse_timestamp { + date -d "@$1" +} + +function parse_timestamp2 { date -d "@$(echo $1 | cut -c -10)" -Iseconds }