aboutsummaryrefslogtreecommitdiffhomepage
path: root/datefmt
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-07-23 19:58:53 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-07-23 19:58:53 +0200
commit5f1bd49cfef5852bbd539754fb31e8adada29ef3 (patch)
treebc1991de9f017e0e4133522278cceccea691f19c /datefmt
parente167221e49e59df0b62c0ee5b27ead2043c58571 (diff)
Replace datefmt with getfmt
Diffstat (limited to 'datefmt')
-rwxr-xr-xdatefmt19
1 files changed, 0 insertions, 19 deletions
diff --git a/datefmt b/datefmt
deleted file mode 100755
index 747b47a..0000000
--- a/datefmt
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-url()
-{
- echo "https://raw.githubusercontent.com/unicode-org/cldr-json/refs/heads/main/cldr-json/cldr-dates-full/main/$1/ca-gregorian.json"
-}
-
-if [ $# -lt 1 ]
-then
- echo "Usage: datefmt locale..." >&2
- exit 1
-fi
-
-for l in "$@"
-do
- [ $# -gt 1 ] && printf '%s:\t' "$l"
- curl -s "$(url "$l")" | jq -r --arg l "$l" \
- '.main.[$l].dates.calendars.gregorian.dateFormats.short'
-done