Skip to content

Instantly share code, notes, and snippets.

@bxt
Created July 22, 2012 13:18
Show Gist options
  • Save bxt/3159666 to your computer and use it in GitHub Desktop.
Save bxt/3159666 to your computer and use it in GitHub Desktop.
Print the current time as 4 byte hex timestamp
#!/bin/bash
printf '0x%08x' $(date +%s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment