Commit db0e0ab
Adds a module docstring with a clear selection rule for picking between
utc_timestamp() (default for new code, +00:00 with microseconds) and
utc_timestamp_z() (legacy compatibility only, Z-suffix, second precision).
Each function docstring now cross-references the module rule.
Body changes: none — docstrings only. Both helpers retain byte-identical
output. Verified via:
python3 -c "from autobot_shared.time_utils import utc_timestamp, utc_timestamp_z;
print(utc_timestamp(), '|', utc_timestamp_z())"
-> 2026-04-18T20:36:03.523477+00:00 | 2026-04-18T20:36:03Z
Part A of #5169. Parts B (parser audit) and C (canonicalization ADR)
deferred to follow-up — issue stays OPEN.
Refs #5169
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3eb0fca commit db0e0ab
File tree
1 file changed
+40
-6
lines changed1 file changed
+40
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
2 | 28 | | |
3 | 29 | | |
4 | 30 | | |
5 | 31 | | |
6 | 32 | | |
7 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
8 | 38 | | |
9 | 39 | | |
10 | 40 | | |
11 | 41 | | |
12 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
13 | 47 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
17 | 51 | | |
18 | 52 | | |
19 | 53 | | |
| |||
0 commit comments