Created
March 25, 2025 08:47
-
-
Save zypA13510/5711c4f8f4ff76541810b05209d3477c to your computer and use it in GitHub Desktop.
print NTP 64-bit timestamp in bash
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/bash | |
echo $(( ($(date +%s) + 2208988800 << 32) | 10#$(date +%N) * 4294967296 / 1000000000 )) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment