aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/bar/datetime
blob: 31f21443e87faba20e2966f70321a9f092027614 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/dash

if [ "$1" = "date" ]; then
  echo "$(date '+%a. %Y-%m-%d')"
elif [ "$1" = "time" ]; then
  echo "$(date '+%H:%M %Z')"
else
  echo "$(date '+%a. %Y-%m-%d %H:%M %Z')"
fi