Created
January 5, 2025 17:12
-
-
Save intrntbrn/aa3118c906023b9f4038665f2a4b0662 to your computer and use it in GitHub Desktop.
discord timestamp generator script
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
# examples: | |
# dts 5pm | |
# dts 17:38 | |
# dts Jan 8 20:15 | |
function dts { | |
echo "$@" | xargs -I {} date -d "{}" +%s | xargs -I {} echo "<t:{}:t>" | xclip -selection clipboard | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment