Last active 1752986119

Simple variables for the current date and time, great to include in logs for small scripts

date-time-bash.sh Raw
1currentDate=$(date +"%m_%d_%Y")
2currentTime=$(date +"%T")
3
4echo "Hello! It is $currentTime on the $currentDate" >> my-log.log