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

101 lines
10 KiB
Plaintext

$ fq -d tzif dv Monrovia
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: Monrovia (tzif) 0x0-0xd0 (208)
| | | 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 03 |.... | timecnt: 3 0x20-0x24 (4)
0x20| 00 00 00 04 | .... | typecnt: 4 0x24-0x28 (4)
0x20| 00 00 00 0c | .... | charcnt: 12 0x28-0x2c (4)
| | | v1datablock{}: 0x2c-0x5f (51)
| | | transition_times[0:3]: 0x2c-0x38 (12)
0x20| 80 00 00 00| ....| [0]: "1901-12-13T20:45:52Z" (-2147483648) transition_time 0x2c-0x30 (4)
0x30|a0 5f 6c 9c |._l. | [1]: "1919-03-01T00:43:08Z" (-1604359012) transition_time 0x30-0x34 (4)
0x30| 03 ca 5a 6e | ..Zn | [2]: "1972-01-07T00:44:30Z" (63593070) transition_time 0x34-0x38 (4)
| | | transition_types[0:3]: 0x38-0x3b (3)
0x30| 01 | . | [0]: 1 transition_type 0x38-0x39 (1)
0x30| 02 | . | [1]: 2 transition_type 0x39-0x3a (1)
0x30| 03 | . | [2]: 3 transition_type 0x3a-0x3b (1)
| | | local_time_type_records[0:4]: 0x3b-0x53 (24)
| | | [0]{}: local_time_type 0x3b-0x41 (6)
0x30| ff ff f5 e4 | .... | utoff: -2588 (valid) 0x3b-0x3f (4)
0x30| 00| .| dst: 0 (valid) 0x3f-0x40 (1)
0x40|00 |. | idx: 0 (valid) 0x40-0x41 (1)
| | | [1]{}: local_time_type 0x41-0x47 (6)
0x40| ff ff f5 e4 | .... | utoff: -2588 (valid) 0x41-0x45 (4)
0x40| 00 | . | dst: 0 (valid) 0x45-0x46 (1)
0x40| 04 | . | idx: 4 (valid) 0x46-0x47 (1)
| | | [2]{}: local_time_type 0x47-0x4d (6)
0x40| ff ff f5 92 | .... | utoff: -2670 (valid) 0x47-0x4b (4)
0x40| 00 | . | dst: 0 (valid) 0x4b-0x4c (1)
0x40| 04 | . | idx: 4 (valid) 0x4c-0x4d (1)
| | | [3]{}: local_time_type 0x4d-0x53 (6)
0x40| 00 00 00| ...| utoff: 0 (valid) 0x4d-0x51 (4)
0x50|00 |. |
0x50| 00 | . | dst: 0 (valid) 0x51-0x52 (1)
0x50| 08 | . | idx: 8 (valid) 0x52-0x53 (1)
| | | time_zone_designations[0:3]: 0x53-0x5f (12)
0x50| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x53-0x57 (4)
0x50| 4d 4d 54 00 | MMT. | [1]: "MMT" time_zone_designation 0x57-0x5b (4)
0x50| 47 4d 54 00 | GMT. | [2]: "GMT" time_zone_designation 0x5b-0x5f (4)
| | | leap_second_records[0:0]: 0x5f-0x5f (0)
| | | standard_wall_indicators[0:0]: 0x5f-0x5f (0)
| | | ut_local_indicators[0:0]: 0x5f-0x5f (0)
| | | v2plusheader{}: 0x5f-0x8b (44)
0x50| 54| T| magic: 0x545a6966 (valid) 0x5f-0x63 (4)
0x60|5a 69 66 |Zif |
0x60| 32 | 2 | ver: "2" (0x32) (valid) 0x63-0x64 (1)
0x60| 00 00 00 00 00 00 00 00 00 00 00 00| ............| reserved: raw bits 0x64-0x73 (15)
0x70|00 00 00 |... |
0x70| 00 00 00 00 | .... | isutcnt: 0 0x73-0x77 (4)
0x70| 00 00 00 00 | .... | isstdcnt: 0 0x77-0x7b (4)
0x70| 00 00 00 00 | .... | leapcnt: 0 0x7b-0x7f (4)
0x70| 00| .| timecnt: 3 0x7f-0x83 (4)
0x80|00 00 03 |... |
0x80| 00 00 00 04 | .... | typecnt: 4 0x83-0x87 (4)
0x80| 00 00 00 0c | .... | charcnt: 12 0x87-0x8b (4)
| | | v2plusdatablock{}: 0x8b-0xca (63)
| | | transition_times[0:3]: 0x8b-0xa3 (24)
0x80| ff ff ff ff 5a| ....Z| [0]: "1882-01-01T00:43:08Z" (-2776979812) transition_time 0x8b-0x93 (8)
0x90|7a a6 9c |z.. |
0x90| ff ff ff ff a0 5f 6c 9c | ....._l. | [1]: "1919-03-01T00:43:08Z" (-1604359012) transition_time 0x93-0x9b (8)
0x90| 00 00 00 00 03| .....| [2]: "1972-01-07T00:44:30Z" (63593070) transition_time 0x9b-0xa3 (8)
0xa0|ca 5a 6e |.Zn |
| | | transition_types[0:3]: 0xa3-0xa6 (3)
0xa0| 01 | . | [0]: 1 transition_type 0xa3-0xa4 (1)
0xa0| 02 | . | [1]: 2 transition_type 0xa4-0xa5 (1)
0xa0| 03 | . | [2]: 3 transition_type 0xa5-0xa6 (1)
| | | local_time_type_records[0:4]: 0xa6-0xbe (24)
| | | [0]{}: local_time_type 0xa6-0xac (6)
0xa0| ff ff f5 e4 | .... | utoff: -2588 (valid) 0xa6-0xaa (4)
0xa0| 00 | . | dst: 0 (valid) 0xaa-0xab (1)
0xa0| 00 | . | idx: 0 (valid) 0xab-0xac (1)
| | | [1]{}: local_time_type 0xac-0xb2 (6)
0xa0| ff ff f5 e4| ....| utoff: -2588 (valid) 0xac-0xb0 (4)
0xb0|00 |. | dst: 0 (valid) 0xb0-0xb1 (1)
0xb0| 04 | . | idx: 4 (valid) 0xb1-0xb2 (1)
| | | [2]{}: local_time_type 0xb2-0xb8 (6)
0xb0| ff ff f5 92 | .... | utoff: -2670 (valid) 0xb2-0xb6 (4)
0xb0| 00 | . | dst: 0 (valid) 0xb6-0xb7 (1)
0xb0| 04 | . | idx: 4 (valid) 0xb7-0xb8 (1)
| | | [3]{}: local_time_type 0xb8-0xbe (6)
0xb0| 00 00 00 00 | .... | utoff: 0 (valid) 0xb8-0xbc (4)
0xb0| 00 | . | dst: 0 (valid) 0xbc-0xbd (1)
0xb0| 08 | . | idx: 8 (valid) 0xbd-0xbe (1)
| | | time_zone_designations[0:3]: 0xbe-0xca (12)
0xb0| 4c 4d| LM| [0]: "LMT" time_zone_designation 0xbe-0xc2 (4)
0xc0|54 00 |T. |
0xc0| 4d 4d 54 00 | MMT. | [1]: "MMT" time_zone_designation 0xc2-0xc6 (4)
0xc0| 47 4d 54 00 | GMT. | [2]: "GMT" time_zone_designation 0xc6-0xca (4)
| | | leap_second_records[0:0]: 0xca-0xca (0)
| | | standard_wall_indicators[0:0]: 0xca-0xca (0)
| | | ut_local_indicators[0:0]: 0xca-0xca (0)
| | | footer{}: 0xca-0xd0 (6)
0xc0| 0a | . | nl1: 10 (valid) 0xca-0xcb (1)
0xc0| 47 4d 54 30 | GMT0 | tz_string: "GMT0" 0xcb-0xcf (4)
0xc0| 0a| .| nl2: 10 (valid) 0xcf-0xd0 (1)