diff options
| author | Justine Smithies <justine@smithies.me.uk> | 2026-08-15 09:35:09 +0100 |
|---|---|---|
| committer | Justine Smithies <justine@smithies.me.uk> | 2026-08-15 09:35:09 +0100 |
| commit | a61da6f76813790bfaa2a995d9285d616b0b0a86 (patch) | |
| tree | 2bccdb95cf4c8bd1a67478626e4fbd660209044f /.config/cow/scripts/date-time.sh | |
| parent | e14e6e48a276264397d1cc6feedeab9260e5930a (diff) | |
Initial commit of very WIP cow scripts
Diffstat (limited to '.config/cow/scripts/date-time.sh')
| -rwxr-xr-x | .config/cow/scripts/date-time.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/cow/scripts/date-time.sh b/.config/cow/scripts/date-time.sh new file mode 100755 index 0000000..4ff00d4 --- /dev/null +++ b/.config/cow/scripts/date-time.sh @@ -0,0 +1,10 @@ +#!/bin/sh +DaySuffix() { + case `date +%-d` in + 1|21|31) echo "st";; + 2|22) echo "nd";; + 3|23) echo "rd";; + *) echo "th";; + esac +} +echo $(date "+%A %-d`DaySuffix` %B %Y - %H:%M ") |
