Skip to content

Instantly share code, notes, and snippets.

@Grissess
Created February 14, 2022 01:21
Show Gist options
  • Save Grissess/59a00d06253685283e8b76916be5601e to your computer and use it in GitHub Desktop.
Save Grissess/59a00d06253685283e8b76916be5601e to your computer and use it in GitHub Desktop.
A locale for Sunday-first calendars with ISO8601 time
# en_US, but with ISO8601 timestamps and 24-hour time,
# by Grissess.
# I, mentioned, claim no copyright in this work.
# Put this in your archive with:
# localdef -f UTF-8 -i en_US@grissess en_US.utf8@grissess
# (assuming you've installed everything according to the paths listed by
# localedef --help)
LC_IDENTIFICATION
title "English, USA locale with ISO time"
source "Grissess, credit FSF, Inc."
language "American English"
territory "United States"
revision "1.0"
date "2021-05-19"
END LC_IDENTIFICATION
LC_CTYPE
copy "en_US"
END LC_CTYPE
LC_COLLATE
copy "en_US"
END LC_COLLATE
LC_MONETARY
copy "en_US"
END LC_MONETARY
LC_NUMERIC
copy "en_US"
END LC_NUMERIC
LC_TIME
# Unchanged from en_US
abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
day "Sunday";"Monday";"Tuesday";"Wednesday";"Thursday";"Friday";"Saturday"
week 7;19971130;1
abmon "Jan";"Feb";"Mar";\
"Apr";"May";"Jun";\
"Jul";"Aug";"Sep";\
"Oct";"Nov";"Dec"
mon "January";"February";"March";\
"April";"May";"June";\
"July";"August";"September";\
"October";"November";"December"
# ISO time
d_t_fmt "%Y-%m-%dT%H:%M:%S"
d_fmt "%Y-%m-%d"
t_fmt "%H:%M:%S"
t_fmt_ampm ""
am_pm "";""
# when invoking date(1), include the TZ info; it's not included above because
# it's usually redundant to the user (they know their own time zone), whereas
# date seems a good place to be more explicit.
# NB: Only the first word is ISO; the %Z is nonstandard.
date_fmt "%Y-%m-%dT%H:%M:%S%z %Z"
END LC_TIME
LC_MESSAGES
copy "en_US"
END LC_MESSAGES
LC_PAPER
copy "en_US"
END LC_PAPER
LC_NAME
copy "en_US"
END LC_NAME
LC_ADDRESS
copy "en_US"
END LC_ADDRESS
LC_TELEPHONE
copy "en_US"
END LC_TELEPHONE
LC_MEASUREMENT
copy "en_US"
END LC_MEASUREMENT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment