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

83 lines
8.7 KiB
Plaintext

$ fq -d tzif dv Pago_Pago
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: Pago_Pago (tzif) 0x0-0xaf (175)
| | | 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 02 |.... | timecnt: 2 0x20-0x24 (4)
0x20| 00 00 00 03 | .... | typecnt: 3 0x24-0x28 (4)
0x20| 00 00 00 08 | .... | charcnt: 8 0x28-0x2c (4)
| | | v1datablock{}: 0x2c-0x50 (36)
| | | transition_times[0:2]: 0x2c-0x34 (8)
0x20| 80 00 00 00| ....| [0]: "1901-12-13T20:45:52Z" (-2147483648) transition_time 0x2c-0x30 (4)
0x30|91 05 fb 08 |.... | [1]: "1911-01-01T11:22:48Z" (-1861879032) 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| 00 00 b1 78 | ...x | utoff: 45432 (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 5f f8| .._.| utoff: -40968 (valid) 0x3c-0x40 (4)
0x40|00 |. | dst: 0 (valid) 0x40-0x41 (1)
0x40| 00 | . | idx: 0 (valid) 0x41-0x42 (1)
| | | [2]{}: local_time_type 0x42-0x48 (6)
0x40| ff ff 65 50 | ..eP | utoff: -39600 (valid) 0x42-0x46 (4)
0x40| 00 | . | dst: 0 (valid) 0x46-0x47 (1)
0x40| 04 | . | idx: 4 (valid) 0x47-0x48 (1)
| | | time_zone_designations[0:2]: 0x48-0x50 (8)
0x40| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x48-0x4c (4)
0x40| 53 53 54 00| SST.| [1]: "SST" time_zone_designation 0x4c-0x50 (4)
| | | leap_second_records[0:0]: 0x50-0x50 (0)
| | | standard_wall_indicators[0:0]: 0x50-0x50 (0)
| | | ut_local_indicators[0:0]: 0x50-0x50 (0)
| | | v2plusheader{}: 0x50-0x7c (44)
0x50|54 5a 69 66 |TZif | magic: 0x545a6966 (valid) 0x50-0x54 (4)
0x50| 32 | 2 | ver: "2" (0x32) (valid) 0x54-0x55 (1)
0x50| 00 00 00 00 00 00 00 00 00 00 00| ...........| reserved: raw bits 0x55-0x64 (15)
0x60|00 00 00 00 |.... |
0x60| 00 00 00 00 | .... | isutcnt: 0 0x64-0x68 (4)
0x60| 00 00 00 00 | .... | isstdcnt: 0 0x68-0x6c (4)
0x60| 00 00 00 00| ....| leapcnt: 0 0x6c-0x70 (4)
0x70|00 00 00 02 |.... | timecnt: 2 0x70-0x74 (4)
0x70| 00 00 00 03 | .... | typecnt: 3 0x74-0x78 (4)
0x70| 00 00 00 08 | .... | charcnt: 8 0x78-0x7c (4)
| | | v2plusdatablock{}: 0x7c-0xa8 (44)
| | | transition_times[0:2]: 0x7c-0x8c (16)
0x70| ff ff ff ff| ....| [0]: "1892-07-04T11:22:48Z" (-2445424632) transition_time 0x7c-0x84 (8)
0x80|6e 3d c8 08 |n=.. |
0x80| ff ff ff ff 91 05 fb 08 | ........ | [1]: "1911-01-01T11:22:48Z" (-1861879032) transition_time 0x84-0x8c (8)
| | | transition_types[0:2]: 0x8c-0x8e (2)
0x80| 01 | . | [0]: 1 transition_type 0x8c-0x8d (1)
0x80| 02 | . | [1]: 2 transition_type 0x8d-0x8e (1)
| | | local_time_type_records[0:3]: 0x8e-0xa0 (18)
| | | [0]{}: local_time_type 0x8e-0x94 (6)
0x80| 00 00| ..| utoff: 45432 (valid) 0x8e-0x92 (4)
0x90|b1 78 |.x |
0x90| 00 | . | dst: 0 (valid) 0x92-0x93 (1)
0x90| 00 | . | idx: 0 (valid) 0x93-0x94 (1)
| | | [1]{}: local_time_type 0x94-0x9a (6)
0x90| ff ff 5f f8 | .._. | utoff: -40968 (valid) 0x94-0x98 (4)
0x90| 00 | . | dst: 0 (valid) 0x98-0x99 (1)
0x90| 00 | . | idx: 0 (valid) 0x99-0x9a (1)
| | | [2]{}: local_time_type 0x9a-0xa0 (6)
0x90| ff ff 65 50 | ..eP | utoff: -39600 (valid) 0x9a-0x9e (4)
0x90| 00 | . | dst: 0 (valid) 0x9e-0x9f (1)
0x90| 04| .| idx: 4 (valid) 0x9f-0xa0 (1)
| | | time_zone_designations[0:2]: 0xa0-0xa8 (8)
0xa0|4c 4d 54 00 |LMT. | [0]: "LMT" time_zone_designation 0xa0-0xa4 (4)
0xa0| 53 53 54 00 | SST. | [1]: "SST" time_zone_designation 0xa4-0xa8 (4)
| | | leap_second_records[0:0]: 0xa8-0xa8 (0)
| | | standard_wall_indicators[0:0]: 0xa8-0xa8 (0)
| | | ut_local_indicators[0:0]: 0xa8-0xa8 (0)
| | | footer{}: 0xa8-0xaf (7)
0xa0| 0a | . | nl1: 10 (valid) 0xa8-0xa9 (1)
0xa0| 53 53 54 31 31 | SST11 | tz_string: "SST11" 0xa9-0xae (5)
0xa0| 0a| | .|| nl2: 10 (valid) 0xae-0xaf (1)