This commit is contained in:
gutmet 2020-04-30 20:37:33 +02:00
parent 32d4235a0b
commit c1cc974b5c

View File

@ -18,7 +18,7 @@ function printNonEmpty {
function printTimestamp {
timestamp="0x$1"
year="$(( ((timestamp & 0xFE000000) >> 25) + 2000 ))"
day="$(( (timestamp & 0x01F00000) >> 21 ))"
day="$(( (timestamp & 0x01F00000) >> 20 ))"
month="$(( (timestamp & 0x000F0000) >> 16 ))"
hour="$(( (timestamp & 0x0000FF00) >> 8 ))"
minute="$(( timestamp & 0x000000FF ))"