diff options
author | Mark de Wever <koraq@xs4all.nl> | 2024-04-17 07:59:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 07:59:43 +0200 |
commit | a6fcbcce8f79adfb2e4338859f3a41fc2538bad1 (patch) | |
tree | e5234f4d3ba0e4658f3c841944474fc908b9f4fd /lldb/packages/Python/lldbsuite/test/lldbdwarf.py | |
parent | fca2a493251597967d5d758ea0748c66dd29371a (diff) | |
download | llvm-a6fcbcce8f79adfb2e4338859f3a41fc2538bad1.zip llvm-a6fcbcce8f79adfb2e4338859f3a41fc2538bad1.tar.gz llvm-a6fcbcce8f79adfb2e4338859f3a41fc2538bad1.tar.bz2 |
[libc++][TZDB] Improves time zone format specifiers. (#85797)
Per [tab:time.format.spec]
%z The offset from UTC as specified in ISO 8601-1:2019, subclause
5.3.4.1. For example -0430 refers to 4 hours 30 minutes behind UTC.
If the offset is zero, +0000 is used. The modified commands %Ez and
%Oz insert a : between the hours and minutes: -04:30. If the offset
information is not available, an exception of type format_error is
thrown.
Typically the modified versions Oz or Ez would have wording like
The modified command %OS produces the locale's alternative
representation.
In this case the modified version does not depend on the locale.
This change is a preparation for formatting sys_info which has time zone
information. The function time_put<_CharT>::put() does not have proper
time zone support, therefore it's a manual implementation.
Fixes https://github.com/llvm/llvm-project/issues/78184
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbdwarf.py')
0 files changed, 0 insertions, 0 deletions