blob: 6ce5e3040242a86a2871138c01dea5ac1d7adf89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
DaySuffix() {
case `date +%-d` in
1|21|31) echo "st";;
2|22) echo "nd";;
3|23) echo "rd";;
*) echo "th";;
esac
}
text=$(date "+%A %-d`DaySuffix` %B %Y - %H:%M ")
echo "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}"
|