functions.sh/com/when.sh

10 lines
443 B
Bash
Executable File

#!/bin/bash
# returns a precise but human readable date format
# author:jakimfett
# @todo - split the formatting command into multiple single line additions to a variable, with reasoning and explanation for each piece
# @todo - add a variable for an optional line pre- and -post addition, eg '`#`' or '`;`'
# @todo - implement time-since-last here, or on application level?
echo
date +"%Y_%m_%d%t%t%t%H.%M.%S (%Z/GMT%z)%n%A, %d %B%t%tDay %j"