Skip to content

Instantly share code, notes, and snippets.

@zypA13510
Created March 25, 2025 08:47
Show Gist options
  • Save zypA13510/5711c4f8f4ff76541810b05209d3477c to your computer and use it in GitHub Desktop.
Save zypA13510/5711c4f8f4ff76541810b05209d3477c to your computer and use it in GitHub Desktop.
print NTP 64-bit timestamp in bash
#!/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