1
1
mirror of https://github.com/wader/fq.git synced 2024-10-27 04:09:37 +03:00
fq/format/tzif/testdata/Lindeman.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

190 lines
22 KiB
Plaintext

$ fq -d tzif dv Lindeman
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: Lindeman (tzif) 0x0-0x1db (475)
| | | 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 04 | .... | isstdcnt: 4 0x18-0x1c (4)
0x010| 00 00 00 00| ....| leapcnt: 0 0x1c-0x20 (4)
0x020|00 00 00 15 |.... | timecnt: 21 0x20-0x24 (4)
0x020| 00 00 00 04 | .... | typecnt: 4 0x24-0x28 (4)
0x020| 00 00 00 0e | .... | charcnt: 14 0x28-0x2c (4)
| | | v1datablock{}: 0x2c-0xbf (147)
| | | transition_times[0:21]: 0x2c-0x80 (84)
0x020| 80 00 00 00| ....| [0]: "1901-12-13T20:45:52Z" (-2147483648) transition_time 0x2c-0x30 (4)
0x030|9c 4e c2 80 |.N.. | [1]: "1916-12-31T16:00:00Z" (-1672560000) transition_time 0x30-0x34 (4)
0x030| 9c bc 2f 00 | ../. | [2]: "1917-03-24T16:00:00Z" (-1665388800) transition_time 0x34-0x38 (4)
0x030| cb 54 b3 00 | .T.. | [3]: "1941-12-31T16:00:00Z" (-883641600) transition_time 0x38-0x3c (4)
0x030| cb c7 65 80| ..e.| [4]: "1942-03-28T16:00:00Z" (-876124800) transition_time 0x3c-0x40 (4)
0x040|cc b7 56 80 |..V. | [5]: "1942-09-26T16:00:00Z" (-860400000) transition_time 0x40-0x44 (4)
0x040| cd a7 47 80 | ..G. | [6]: "1943-03-27T16:00:00Z" (-844675200) transition_time 0x44-0x48 (4)
0x040| ce a0 73 00 | ..s. | [7]: "1943-10-02T16:00:00Z" (-828345600) transition_time 0x48-0x4c (4)
0x040| cf 87 29 80| ..).| [8]: "1944-03-25T16:00:00Z" (-813225600) transition_time 0x4c-0x50 (4)
0x050|03 70 39 80 |.p9. | [9]: "1971-10-30T16:00:00Z" (57686400) transition_time 0x50-0x54 (4)
0x050| 04 0d 1c 00 | .... | [10]: "1972-02-26T16:00:00Z" (67968000) transition_time 0x54-0x58 (4)
0x050| 25 49 cd 00 | %I.. | [11]: "1989-10-28T16:00:00Z" (625593600) transition_time 0x58-0x5c (4)
0x050| 25 ef ea 00| %...| [12]: "1990-03-03T16:00:00Z" (636480000) transition_time 0x5c-0x60 (4)
0x060|27 29 af 00 |').. | [13]: "1990-10-27T16:00:00Z" (657043200) transition_time 0x60-0x64 (4)
0x060| 27 cf cc 00 | '... | [14]: "1991-03-02T16:00:00Z" (667929600) transition_time 0x64-0x68 (4)
0x060| 29 09 91 00 | )... | [15]: "1991-10-26T16:00:00Z" (688492800) transition_time 0x68-0x6c (4)
0x060| 29 af ae 00| )...| [16]: "1992-02-29T16:00:00Z" (699379200) transition_time 0x6c-0x70 (4)
0x070|2a e9 73 00 |*.s. | [17]: "1992-10-24T16:00:00Z" (719942400) transition_time 0x70-0x74 (4)
0x070| 2b 98 ca 80 | +... | [18]: "1993-03-06T16:00:00Z" (731433600) transition_time 0x74-0x78 (4)
0x070| 2c d2 8f 80 | ,... | [19]: "1993-10-30T16:00:00Z" (751996800) transition_time 0x78-0x7c (4)
0x070| 2d 78 ac 80| -x..| [20]: "1994-03-05T16:00:00Z" (762883200) transition_time 0x7c-0x80 (4)
| | | transition_types[0:21]: 0x80-0x95 (21)
0x080|03 |. | [0]: 3 transition_type 0x80-0x81 (1)
0x080| 01 | . | [1]: 1 transition_type 0x81-0x82 (1)
0x080| 02 | . | [2]: 2 transition_type 0x82-0x83 (1)
0x080| 01 | . | [3]: 1 transition_type 0x83-0x84 (1)
0x080| 02 | . | [4]: 2 transition_type 0x84-0x85 (1)
0x080| 01 | . | [5]: 1 transition_type 0x85-0x86 (1)
0x080| 02 | . | [6]: 2 transition_type 0x86-0x87 (1)
0x080| 01 | . | [7]: 1 transition_type 0x87-0x88 (1)
0x080| 02 | . | [8]: 2 transition_type 0x88-0x89 (1)
0x080| 01 | . | [9]: 1 transition_type 0x89-0x8a (1)
0x080| 02 | . | [10]: 2 transition_type 0x8a-0x8b (1)
0x080| 01 | . | [11]: 1 transition_type 0x8b-0x8c (1)
0x080| 02 | . | [12]: 2 transition_type 0x8c-0x8d (1)
0x080| 01 | . | [13]: 1 transition_type 0x8d-0x8e (1)
0x080| 02 | . | [14]: 2 transition_type 0x8e-0x8f (1)
0x080| 01| .| [15]: 1 transition_type 0x8f-0x90 (1)
0x090|02 |. | [16]: 2 transition_type 0x90-0x91 (1)
0x090| 01 | . | [17]: 1 transition_type 0x91-0x92 (1)
0x090| 02 | . | [18]: 2 transition_type 0x92-0x93 (1)
0x090| 01 | . | [19]: 1 transition_type 0x93-0x94 (1)
0x090| 02 | . | [20]: 2 transition_type 0x94-0x95 (1)
| | | local_time_type_records[0:4]: 0x95-0xad (24)
| | | [0]{}: local_time_type 0x95-0x9b (6)
0x090| 00 00 8b ac | .... | utoff: 35756 (valid) 0x95-0x99 (4)
0x090| 00 | . | dst: 0 (valid) 0x99-0x9a (1)
0x090| 00 | . | idx: 0 (valid) 0x9a-0x9b (1)
| | | [1]{}: local_time_type 0x9b-0xa1 (6)
0x090| 00 00 9a b0 | .... | utoff: 39600 (valid) 0x9b-0x9f (4)
0x090| 01| .| dst: 1 (valid) 0x9f-0xa0 (1)
0x0a0|04 |. | idx: 4 (valid) 0xa0-0xa1 (1)
| | | [2]{}: local_time_type 0xa1-0xa7 (6)
0x0a0| 00 00 8c a0 | .... | utoff: 36000 (valid) 0xa1-0xa5 (4)
0x0a0| 00 | . | dst: 0 (valid) 0xa5-0xa6 (1)
0x0a0| 09 | . | idx: 9 (valid) 0xa6-0xa7 (1)
| | | [3]{}: local_time_type 0xa7-0xad (6)
0x0a0| 00 00 8c a0 | .... | utoff: 36000 (valid) 0xa7-0xab (4)
0x0a0| 00 | . | dst: 0 (valid) 0xab-0xac (1)
0x0a0| 09 | . | idx: 9 (valid) 0xac-0xad (1)
| | | time_zone_designations[0:3]: 0xad-0xbb (14)
0x0a0| 4c 4d 54| LMT| [0]: "LMT" time_zone_designation 0xad-0xb1 (4)
0x0b0|00 |. |
0x0b0| 41 45 44 54 00 | AEDT. | [1]: "AEDT" time_zone_designation 0xb1-0xb6 (5)
0x0b0| 41 45 53 54 00 | AEST. | [2]: "AEST" time_zone_designation 0xb6-0xbb (5)
| | | leap_second_records[0:0]: 0xbb-0xbb (0)
| | | standard_wall_indicators[0:4]: 0xbb-0xbf (4)
0x0b0| 00 | . | [0]: 0 standard_wall_indicator (valid) 0xbb-0xbc (1)
0x0b0| 01 | . | [1]: 1 standard_wall_indicator (valid) 0xbc-0xbd (1)
0x0b0| 01 | . | [2]: 1 standard_wall_indicator (valid) 0xbd-0xbe (1)
0x0b0| 00 | . | [3]: 0 standard_wall_indicator (valid) 0xbe-0xbf (1)
| | | ut_local_indicators[0:0]: 0xbf-0xbf (0)
| | | v2plusheader{}: 0xbf-0xeb (44)
0x0b0| 54| T| magic: 0x545a6966 (valid) 0xbf-0xc3 (4)
0x0c0|5a 69 66 |Zif |
0x0c0| 32 | 2 | ver: "2" (0x32) (valid) 0xc3-0xc4 (1)
0x0c0| 00 00 00 00 00 00 00 00 00 00 00 00| ............| reserved: raw bits 0xc4-0xd3 (15)
0x0d0|00 00 00 |... |
0x0d0| 00 00 00 00 | .... | isutcnt: 0 0xd3-0xd7 (4)
0x0d0| 00 00 00 04 | .... | isstdcnt: 4 0xd7-0xdb (4)
0x0d0| 00 00 00 00 | .... | leapcnt: 0 0xdb-0xdf (4)
0x0d0| 00| .| timecnt: 21 0xdf-0xe3 (4)
0x0e0|00 00 15 |... |
0x0e0| 00 00 00 04 | .... | typecnt: 4 0xe3-0xe7 (4)
0x0e0| 00 00 00 0e | .... | charcnt: 14 0xe7-0xeb (4)
| | | v2plusdatablock{}: 0xeb-0x1d2 (231)
| | | transition_times[0:21]: 0xeb-0x193 (168)
0x0e0| ff ff ff ff 72| ....r| [0]: "1894-12-31T14:04:04Z" (-2366790956) transition_time 0xeb-0xf3 (8)
0x0f0|ed a2 d4 |... |
0x0f0| ff ff ff ff 9c 4e c2 80 | .....N.. | [1]: "1916-12-31T16:00:00Z" (-1672560000) transition_time 0xf3-0xfb (8)
0x0f0| ff ff ff ff 9c| .....| [2]: "1917-03-24T16:00:00Z" (-1665388800) transition_time 0xfb-0x103 (8)
0x100|bc 2f 00 |./. |
0x100| ff ff ff ff cb 54 b3 00 | .....T.. | [3]: "1941-12-31T16:00:00Z" (-883641600) transition_time 0x103-0x10b (8)
0x100| ff ff ff ff cb| .....| [4]: "1942-03-28T16:00:00Z" (-876124800) transition_time 0x10b-0x113 (8)
0x110|c7 65 80 |.e. |
0x110| ff ff ff ff cc b7 56 80 | ......V. | [5]: "1942-09-26T16:00:00Z" (-860400000) transition_time 0x113-0x11b (8)
0x110| ff ff ff ff cd| .....| [6]: "1943-03-27T16:00:00Z" (-844675200) transition_time 0x11b-0x123 (8)
0x120|a7 47 80 |.G. |
0x120| ff ff ff ff ce a0 73 00 | ......s. | [7]: "1943-10-02T16:00:00Z" (-828345600) transition_time 0x123-0x12b (8)
0x120| ff ff ff ff cf| .....| [8]: "1944-03-25T16:00:00Z" (-813225600) transition_time 0x12b-0x133 (8)
0x130|87 29 80 |.). |
0x130| 00 00 00 00 03 70 39 80 | .....p9. | [9]: "1971-10-30T16:00:00Z" (57686400) transition_time 0x133-0x13b (8)
0x130| 00 00 00 00 04| .....| [10]: "1972-02-26T16:00:00Z" (67968000) transition_time 0x13b-0x143 (8)
0x140|0d 1c 00 |... |
0x140| 00 00 00 00 25 49 cd 00 | ....%I.. | [11]: "1989-10-28T16:00:00Z" (625593600) transition_time 0x143-0x14b (8)
0x140| 00 00 00 00 25| ....%| [12]: "1990-03-03T16:00:00Z" (636480000) transition_time 0x14b-0x153 (8)
0x150|ef ea 00 |... |
0x150| 00 00 00 00 27 29 af 00 | ....').. | [13]: "1990-10-27T16:00:00Z" (657043200) transition_time 0x153-0x15b (8)
0x150| 00 00 00 00 27| ....'| [14]: "1991-03-02T16:00:00Z" (667929600) transition_time 0x15b-0x163 (8)
0x160|cf cc 00 |... |
0x160| 00 00 00 00 29 09 91 00 | ....)... | [15]: "1991-10-26T16:00:00Z" (688492800) transition_time 0x163-0x16b (8)
0x160| 00 00 00 00 29| ....)| [16]: "1992-02-29T16:00:00Z" (699379200) transition_time 0x16b-0x173 (8)
0x170|af ae 00 |... |
0x170| 00 00 00 00 2a e9 73 00 | ....*.s. | [17]: "1992-10-24T16:00:00Z" (719942400) transition_time 0x173-0x17b (8)
0x170| 00 00 00 00 2b| ....+| [18]: "1993-03-06T16:00:00Z" (731433600) transition_time 0x17b-0x183 (8)
0x180|98 ca 80 |... |
0x180| 00 00 00 00 2c d2 8f 80 | ....,... | [19]: "1993-10-30T16:00:00Z" (751996800) transition_time 0x183-0x18b (8)
0x180| 00 00 00 00 2d| ....-| [20]: "1994-03-05T16:00:00Z" (762883200) transition_time 0x18b-0x193 (8)
0x190|78 ac 80 |x.. |
| | | transition_types[0:21]: 0x193-0x1a8 (21)
0x190| 03 | . | [0]: 3 transition_type 0x193-0x194 (1)
0x190| 01 | . | [1]: 1 transition_type 0x194-0x195 (1)
0x190| 02 | . | [2]: 2 transition_type 0x195-0x196 (1)
0x190| 01 | . | [3]: 1 transition_type 0x196-0x197 (1)
0x190| 02 | . | [4]: 2 transition_type 0x197-0x198 (1)
0x190| 01 | . | [5]: 1 transition_type 0x198-0x199 (1)
0x190| 02 | . | [6]: 2 transition_type 0x199-0x19a (1)
0x190| 01 | . | [7]: 1 transition_type 0x19a-0x19b (1)
0x190| 02 | . | [8]: 2 transition_type 0x19b-0x19c (1)
0x190| 01 | . | [9]: 1 transition_type 0x19c-0x19d (1)
0x190| 02 | . | [10]: 2 transition_type 0x19d-0x19e (1)
0x190| 01 | . | [11]: 1 transition_type 0x19e-0x19f (1)
0x190| 02| .| [12]: 2 transition_type 0x19f-0x1a0 (1)
0x1a0|01 |. | [13]: 1 transition_type 0x1a0-0x1a1 (1)
0x1a0| 02 | . | [14]: 2 transition_type 0x1a1-0x1a2 (1)
0x1a0| 01 | . | [15]: 1 transition_type 0x1a2-0x1a3 (1)
0x1a0| 02 | . | [16]: 2 transition_type 0x1a3-0x1a4 (1)
0x1a0| 01 | . | [17]: 1 transition_type 0x1a4-0x1a5 (1)
0x1a0| 02 | . | [18]: 2 transition_type 0x1a5-0x1a6 (1)
0x1a0| 01 | . | [19]: 1 transition_type 0x1a6-0x1a7 (1)
0x1a0| 02 | . | [20]: 2 transition_type 0x1a7-0x1a8 (1)
| | | local_time_type_records[0:4]: 0x1a8-0x1c0 (24)
| | | [0]{}: local_time_type 0x1a8-0x1ae (6)
0x1a0| 00 00 8b ac | .... | utoff: 35756 (valid) 0x1a8-0x1ac (4)
0x1a0| 00 | . | dst: 0 (valid) 0x1ac-0x1ad (1)
0x1a0| 00 | . | idx: 0 (valid) 0x1ad-0x1ae (1)
| | | [1]{}: local_time_type 0x1ae-0x1b4 (6)
0x1a0| 00 00| ..| utoff: 39600 (valid) 0x1ae-0x1b2 (4)
0x1b0|9a b0 |.. |
0x1b0| 01 | . | dst: 1 (valid) 0x1b2-0x1b3 (1)
0x1b0| 04 | . | idx: 4 (valid) 0x1b3-0x1b4 (1)
| | | [2]{}: local_time_type 0x1b4-0x1ba (6)
0x1b0| 00 00 8c a0 | .... | utoff: 36000 (valid) 0x1b4-0x1b8 (4)
0x1b0| 00 | . | dst: 0 (valid) 0x1b8-0x1b9 (1)
0x1b0| 09 | . | idx: 9 (valid) 0x1b9-0x1ba (1)
| | | [3]{}: local_time_type 0x1ba-0x1c0 (6)
0x1b0| 00 00 8c a0 | .... | utoff: 36000 (valid) 0x1ba-0x1be (4)
0x1b0| 00 | . | dst: 0 (valid) 0x1be-0x1bf (1)
0x1b0| 09| .| idx: 9 (valid) 0x1bf-0x1c0 (1)
| | | time_zone_designations[0:3]: 0x1c0-0x1ce (14)
0x1c0|4c 4d 54 00 |LMT. | [0]: "LMT" time_zone_designation 0x1c0-0x1c4 (4)
0x1c0| 41 45 44 54 00 | AEDT. | [1]: "AEDT" time_zone_designation 0x1c4-0x1c9 (5)
0x1c0| 41 45 53 54 00 | AEST. | [2]: "AEST" time_zone_designation 0x1c9-0x1ce (5)
| | | leap_second_records[0:0]: 0x1ce-0x1ce (0)
| | | standard_wall_indicators[0:4]: 0x1ce-0x1d2 (4)
0x1c0| 00 | . | [0]: 0 standard_wall_indicator (valid) 0x1ce-0x1cf (1)
0x1c0| 01| .| [1]: 1 standard_wall_indicator (valid) 0x1cf-0x1d0 (1)
0x1d0|01 |. | [2]: 1 standard_wall_indicator (valid) 0x1d0-0x1d1 (1)
0x1d0| 00 | . | [3]: 0 standard_wall_indicator (valid) 0x1d1-0x1d2 (1)
| | | ut_local_indicators[0:0]: 0x1d2-0x1d2 (0)
| | | footer{}: 0x1d2-0x1db (9)
0x1d0| 0a | . | nl1: 10 (valid) 0x1d2-0x1d3 (1)
0x1d0| 41 45 53 54 2d 31 30 | AEST-10 | tz_string: "AEST-10" 0x1d3-0x1da (7)
0x1d0| 0a| | .| | nl2: 10 (valid) 0x1da-0x1db (1)