This is the mail archive of the
libc-locales@sourceware.org
mailing list for the GNU libc locales project.
24 hour clock, without seconds
- From: "Ben Asselstine" <benasselstine at gmail dot com>
- To: libc-locales at sources dot redhat dot com
- Date: Sun, 25 Mar 2007 18:35:46 -0400
- Subject: 24 hour clock, without seconds
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=kEyfCFkKPpzflAuk0cMiAo1NwdJIwI+LIqJqfE41kjYdEzZZ+fshw93cmc/goaEP89QRfRmgECfHKGIjw2NSX1vcHQcpNTOBxsV+HbF3tGO+Yb4o9gs5rBJE3m/909a4oxuRCbaQf+L8BvtKanfuNEoIr/HHYD/qbbzOe9lCVps=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LVHeH7DUxIpCsKb7f4yzhOlNrQE8twbHnWCW8vim9rBGc60EXNynOtLr2U96Rp3tuNf/v7yARci10rNR9DFGQD2GLonh/F2ikSQwawY0opHGymMlAP4MQM7Ve7uT2/9d9d5rckh0yeaNQjrGYWduJxivSn7BJ150TzqCPr2aRg0=
Hello,
My apologies if I'm sending this to the wrong place.
After perusing strftime and friends, I see no easy way to get a
24-hour clock with hours and minutes in the current locale. `%H:%M'
isn't right because the separator might not be `:'. `%X' isn't right
because I don't want seconds. `%r' isn't right because it does a 12
hour clock. `%R' isn't right because it's not in the current locale.
Is this a deficiency, or am I just out to lunch.
regards,
Ben