Created
September 11, 2018 01:49
-
-
Save abatilo/8ac9237625c923155eeb89f26ec21d1a to your computer and use it in GitHub Desktop.
Copy an ISO8601 timestamp to the clipboard
This file contains 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/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