Created
February 1, 2015 14:31
-
-
Save romanmah/d877bb030b9822753378 to your computer and use it in GitHub Desktop.
Convert kernel time to utc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
ut=`cut -d' ' -f1 </proc/uptime` | |
ts=`date +%s` | |
date -d"70-1-1 + $ts sec - $ut sec + $1 sec" +"%F %T" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment