You are not logged in.

#1 2016-07-16 01:17:25

DCengineer
Member
Registered: 2015-12-11
Posts: 15

Locale with ISO date and `:` time separator?

Is there a locale that uses the ISO-8601 dating format (YYYY-MM-DD) and uses a `:` for the time separator? I am currently using `LC_TIME=en_DK.UTF-8`, but it separates hours and minutes with a `.` instead of a `:`. It seems to have been a recent change, as I've used the `en_DK.UTF-8` locale for awhile, and it suddenly changed from using a colon to a period.

PS: since BBCode doesn't support inline code blocks, I'm just using the markdown convention (surrounding it with `).

Offline

#2 2016-07-16 11:28:09

Awebb
Member
Registered: 2010-05-06
Posts: 6,282

Re: Locale with ISO date and `:` time separator?

Set your locale to whatever fits your region and use the TIME_STYLE="posix-long-iso" env. You can put it into your /etc/locale.conf.

See https://www.gnu.org/software/coreutils/ … tamps.html

EDIT: ... or better in the .profile or .bash_profile. Or both. FloatyMcBoatface.

Last edited by Awebb (2016-07-16 11:34:05)

Offline

#3 2016-07-16 15:14:51

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Locale with ISO date and `:` time separator?

There's also the en_XX locale wink

$ date
2016-07-16 15:13:36 +0000

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB