Added new function: epoch2date.

This commit is contained in:
Heavy 2021-06-28 12:47:32 +02:00
parent e28fb54e03
commit f35b07766c

View File

@ -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