]> git.proxmox.com Git - proxmox.git/commit
time: posix: add bindings for strftime_l
authorLukas Wagner <l.wagner@proxmox.com>
Mon, 11 Dec 2023 13:29:06 +0000 (14:29 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 8 Jan 2024 10:59:26 +0000 (11:59 +0100)
commit795b3a57a76dcf278fa873d17921de491370a754
treee90a190de1e77bf98f9de2cf45a1a9e2001365bb
parent5b25e7cc901d76f44f465f2e6c4bee41419ccf9d
time: posix: add bindings for strftime_l

This variant of strftime can be provided with a locale_t, which
determines the locale used for time formatting.

A struct `Locale` was also introduced as a safe wrapper around
locale_t.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
proxmox-time/src/posix.rs