moved stdtime from filefct.sh to utils.sh

This commit is contained in:
2021-10-27 13:56:55 +02:00
parent 4561922b81
commit 3bb5a880d5
2 changed files with 9 additions and 9 deletions

View File

@@ -9,6 +9,15 @@
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Define normalised time display, filename friendly
stdtime()
{
date --rfc-3339=seconds | sed -e 's/ /-/' -e 's/://g'
}
export -f stdtime
# ------------------------------------------------------------------------------
# Check if a function exists, return 0 if so
function_exists() {