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

$ fq -d tzif dv Bissau
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: Bissau (tzif) 0x0-0xc2 (194)
| | | 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 03 | .... | isutcnt: 3 0x14-0x18 (4)
0x10| 00 00 00 03 | .... | isstdcnt: 3 0x18-0x1c (4)
0x10| 00 00 00 00| ....| leapcnt: 0 0x1c-0x20 (4)
0x20|00 00 00 02 |.... | timecnt: 2 0x20-0x24 (4)
0x20| 00 00 00 03 | .... | typecnt: 3 0x24-0x28 (4)
0x20| 00 00 00 0c | .... | charcnt: 12 0x28-0x2c (4)
| | | v1datablock{}: 0x2c-0x5a (46)
| | | transition_times[0:2]: 0x2c-0x34 (8)
0x20| 92 e6 9c 90| ....| [0]: "1912-01-01T01:00:00Z" (-1830380400) transition_time 0x2c-0x30 (4)
0x30|09 67 61 10 |.ga. | [1]: "1975-01-01T01:00:00Z" (157770000) transition_time 0x30-0x34 (4)
| | | transition_types[0:2]: 0x34-0x36 (2)
0x30| 01 | . | [0]: 1 transition_type 0x34-0x35 (1)
0x30| 02 | . | [1]: 2 transition_type 0x35-0x36 (1)
| | | local_time_type_records[0:3]: 0x36-0x48 (18)
| | | [0]{}: local_time_type 0x36-0x3c (6)
0x30| ff ff f1 64 | ...d | utoff: -3740 (valid) 0x36-0x3a (4)
0x30| 00 | . | dst: 0 (valid) 0x3a-0x3b (1)
0x30| 00 | . | idx: 0 (valid) 0x3b-0x3c (1)
| | | [1]{}: local_time_type 0x3c-0x42 (6)
0x30| ff ff f1 f0| ....| utoff: -3600 (valid) 0x3c-0x40 (4)
0x40|00 |. | dst: 0 (valid) 0x40-0x41 (1)
0x40| 04 | . | idx: 4 (valid) 0x41-0x42 (1)
| | | [2]{}: local_time_type 0x42-0x48 (6)
0x40| 00 00 00 00 | .... | utoff: 0 (valid) 0x42-0x46 (4)
0x40| 00 | . | dst: 0 (valid) 0x46-0x47 (1)
0x40| 08 | . | idx: 8 (valid) 0x47-0x48 (1)
| | | time_zone_designations[0:3]: 0x48-0x54 (12)
0x40| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x48-0x4c (4)
0x40| 2d 30 31 00| -01.| [1]: "-01" time_zone_designation 0x4c-0x50 (4)
0x50|47 4d 54 00 |GMT. | [2]: "GMT" time_zone_designation 0x50-0x54 (4)
| | | leap_second_records[0:0]: 0x54-0x54 (0)
| | | standard_wall_indicators[0:3]: 0x54-0x57 (3)
0x50| 00 | . | [0]: 0 standard_wall_indicator (valid) 0x54-0x55 (1)
0x50| 01 | . | [1]: 1 standard_wall_indicator (valid) 0x55-0x56 (1)
0x50| 00 | . | [2]: 0 standard_wall_indicator (valid) 0x56-0x57 (1)
| | | ut_local_indicators[0:3]: 0x57-0x5a (3)
0x50| 00 | . | [0]: 0 ut_local_indicator (valid) 0x57-0x58 (1)
0x50| 01 | . | [1]: 1 ut_local_indicator (valid) 0x58-0x59 (1)
0x50| 00 | . | [2]: 0 ut_local_indicator (valid) 0x59-0x5a (1)
| | | v2plusheader{}: 0x5a-0x86 (44)
0x50| 54 5a 69 66 | TZif | magic: 0x545a6966 (valid) 0x5a-0x5e (4)
0x50| 32 | 2 | ver: "2" (0x32) (valid) 0x5e-0x5f (1)
0x50| 00| .| reserved: raw bits 0x5f-0x6e (15)
0x60|00 00 00 00 00 00 00 00 00 00 00 00 00 00 |.............. |
0x60| 00 00| ..| isutcnt: 3 0x6e-0x72 (4)
0x70|00 03 |.. |
0x70| 00 00 00 03 | .... | isstdcnt: 3 0x72-0x76 (4)
0x70| 00 00 00 00 | .... | leapcnt: 0 0x76-0x7a (4)
0x70| 00 00 00 02 | .... | timecnt: 2 0x7a-0x7e (4)
0x70| 00 00| ..| typecnt: 3 0x7e-0x82 (4)
0x80|00 03 |.. |
0x80| 00 00 00 0c | .... | charcnt: 12 0x82-0x86 (4)
| | | v2plusdatablock{}: 0x86-0xbc (54)
| | | transition_times[0:2]: 0x86-0x96 (16)
0x80| ff ff ff ff 92 e6 9c 90 | ........ | [0]: "1912-01-01T01:00:00Z" (-1830380400) transition_time 0x86-0x8e (8)
0x80| 00 00| ..| [1]: "1975-01-01T01:00:00Z" (157770000) transition_time 0x8e-0x96 (8)
0x90|00 00 09 67 61 10 |...ga. |
| | | transition_types[0:2]: 0x96-0x98 (2)
0x90| 01 | . | [0]: 1 transition_type 0x96-0x97 (1)
0x90| 02 | . | [1]: 2 transition_type 0x97-0x98 (1)
| | | local_time_type_records[0:3]: 0x98-0xaa (18)
| | | [0]{}: local_time_type 0x98-0x9e (6)
0x90| ff ff f1 64 | ...d | utoff: -3740 (valid) 0x98-0x9c (4)
0x90| 00 | . | dst: 0 (valid) 0x9c-0x9d (1)
0x90| 00 | . | idx: 0 (valid) 0x9d-0x9e (1)
| | | [1]{}: local_time_type 0x9e-0xa4 (6)
0x90| ff ff| ..| utoff: -3600 (valid) 0x9e-0xa2 (4)
0xa0|f1 f0 |.. |
0xa0| 00 | . | dst: 0 (valid) 0xa2-0xa3 (1)
0xa0| 04 | . | idx: 4 (valid) 0xa3-0xa4 (1)
| | | [2]{}: local_time_type 0xa4-0xaa (6)
0xa0| 00 00 00 00 | .... | utoff: 0 (valid) 0xa4-0xa8 (4)
0xa0| 00 | . | dst: 0 (valid) 0xa8-0xa9 (1)
0xa0| 08 | . | idx: 8 (valid) 0xa9-0xaa (1)
| | | time_zone_designations[0:3]: 0xaa-0xb6 (12)
0xa0| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0xaa-0xae (4)
0xa0| 2d 30| -0| [1]: "-01" time_zone_designation 0xae-0xb2 (4)
0xb0|31 00 |1. |
0xb0| 47 4d 54 00 | GMT. | [2]: "GMT" time_zone_designation 0xb2-0xb6 (4)
| | | leap_second_records[0:0]: 0xb6-0xb6 (0)
| | | standard_wall_indicators[0:3]: 0xb6-0xb9 (3)
0xb0| 00 | . | [0]: 0 standard_wall_indicator (valid) 0xb6-0xb7 (1)
0xb0| 01 | . | [1]: 1 standard_wall_indicator (valid) 0xb7-0xb8 (1)
0xb0| 00 | . | [2]: 0 standard_wall_indicator (valid) 0xb8-0xb9 (1)
| | | ut_local_indicators[0:3]: 0xb9-0xbc (3)
0xb0| 00 | . | [0]: 0 ut_local_indicator (valid) 0xb9-0xba (1)
0xb0| 01 | . | [1]: 1 ut_local_indicator (valid) 0xba-0xbb (1)
0xb0| 00 | . | [2]: 0 ut_local_indicator (valid) 0xbb-0xbc (1)
| | | footer{}: 0xbc-0xc2 (6)
0xb0| 0a | . | nl1: 10 (valid) 0xbc-0xbd (1)
0xb0| 47 4d 54| GMT| tz_string: "GMT0" 0xbd-0xc1 (4)
0xc0|30 |0 |
0xc0| 0a| | .| | nl2: 10 (valid) 0xc1-0xc2 (1)