Search Results

Search: Posts Made By: ford99
9,855
Posted By birei
Hi, Test next commands: $ date...
Hi,

Test next commands:

$ date --date=1-jun-11 +%d%b%y
01jun11
$ date --date=1-jun-11 +%e/%m/%Y | sed -e 's/^ //' -e 's/\/0\([1-9]\)\//\/\1\//'
1/6/2011
Regards,
Birei
7,288
Posted By jlliagre
Assuming you have GNU date available: $ s=$((...
Assuming you have GNU date available:
$ s=$(( $(date -d "Jul 13 01:02:01" +%s) - $(date -d "Jul 12 16:02:01" +%s) ))
$ printf "%02d:%02d:%02d\n" $((s/3600)) $((s%3600/60)) $((s%60))
09:00:00
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy