1
1
mirror of https://github.com/wader/fq.git synced 2024-12-27 15:42:07 +03:00
fq/format/tzif/testdata/Maputo.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

73 lines
7.4 KiB
Plaintext

$ fq -d tzif dv Maputo
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: Maputo (tzif) 0x0-0x95 (149)
| | | v1header{}: 0x0-0x2c (44)
0x00|54 5a 69 66 |TZif | magic: 0x545a6966 (valid) 0x0-0x4 (4)
0x00| 32 | 2 | ver: "2" (0x32) (valid) 0x4-0x5 (1)
0x00| 00 00 00 00 00 00 00 00 00 00 00| ...........| reserved: raw bits 0x5-0x14 (15)
0x10|00 00 00 00 |.... |
0x10| 00 00 00 00 | .... | isutcnt: 0 0x14-0x18 (4)
0x10| 00 00 00 00 | .... | isstdcnt: 0 0x18-0x1c (4)
0x10| 00 00 00 00| ....| leapcnt: 0 0x1c-0x20 (4)
0x20|00 00 00 01 |.... | timecnt: 1 0x20-0x24 (4)
0x20| 00 00 00 02 | .... | typecnt: 2 0x24-0x28 (4)
0x20| 00 00 00 08 | .... | charcnt: 8 0x28-0x2c (4)
| | | v1datablock{}: 0x2c-0x45 (25)
| | | transition_times[0:1]: 0x2c-0x30 (4)
0x20| 82 46 c5 f4| .F..| [0]: "1903-02-28T21:49:40Z" (-2109291020) transition_time 0x2c-0x30 (4)
| | | transition_types[0:1]: 0x30-0x31 (1)
0x30|01 |. | [0]: 1 transition_type 0x30-0x31 (1)
| | | local_time_type_records[0:2]: 0x31-0x3d (12)
| | | [0]{}: local_time_type 0x31-0x37 (6)
0x30| 00 00 1e 8c | .... | utoff: 7820 (valid) 0x31-0x35 (4)
0x30| 00 | . | dst: 0 (valid) 0x35-0x36 (1)
0x30| 00 | . | idx: 0 (valid) 0x36-0x37 (1)
| | | [1]{}: local_time_type 0x37-0x3d (6)
0x30| 00 00 1c 20 | ... | utoff: 7200 (valid) 0x37-0x3b (4)
0x30| 00 | . | dst: 0 (valid) 0x3b-0x3c (1)
0x30| 04 | . | idx: 4 (valid) 0x3c-0x3d (1)
| | | time_zone_designations[0:2]: 0x3d-0x45 (8)
0x30| 4c 4d 54| LMT| [0]: "LMT" time_zone_designation 0x3d-0x41 (4)
0x40|00 |. |
0x40| 43 41 54 00 | CAT. | [1]: "CAT" time_zone_designation 0x41-0x45 (4)
| | | leap_second_records[0:0]: 0x45-0x45 (0)
| | | standard_wall_indicators[0:0]: 0x45-0x45 (0)
| | | ut_local_indicators[0:0]: 0x45-0x45 (0)
| | | v2plusheader{}: 0x45-0x71 (44)
0x40| 54 5a 69 66 | TZif | magic: 0x545a6966 (valid) 0x45-0x49 (4)
0x40| 32 | 2 | ver: "2" (0x32) (valid) 0x49-0x4a (1)
0x40| 00 00 00 00 00 00| ......| reserved: raw bits 0x4a-0x59 (15)
0x50|00 00 00 00 00 00 00 00 00 |......... |
0x50| 00 00 00 00 | .... | isutcnt: 0 0x59-0x5d (4)
0x50| 00 00 00| ...| isstdcnt: 0 0x5d-0x61 (4)
0x60|00 |. |
0x60| 00 00 00 00 | .... | leapcnt: 0 0x61-0x65 (4)
0x60| 00 00 00 01 | .... | timecnt: 1 0x65-0x69 (4)
0x60| 00 00 00 02 | .... | typecnt: 2 0x69-0x6d (4)
0x60| 00 00 00| ...| charcnt: 8 0x6d-0x71 (4)
0x70|08 |. |
| | | v2plusdatablock{}: 0x71-0x8e (29)
| | | transition_times[0:1]: 0x71-0x79 (8)
0x70| ff ff ff ff 82 46 c5 f4 | .....F.. | [0]: "1903-02-28T21:49:40Z" (-2109291020) transition_time 0x71-0x79 (8)
| | | transition_types[0:1]: 0x79-0x7a (1)
0x70| 01 | . | [0]: 1 transition_type 0x79-0x7a (1)
| | | local_time_type_records[0:2]: 0x7a-0x86 (12)
| | | [0]{}: local_time_type 0x7a-0x80 (6)
0x70| 00 00 1e 8c | .... | utoff: 7820 (valid) 0x7a-0x7e (4)
0x70| 00 | . | dst: 0 (valid) 0x7e-0x7f (1)
0x70| 00| .| idx: 0 (valid) 0x7f-0x80 (1)
| | | [1]{}: local_time_type 0x80-0x86 (6)
0x80|00 00 1c 20 |... | utoff: 7200 (valid) 0x80-0x84 (4)
0x80| 00 | . | dst: 0 (valid) 0x84-0x85 (1)
0x80| 04 | . | idx: 4 (valid) 0x85-0x86 (1)
| | | time_zone_designations[0:2]: 0x86-0x8e (8)
0x80| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x86-0x8a (4)
0x80| 43 41 54 00 | CAT. | [1]: "CAT" time_zone_designation 0x8a-0x8e (4)
| | | leap_second_records[0:0]: 0x8e-0x8e (0)
| | | standard_wall_indicators[0:0]: 0x8e-0x8e (0)
| | | ut_local_indicators[0:0]: 0x8e-0x8e (0)
| | | footer{}: 0x8e-0x95 (7)
0x80| 0a | . | nl1: 10 (valid) 0x8e-0x8f (1)
0x80| 43| C| tz_string: "CAT-2" 0x8f-0x94 (5)
0x90|41 54 2d 32 |AT-2 |
0x90| 0a| | .| | nl2: 10 (valid) 0x94-0x95 (1)