Search Results

Search: Posts Made By: vgersh99
Forum: HP-UX 12-25-2018
13,234
Posted By vgersh99
Oh, I didn't know that. Then another...
Oh, I didn't know that.
Then another alternative with awk:

echo '2012-07-26 15:00:00' | awk -F'[- :]' '{srand();now=srand(); timeE= $2*2629743 + $3*86400 + ($1-1970)*31556926 +$4*3600 +$5*60+$6;...
Forum: HP-UX 12-24-2018
13,234
Posted By vgersh99
well... you can convert everything to epoch and...
well... you can convert everything to epoch and do math with epoch.

E.g. as a starter...

echo '2012-07-26 15:00:00' | awk -F'[- :]' -v now="$(date +%s)" '{timeE= $2*2629743 + $3*86400 +...
Showing results 1 to 2 of 2

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