Created
March 12, 2019 13:44
-
-
Save fanyeren/6175fc9726b712e18e9126cfb0dc5fae to your computer and use it in GitHub Desktop.
what does dmesg timestamp mean?
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
function dmesg_time() { | |
time=$1; shift; | |
date -d "1970-01-01 UTC `echo "$(date +%s)-$(cat /proc/uptime | cut -f 1 -d' ')+${time}" | bc ` seconds" | |
} | |
# usage: dmesg_time 27036930.869716 | |
# output: Tue Mar 5 19:15:28 CST 2019 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment