1
1
mirror of https://github.com/wader/fq.git synced 2024-10-27 04:09:37 +03:00
fq/format/tzif/testdata/Tongatapu.fqtest
Mattias Wadman 051a70bd4b interp: Change bit ranges to use exclusive end
All other ranges and slicing uses exclusive end so i think it make sense
to make it consistent.

Update docs and add additional example for non-byte-aligned field.

Also fixes issue showing zero bit ranges as start-NA.
2023-10-20 15:37:26 +02:00

169 lines
19 KiB
Plaintext

$ fq -d tzif dv Tongatapu
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: Tongatapu (tzif) 0x0-0x174 (372)
| | | v1header{}: 0x0-0x2c (44)
0x000|54 5a 69 66 |TZif | magic: 0x545a6966 (valid) 0x0-0x4 (4)
0x000| 32 | 2 | ver: "2" (0x32) (valid) 0x4-0x5 (1)
0x000| 00 00 00 00 00 00 00 00 00 00 00| ...........| reserved: raw bits 0x5-0x14 (15)
0x010|00 00 00 00 |.... |
0x010| 00 00 00 00 | .... | isutcnt: 0 0x14-0x18 (4)
0x010| 00 00 00 06 | .... | isstdcnt: 6 0x18-0x1c (4)
0x010| 00 00 00 00| ....| leapcnt: 0 0x1c-0x20 (4)
0x020|00 00 00 0b |.... | timecnt: 11 0x20-0x24 (4)
0x020| 00 00 00 06 | .... | typecnt: 6 0x24-0x28 (4)
0x020| 00 00 00 12 | .... | charcnt: 18 0x28-0x2c (4)
| | | v1datablock{}: 0x2c-0x9f (115)
| | | transition_times[0:11]: 0x2c-0x58 (44)
0x020| d2 45 9c 40| .E.@| [0]: "1945-09-09T11:40:48Z" (-767189952) transition_time 0x2c-0x30 (4)
0x030|ef 11 e0 10 |.... | [1]: "1960-12-31T11:40:00Z" (-284041200) transition_time 0x30-0x34 (4)
0x030| 37 fb 47 d0 | 7.G. | [2]: "1999-10-06T13:00:00Z" (939214800) transition_time 0x34-0x38 (4)
0x030| 38 d3 7d d0 | 8.}. | [3]: "2000-03-18T13:00:00Z" (953384400) transition_time 0x38-0x3c (4)
0x030| 3a 04 08 50| :..P| [4]: "2000-11-04T13:00:00Z" (973342800) transition_time 0x3c-0x40 (4)
0x040|3a 72 b8 40 |:r.@ | [5]: "2001-01-27T12:00:00Z" (980596800) transition_time 0x40-0x44 (4)
0x040| 3b e3 ea 50 | ;..P | [6]: "2001-11-03T13:00:00Z" (1004792400) transition_time 0x44-0x48 (4)
0x040| 3c 52 9a 40 | <R.@ | [7]: "2002-01-26T12:00:00Z" (1012046400) transition_time 0x48-0x4c (4)
0x040| 58 1d d7 d0| X...| [8]: "2016-11-05T13:00:00Z" (1478350800) transition_time 0x4c-0x50 (4)
0x050|58 7a 20 d0 |Xz . | [9]: "2017-01-14T13:00:00Z" (1484398800) transition_time 0x50-0x54 (4)
0x050| 7f ff ff ff | .... | [10]: "2038-01-19T03:14:07Z" (2147483647) transition_time 0x54-0x58 (4)
| | | transition_types[0:11]: 0x58-0x63 (11)
0x050| 01 | . | [0]: 1 transition_type 0x58-0x59 (1)
0x050| 02 | . | [1]: 2 transition_type 0x59-0x5a (1)
0x050| 03 | . | [2]: 3 transition_type 0x5a-0x5b (1)
0x050| 04 | . | [3]: 4 transition_type 0x5b-0x5c (1)
0x050| 05 | . | [4]: 5 transition_type 0x5c-0x5d (1)
0x050| 02 | . | [5]: 2 transition_type 0x5d-0x5e (1)
0x050| 05 | . | [6]: 5 transition_type 0x5e-0x5f (1)
0x050| 02| .| [7]: 2 transition_type 0x5f-0x60 (1)
0x060|05 |. | [8]: 5 transition_type 0x60-0x61 (1)
0x060| 02 | . | [9]: 2 transition_type 0x61-0x62 (1)
0x060| 02 | . | [10]: 2 transition_type 0x62-0x63 (1)
| | | local_time_type_records[0:6]: 0x63-0x87 (36)
| | | [0]{}: local_time_type 0x63-0x69 (6)
0x060| 00 00 ad 40 | ...@ | utoff: 44352 (valid) 0x63-0x67 (4)
0x060| 00 | . | dst: 0 (valid) 0x67-0x68 (1)
0x060| 00 | . | idx: 0 (valid) 0x68-0x69 (1)
| | | [1]{}: local_time_type 0x69-0x6f (6)
0x060| 00 00 ad 70 | ...p | utoff: 44400 (valid) 0x69-0x6d (4)
0x060| 00 | . | dst: 0 (valid) 0x6d-0x6e (1)
0x060| 04 | . | idx: 4 (valid) 0x6e-0x6f (1)
| | | [2]{}: local_time_type 0x6f-0x75 (6)
0x060| 00| .| utoff: 46800 (valid) 0x6f-0x73 (4)
0x070|00 b6 d0 |... |
0x070| 00 | . | dst: 0 (valid) 0x73-0x74 (1)
0x070| 0a | . | idx: 10 (valid) 0x74-0x75 (1)
| | | [3]{}: local_time_type 0x75-0x7b (6)
0x070| 00 00 c4 e0 | .... | utoff: 50400 (valid) 0x75-0x79 (4)
0x070| 01 | . | dst: 1 (valid) 0x79-0x7a (1)
0x070| 0e | . | idx: 14 (valid) 0x7a-0x7b (1)
| | | [4]{}: local_time_type 0x7b-0x81 (6)
0x070| 00 00 b6 d0 | .... | utoff: 46800 (valid) 0x7b-0x7f (4)
0x070| 00| .| dst: 0 (valid) 0x7f-0x80 (1)
0x080|0a |. | idx: 10 (valid) 0x80-0x81 (1)
| | | [5]{}: local_time_type 0x81-0x87 (6)
0x080| 00 00 c4 e0 | .... | utoff: 50400 (valid) 0x81-0x85 (4)
0x080| 01 | . | dst: 1 (valid) 0x85-0x86 (1)
0x080| 0e | . | idx: 14 (valid) 0x86-0x87 (1)
| | | time_zone_designations[0:4]: 0x87-0x99 (18)
0x080| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x87-0x8b (4)
0x080| 2b 31 32 32 30| +1220| [1]: "+1220" time_zone_designation 0x8b-0x91 (6)
0x090|00 |. |
0x090| 2b 31 33 00 | +13. | [2]: "+13" time_zone_designation 0x91-0x95 (4)
0x090| 2b 31 34 00 | +14. | [3]: "+14" time_zone_designation 0x95-0x99 (4)
| | | leap_second_records[0:0]: 0x99-0x99 (0)
| | | standard_wall_indicators[0:6]: 0x99-0x9f (6)
0x090| 00 | . | [0]: 0 standard_wall_indicator (valid) 0x99-0x9a (1)
0x090| 00 | . | [1]: 0 standard_wall_indicator (valid) 0x9a-0x9b (1)
0x090| 00 | . | [2]: 0 standard_wall_indicator (valid) 0x9b-0x9c (1)
0x090| 01 | . | [3]: 1 standard_wall_indicator (valid) 0x9c-0x9d (1)
0x090| 01 | . | [4]: 1 standard_wall_indicator (valid) 0x9d-0x9e (1)
0x090| 00 | . | [5]: 0 standard_wall_indicator (valid) 0x9e-0x9f (1)
| | | ut_local_indicators[0:0]: 0x9f-0x9f (0)
| | | v2plusheader{}: 0x9f-0xcb (44)
0x090| 54| T| magic: 0x545a6966 (valid) 0x9f-0xa3 (4)
0x0a0|5a 69 66 |Zif |
0x0a0| 32 | 2 | ver: "2" (0x32) (valid) 0xa3-0xa4 (1)
0x0a0| 00 00 00 00 00 00 00 00 00 00 00 00| ............| reserved: raw bits 0xa4-0xb3 (15)
0x0b0|00 00 00 |... |
0x0b0| 00 00 00 00 | .... | isutcnt: 0 0xb3-0xb7 (4)
0x0b0| 00 00 00 06 | .... | isstdcnt: 6 0xb7-0xbb (4)
0x0b0| 00 00 00 00 | .... | leapcnt: 0 0xbb-0xbf (4)
0x0b0| 00| .| timecnt: 11 0xbf-0xc3 (4)
0x0c0|00 00 0b |... |
0x0c0| 00 00 00 06 | .... | typecnt: 6 0xc3-0xc7 (4)
0x0c0| 00 00 00 12 | .... | charcnt: 18 0xc7-0xcb (4)
| | | v2plusdatablock{}: 0xcb-0x16a (159)
| | | transition_times[0:11]: 0xcb-0x123 (88)
0x0c0| ff ff ff ff d2| .....| [0]: "1945-09-09T11:40:48Z" (-767189952) transition_time 0xcb-0xd3 (8)
0x0d0|45 9c 40 |E.@ |
0x0d0| ff ff ff ff ef 11 e0 10 | ........ | [1]: "1960-12-31T11:40:00Z" (-284041200) transition_time 0xd3-0xdb (8)
0x0d0| 00 00 00 00 37| ....7| [2]: "1999-10-06T13:00:00Z" (939214800) transition_time 0xdb-0xe3 (8)
0x0e0|fb 47 d0 |.G. |
0x0e0| 00 00 00 00 38 d3 7d d0 | ....8.}. | [3]: "2000-03-18T13:00:00Z" (953384400) transition_time 0xe3-0xeb (8)
0x0e0| 00 00 00 00 3a| ....:| [4]: "2000-11-04T13:00:00Z" (973342800) transition_time 0xeb-0xf3 (8)
0x0f0|04 08 50 |..P |
0x0f0| 00 00 00 00 3a 72 b8 40 | ....:r.@ | [5]: "2001-01-27T12:00:00Z" (980596800) transition_time 0xf3-0xfb (8)
0x0f0| 00 00 00 00 3b| ....;| [6]: "2001-11-03T13:00:00Z" (1004792400) transition_time 0xfb-0x103 (8)
0x100|e3 ea 50 |..P |
0x100| 00 00 00 00 3c 52 9a 40 | ....<R.@ | [7]: "2002-01-26T12:00:00Z" (1012046400) transition_time 0x103-0x10b (8)
0x100| 00 00 00 00 58| ....X| [8]: "2016-11-05T13:00:00Z" (1478350800) transition_time 0x10b-0x113 (8)
0x110|1d d7 d0 |... |
0x110| 00 00 00 00 58 7a 20 d0 | ....Xz . | [9]: "2017-01-14T13:00:00Z" (1484398800) transition_time 0x113-0x11b (8)
0x110| 00 00 00 00 7f| .....| [10]: "2038-01-19T03:14:07Z" (2147483647) transition_time 0x11b-0x123 (8)
0x120|ff ff ff |... |
| | | transition_types[0:11]: 0x123-0x12e (11)
0x120| 01 | . | [0]: 1 transition_type 0x123-0x124 (1)
0x120| 02 | . | [1]: 2 transition_type 0x124-0x125 (1)
0x120| 03 | . | [2]: 3 transition_type 0x125-0x126 (1)
0x120| 04 | . | [3]: 4 transition_type 0x126-0x127 (1)
0x120| 05 | . | [4]: 5 transition_type 0x127-0x128 (1)
0x120| 02 | . | [5]: 2 transition_type 0x128-0x129 (1)
0x120| 05 | . | [6]: 5 transition_type 0x129-0x12a (1)
0x120| 02 | . | [7]: 2 transition_type 0x12a-0x12b (1)
0x120| 05 | . | [8]: 5 transition_type 0x12b-0x12c (1)
0x120| 02 | . | [9]: 2 transition_type 0x12c-0x12d (1)
0x120| 02 | . | [10]: 2 transition_type 0x12d-0x12e (1)
| | | local_time_type_records[0:6]: 0x12e-0x152 (36)
| | | [0]{}: local_time_type 0x12e-0x134 (6)
0x120| 00 00| ..| utoff: 44352 (valid) 0x12e-0x132 (4)
0x130|ad 40 |.@ |
0x130| 00 | . | dst: 0 (valid) 0x132-0x133 (1)
0x130| 00 | . | idx: 0 (valid) 0x133-0x134 (1)
| | | [1]{}: local_time_type 0x134-0x13a (6)
0x130| 00 00 ad 70 | ...p | utoff: 44400 (valid) 0x134-0x138 (4)
0x130| 00 | . | dst: 0 (valid) 0x138-0x139 (1)
0x130| 04 | . | idx: 4 (valid) 0x139-0x13a (1)
| | | [2]{}: local_time_type 0x13a-0x140 (6)
0x130| 00 00 b6 d0 | .... | utoff: 46800 (valid) 0x13a-0x13e (4)
0x130| 00 | . | dst: 0 (valid) 0x13e-0x13f (1)
0x130| 0a| .| idx: 10 (valid) 0x13f-0x140 (1)
| | | [3]{}: local_time_type 0x140-0x146 (6)
0x140|00 00 c4 e0 |.... | utoff: 50400 (valid) 0x140-0x144 (4)
0x140| 01 | . | dst: 1 (valid) 0x144-0x145 (1)
0x140| 0e | . | idx: 14 (valid) 0x145-0x146 (1)
| | | [4]{}: local_time_type 0x146-0x14c (6)
0x140| 00 00 b6 d0 | .... | utoff: 46800 (valid) 0x146-0x14a (4)
0x140| 00 | . | dst: 0 (valid) 0x14a-0x14b (1)
0x140| 0a | . | idx: 10 (valid) 0x14b-0x14c (1)
| | | [5]{}: local_time_type 0x14c-0x152 (6)
0x140| 00 00 c4 e0| ....| utoff: 50400 (valid) 0x14c-0x150 (4)
0x150|01 |. | dst: 1 (valid) 0x150-0x151 (1)
0x150| 0e | . | idx: 14 (valid) 0x151-0x152 (1)
| | | time_zone_designations[0:4]: 0x152-0x164 (18)
0x150| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x152-0x156 (4)
0x150| 2b 31 32 32 30 00 | +1220. | [1]: "+1220" time_zone_designation 0x156-0x15c (6)
0x150| 2b 31 33 00| +13.| [2]: "+13" time_zone_designation 0x15c-0x160 (4)
0x160|2b 31 34 00 |+14. | [3]: "+14" time_zone_designation 0x160-0x164 (4)
| | | leap_second_records[0:0]: 0x164-0x164 (0)
| | | standard_wall_indicators[0:6]: 0x164-0x16a (6)
0x160| 00 | . | [0]: 0 standard_wall_indicator (valid) 0x164-0x165 (1)
0x160| 00 | . | [1]: 0 standard_wall_indicator (valid) 0x165-0x166 (1)
0x160| 00 | . | [2]: 0 standard_wall_indicator (valid) 0x166-0x167 (1)
0x160| 01 | . | [3]: 1 standard_wall_indicator (valid) 0x167-0x168 (1)
0x160| 01 | . | [4]: 1 standard_wall_indicator (valid) 0x168-0x169 (1)
0x160| 00 | . | [5]: 0 standard_wall_indicator (valid) 0x169-0x16a (1)
| | | ut_local_indicators[0:0]: 0x16a-0x16a (0)
| | | footer{}: 0x16a-0x174 (10)
0x160| 0a | . | nl1: 10 (valid) 0x16a-0x16b (1)
0x160| 3c 2b 31 33 3e| <+13>| tz_string: "<+13>-13" 0x16b-0x173 (8)
0x170|2d 31 33 |-13 |
0x170| 0a| | .| | nl2: 10 (valid) 0x173-0x174 (1)