home_bin/time/unix2time

6 lines
95 B
Bash
Executable file

#!/bin/bash
ut="${1:-0}"
ht="$(date -d "@$ut")"
echo "Unix Time : $ut"
echo "Human Time: $ht"