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

143 lines
16 KiB
Plaintext

$ fq -d tzif dv Kwajalein
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: Kwajalein (tzif) 0x0-0x13c (316)
| | | 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 00 | .... | isstdcnt: 0 0x18-0x1c (4)
0x010| 00 00 00 00| ....| leapcnt: 0 0x1c-0x20 (4)
0x020|00 00 00 07 |.... | timecnt: 7 0x20-0x24 (4)
0x020| 00 00 00 06 | .... | typecnt: 6 0x24-0x28 (4)
0x020| 00 00 00 18 | .... | charcnt: 24 0x28-0x2c (4)
| | | v1datablock{}: 0x2c-0x8b (95)
| | | transition_times[0:7]: 0x2c-0x48 (28)
0x020| 80 00 00 00| ....| [0]: "1901-12-13T20:45:52Z" (-2147483648) transition_time 0x2c-0x30 (4)
0x030|c1 ed 35 d0 |..5. | [1]: "1936-12-31T13:00:00Z" (-1041418800) transition_time 0x30-0x34 (4)
0x030| c9 ea 0a 60 | ...` | [2]: "1941-03-31T14:00:00Z" (-907408800) transition_time 0x34-0x38 (4)
0x030| cf 46 81 f0 | .F.. | [3]: "1944-02-05T15:00:00Z" (-817462800) transition_time 0x38-0x3c (4)
0x030| ff 86 1b 50| ...P| [4]: "1969-09-30T13:00:00Z" (-7988400) transition_time 0x3c-0x40 (4)
0x040|2c 76 0e 40 |,v.@ | [5]: "1993-08-21T12:00:00Z" (745934400) transition_time 0x40-0x44 (4)
0x040| 7f ff ff ff | .... | [6]: "2038-01-19T03:14:07Z" (2147483647) transition_time 0x44-0x48 (4)
| | | transition_types[0:7]: 0x48-0x4f (7)
0x040| 01 | . | [0]: 1 transition_type 0x48-0x49 (1)
0x040| 02 | . | [1]: 2 transition_type 0x49-0x4a (1)
0x040| 03 | . | [2]: 3 transition_type 0x4a-0x4b (1)
0x040| 01 | . | [3]: 1 transition_type 0x4b-0x4c (1)
0x040| 04 | . | [4]: 4 transition_type 0x4c-0x4d (1)
0x040| 05 | . | [5]: 5 transition_type 0x4d-0x4e (1)
0x040| 05 | . | [6]: 5 transition_type 0x4e-0x4f (1)
| | | local_time_type_records[0:6]: 0x4f-0x73 (36)
| | | [0]{}: local_time_type 0x4f-0x55 (6)
0x040| 00| .| utoff: 40160 (valid) 0x4f-0x53 (4)
0x050|00 9c e0 |... |
0x050| 00 | . | dst: 0 (valid) 0x53-0x54 (1)
0x050| 00 | . | idx: 0 (valid) 0x54-0x55 (1)
| | | [1]{}: local_time_type 0x55-0x5b (6)
0x050| 00 00 9a b0 | .... | utoff: 39600 (valid) 0x55-0x59 (4)
0x050| 00 | . | dst: 0 (valid) 0x59-0x5a (1)
0x050| 04 | . | idx: 4 (valid) 0x5a-0x5b (1)
| | | [2]{}: local_time_type 0x5b-0x61 (6)
0x050| 00 00 8c a0 | .... | utoff: 36000 (valid) 0x5b-0x5f (4)
0x050| 00| .| dst: 0 (valid) 0x5f-0x60 (1)
0x060|08 |. | idx: 8 (valid) 0x60-0x61 (1)
| | | [3]{}: local_time_type 0x61-0x67 (6)
0x060| 00 00 7e 90 | ..~. | utoff: 32400 (valid) 0x61-0x65 (4)
0x060| 00 | . | dst: 0 (valid) 0x65-0x66 (1)
0x060| 0c | . | idx: 12 (valid) 0x66-0x67 (1)
| | | [4]{}: local_time_type 0x67-0x6d (6)
0x060| ff ff 57 40 | ..W@ | utoff: -43200 (valid) 0x67-0x6b (4)
0x060| 00 | . | dst: 0 (valid) 0x6b-0x6c (1)
0x060| 10 | . | idx: 16 (valid) 0x6c-0x6d (1)
| | | [5]{}: local_time_type 0x6d-0x73 (6)
0x060| 00 00 a8| ...| utoff: 43200 (valid) 0x6d-0x71 (4)
0x070|c0 |. |
0x070| 00 | . | dst: 0 (valid) 0x71-0x72 (1)
0x070| 14 | . | idx: 20 (valid) 0x72-0x73 (1)
| | | time_zone_designations[0:6]: 0x73-0x8b (24)
0x070| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x73-0x77 (4)
0x070| 2b 31 31 00 | +11. | [1]: "+11" time_zone_designation 0x77-0x7b (4)
0x070| 2b 31 30 00 | +10. | [2]: "+10" time_zone_designation 0x7b-0x7f (4)
0x070| 2b| +| [3]: "+09" time_zone_designation 0x7f-0x83 (4)
0x080|30 39 00 |09. |
0x080| 2d 31 32 00 | -12. | [4]: "-12" time_zone_designation 0x83-0x87 (4)
0x080| 2b 31 32 00 | +12. | [5]: "+12" time_zone_designation 0x87-0x8b (4)
| | | leap_second_records[0:0]: 0x8b-0x8b (0)
| | | standard_wall_indicators[0:0]: 0x8b-0x8b (0)
| | | ut_local_indicators[0:0]: 0x8b-0x8b (0)
| | | v2plusheader{}: 0x8b-0xb7 (44)
0x080| 54 5a 69 66 | TZif | magic: 0x545a6966 (valid) 0x8b-0x8f (4)
0x080| 32| 2| ver: "2" (0x32) (valid) 0x8f-0x90 (1)
0x090|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |............... | reserved: raw bits 0x90-0x9f (15)
0x090| 00| .| isutcnt: 0 0x9f-0xa3 (4)
0x0a0|00 00 00 |... |
0x0a0| 00 00 00 00 | .... | isstdcnt: 0 0xa3-0xa7 (4)
0x0a0| 00 00 00 00 | .... | leapcnt: 0 0xa7-0xab (4)
0x0a0| 00 00 00 07 | .... | timecnt: 7 0xab-0xaf (4)
0x0a0| 00| .| typecnt: 6 0xaf-0xb3 (4)
0x0b0|00 00 06 |... |
0x0b0| 00 00 00 18 | .... | charcnt: 24 0xb3-0xb7 (4)
| | | v2plusdatablock{}: 0xb7-0x132 (123)
| | | transition_times[0:7]: 0xb7-0xef (56)
0x0b0| ff ff ff ff 7e 36 18 20 | ....~6. | [0]: "1900-12-31T12:50:40Z" (-2177492960) transition_time 0xb7-0xbf (8)
0x0b0| ff| .| [1]: "1936-12-31T13:00:00Z" (-1041418800) transition_time 0xbf-0xc7 (8)
0x0c0|ff ff ff c1 ed 35 d0 |.....5. |
0x0c0| ff ff ff ff c9 ea 0a 60 | .......` | [2]: "1941-03-31T14:00:00Z" (-907408800) transition_time 0xc7-0xcf (8)
0x0c0| ff| .| [3]: "1944-02-05T15:00:00Z" (-817462800) transition_time 0xcf-0xd7 (8)
0x0d0|ff ff ff cf 46 81 f0 |....F.. |
0x0d0| ff ff ff ff ff 86 1b 50 | .......P | [4]: "1969-09-30T13:00:00Z" (-7988400) transition_time 0xd7-0xdf (8)
0x0d0| 00| .| [5]: "1993-08-21T12:00:00Z" (745934400) transition_time 0xdf-0xe7 (8)
0x0e0|00 00 00 2c 76 0e 40 |...,v.@ |
0x0e0| 00 00 00 00 7f ff ff ff | ........ | [6]: "2038-01-19T03:14:07Z" (2147483647) transition_time 0xe7-0xef (8)
| | | transition_types[0:7]: 0xef-0xf6 (7)
0x0e0| 01| .| [0]: 1 transition_type 0xef-0xf0 (1)
0x0f0|02 |. | [1]: 2 transition_type 0xf0-0xf1 (1)
0x0f0| 03 | . | [2]: 3 transition_type 0xf1-0xf2 (1)
0x0f0| 01 | . | [3]: 1 transition_type 0xf2-0xf3 (1)
0x0f0| 04 | . | [4]: 4 transition_type 0xf3-0xf4 (1)
0x0f0| 05 | . | [5]: 5 transition_type 0xf4-0xf5 (1)
0x0f0| 05 | . | [6]: 5 transition_type 0xf5-0xf6 (1)
| | | local_time_type_records[0:6]: 0xf6-0x11a (36)
| | | [0]{}: local_time_type 0xf6-0xfc (6)
0x0f0| 00 00 9c e0 | .... | utoff: 40160 (valid) 0xf6-0xfa (4)
0x0f0| 00 | . | dst: 0 (valid) 0xfa-0xfb (1)
0x0f0| 00 | . | idx: 0 (valid) 0xfb-0xfc (1)
| | | [1]{}: local_time_type 0xfc-0x102 (6)
0x0f0| 00 00 9a b0| ....| utoff: 39600 (valid) 0xfc-0x100 (4)
0x100|00 |. | dst: 0 (valid) 0x100-0x101 (1)
0x100| 04 | . | idx: 4 (valid) 0x101-0x102 (1)
| | | [2]{}: local_time_type 0x102-0x108 (6)
0x100| 00 00 8c a0 | .... | utoff: 36000 (valid) 0x102-0x106 (4)
0x100| 00 | . | dst: 0 (valid) 0x106-0x107 (1)
0x100| 08 | . | idx: 8 (valid) 0x107-0x108 (1)
| | | [3]{}: local_time_type 0x108-0x10e (6)
0x100| 00 00 7e 90 | ..~. | utoff: 32400 (valid) 0x108-0x10c (4)
0x100| 00 | . | dst: 0 (valid) 0x10c-0x10d (1)
0x100| 0c | . | idx: 12 (valid) 0x10d-0x10e (1)
| | | [4]{}: local_time_type 0x10e-0x114 (6)
0x100| ff ff| ..| utoff: -43200 (valid) 0x10e-0x112 (4)
0x110|57 40 |W@ |
0x110| 00 | . | dst: 0 (valid) 0x112-0x113 (1)
0x110| 10 | . | idx: 16 (valid) 0x113-0x114 (1)
| | | [5]{}: local_time_type 0x114-0x11a (6)
0x110| 00 00 a8 c0 | .... | utoff: 43200 (valid) 0x114-0x118 (4)
0x110| 00 | . | dst: 0 (valid) 0x118-0x119 (1)
0x110| 14 | . | idx: 20 (valid) 0x119-0x11a (1)
| | | time_zone_designations[0:6]: 0x11a-0x132 (24)
0x110| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x11a-0x11e (4)
0x110| 2b 31| +1| [1]: "+11" time_zone_designation 0x11e-0x122 (4)
0x120|31 00 |1. |
0x120| 2b 31 30 00 | +10. | [2]: "+10" time_zone_designation 0x122-0x126 (4)
0x120| 2b 30 39 00 | +09. | [3]: "+09" time_zone_designation 0x126-0x12a (4)
0x120| 2d 31 32 00 | -12. | [4]: "-12" time_zone_designation 0x12a-0x12e (4)
0x120| 2b 31| +1| [5]: "+12" time_zone_designation 0x12e-0x132 (4)
0x130|32 00 |2. |
| | | leap_second_records[0:0]: 0x132-0x132 (0)
| | | standard_wall_indicators[0:0]: 0x132-0x132 (0)
| | | ut_local_indicators[0:0]: 0x132-0x132 (0)
| | | footer{}: 0x132-0x13c (10)
0x130| 0a | . | nl1: 10 (valid) 0x132-0x133 (1)
0x130| 3c 2b 31 32 3e 2d 31 32 | <+12>-12 | tz_string: "<+12>-12" 0x133-0x13b (8)
0x130| 0a| | .| | nl2: 10 (valid) 0x13b-0x13c (1)