Skip to content

Instantly share code, notes, and snippets.

@abatilo
Created September 11, 2018 01:49
Show Gist options
  • Save abatilo/8ac9237625c923155eeb89f26ec21d1a to your computer and use it in GitHub Desktop.
Save abatilo/8ac9237625c923155eeb89f26ec21d1a to your computer and use it in GitHub Desktop.
Copy an ISO8601 timestamp to the clipboard
#!/bin/sh
date -u +"%Y-%m-%dT%H:%M:%SZ" | xclip -sel clip
echo "ISO 8601 compliant timestamp has been copied to your clipboard."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment