diff --git a/dot_bashrc.d/executable_09.functions b/dot_bashrc.d/executable_09.functions index 0fafd11..3df3de7 100755 --- a/dot_bashrc.d/executable_09.functions +++ b/dot_bashrc.d/executable_09.functions @@ -44,4 +44,12 @@ extract() { esac } +# Misc functions + +# convert epoch timestamp to human readable date +epoch2date() { + local string="${1:-0}" + date -d "@$string" +} + PATH=$PATH:$HOME/bin