Commit ac7c347
time: support fractional timezone minutes in MarshalBinary
If the time is in 'LMT' and has fractional minute, then
`MarshalBinary()` and `UnmarshalBinary()` will encode/decode the time
in `timeBinaryVersionV2` in which the fractional minute is at
bit 15 and 16, and presented in seconds.
Fixes #39616
Change-Id: Ib762fb5fa26f54b1a8377a5dde0b994dd5a1236a
GitHub-Last-Rev: 455d7a2
GitHub-Pull-Request: #40293
Reviewed-on: https://go-review.googlesource.com/c/go/+/243402
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Trust: Carlos Amedee <[email protected]>1 parent 07b30a4 commit ac7c347
2 files changed
+55
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1162 | 1162 | | |
1163 | 1163 | | |
1164 | 1164 | | |
1165 | | - | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
1166 | 1169 | | |
1167 | 1170 | | |
1168 | 1171 | | |
1169 | 1172 | | |
| 1173 | + | |
| 1174 | + | |
1170 | 1175 | | |
1171 | 1176 | | |
1172 | 1177 | | |
1173 | 1178 | | |
1174 | 1179 | | |
1175 | 1180 | | |
1176 | | - | |
| 1181 | + | |
| 1182 | + | |
1177 | 1183 | | |
| 1184 | + | |
1178 | 1185 | | |
1179 | 1186 | | |
1180 | 1187 | | |
| |||
1185 | 1192 | | |
1186 | 1193 | | |
1187 | 1194 | | |
1188 | | - | |
1189 | | - | |
| 1195 | + | |
| 1196 | + | |
1190 | 1197 | | |
1191 | 1198 | | |
1192 | 1199 | | |
| |||
1201 | 1208 | | |
1202 | 1209 | | |
1203 | 1210 | | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1204 | 1214 | | |
1205 | 1215 | | |
1206 | 1216 | | |
| |||
1212 | 1222 | | |
1213 | 1223 | | |
1214 | 1224 | | |
1215 | | - | |
| 1225 | + | |
| 1226 | + | |
1216 | 1227 | | |
1217 | 1228 | | |
1218 | 1229 | | |
1219 | | - | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1220 | 1235 | | |
1221 | 1236 | | |
1222 | 1237 | | |
| |||
1229 | 1244 | | |
1230 | 1245 | | |
1231 | 1246 | | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
1232 | 1250 | | |
1233 | 1251 | | |
1234 | 1252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
771 | 770 | | |
772 | 771 | | |
773 | 772 | | |
| |||
1437 | 1436 | | |
1438 | 1437 | | |
1439 | 1438 | | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
1440 | 1470 | | |
1441 | 1471 | | |
1442 | 1472 | | |
| |||
0 commit comments