Commit 72bf0e9
committed
util: Add FormatISO8601Time function for time-only ISO format
Adds a new utility function FormatISO8601Time that formats a Unix timestamp
into an ISO 8601 time string (HH:MM:SSZ). This complements the existing
FormatISO8601DateTime and FormatISO8601Date functions, providing a way to
format just the time component of a timestamp.
The function uses C++20 chrono features to handle time calculations and
formatting, maintaining consistency with the existing ISO 8601 formatting
functions.1 parent 1aff5ee commit 72bf0e9
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
0 commit comments