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