I found maybe that exact same thing but not as refined as yours and sort of gave up on it. I had to focus on making everything else work first haha.
This sort of makes sense to me, though. I’ll try to incorporate it.
Comment on Monday SOTD Thread, March 31, 2025 (#657)
snooting@sub.wetshaving.social 1 week agoSomething like this would probably work (untested):
# Get the day of month as a number day=$(date +%-d) # Determine the correct suffix case $day in 1|21|31) suffix="st";; 2|22) suffix="nd";; 3|23) suffix="rd";; *) suffix="th";; esac # Print the date with the ordinal suffix formatted_date=$(date +"%B %-d$suffix, %Y")
I found maybe that exact same thing but not as refined as yours and sort of gave up on it. I had to focus on making everything else work first haha.
This sort of makes sense to me, though. I’ll try to incorporate it.
walden@sub.wetshaving.social 1 week ago
Update - tested and working. Thanks!
snooting@sub.wetshaving.social 1 week ago
Sweet!