13 lines
217 B
Plaintext
13 lines
217 B
Plaintext
|
#!/bin/bash
|
||
|
time="$1"
|
||
|
if [ -z "$1" ]; then
|
||
|
time="now"
|
||
|
fi
|
||
|
|
||
|
unix="$(date -d "$time" +%s)"
|
||
|
wl-copy "<t:${unix}> <t:${unix}:R>"
|
||
|
|
||
|
echo "The discord timestamp for:"
|
||
|
date -d "@${unix}"
|
||
|
echo "is copied to the clipboard"
|