Commit 73d38ff
committed
DateTimeUtil: zone-explicit rendering; Instant-path Inception sentinel
The one home for time rendering had two half-complete paths: the epoch
path carried all four sentinel words but always rendered at the system
default zone (no UTC option, so any non-sentinel time in a generated
artifact was machine-dependent), while the Instant/formatter path
rendered UTC but was missing the Inception sentinel the resolution
overload already had. The sentinel handling now lives in one zone-explicit
method -- format(long, formatter, zone) -- with the zone-implicit
overloads delegating at system default for interactive surfaces and
formatUtc(long) delegating at UTC for generated artifacts.
KonceptExtractor since and retiredAt render through formatUtc, making the
extraction timezone-independent; no visible change today, since every IKE
stamp is the inception sentinel. No scattered special-casing anywhere:
callers keep calling DateTimeUtil.
Refs: IKE-Network/ike-issues#8971 parent 9e5e5fe commit 73d38ff
3 files changed
Lines changed: 58 additions & 5 deletions
File tree
- common/src
- main/java/dev/ikm/tinkar/common/util/time
- test/java/dev/ikm/tinkar/common/util/time
- entity/src/main/java/dev/ikm/tinkar/entity/builder
Lines changed: 34 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
125 | 155 | | |
126 | 156 | | |
127 | 157 | | |
| |||
134 | 164 | | |
135 | 165 | | |
136 | 166 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 167 | + | |
140 | 168 | | |
141 | 169 | | |
142 | 170 | | |
| |||
251 | 279 | | |
252 | 280 | | |
253 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
254 | 285 | | |
255 | 286 | | |
256 | 287 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
54 | 76 | | |
55 | 77 | | |
56 | 78 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
0 commit comments