mirror of
https://github.com/wader/fq.git
synced 2024-11-29 23:27:12 +03:00
051a70bd4b
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.
92 lines
9.6 KiB
Plaintext
92 lines
9.6 KiB
Plaintext
$ fq -d tzif dv Niue
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: Niue (tzif) 0x0-0xcb (203)
|
|
| | | 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 03 | .... | typecnt: 3 0x24-0x28 (4)
|
|
0x20| 00 00 00 0e | .... | charcnt: 14 0x28-0x2c (4)
|
|
| | | v1datablock{}: 0x2c-0x5b (47)
|
|
| | | transition_times[0:3]: 0x2c-0x38 (12)
|
|
0x20| df a1 6a 4c| ..jL| [0]: "1952-10-16T11:19:40Z" (-543069620) transition_time 0x2c-0x30 (4)
|
|
0x30|f5 a6 b8 60 |...` | [1]: "1964-07-01T11:20:00Z" (-173623200) transition_time 0x30-0x34 (4)
|
|
0x30| 7f ff ff ff | .... | [2]: "2038-01-19T03:14:07Z" (2147483647) 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| 02 | . | [2]: 2 transition_type 0x3a-0x3b (1)
|
|
| | | local_time_type_records[0:3]: 0x3b-0x4d (18)
|
|
| | | [0]{}: local_time_type 0x3b-0x41 (6)
|
|
0x30| ff ff 60 b4 | ..`. | utoff: -40780 (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 60 a0 | ..`. | utoff: -40800 (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 65 50 | ..eP | utoff: -39600 (valid) 0x47-0x4b (4)
|
|
0x40| 00 | . | dst: 0 (valid) 0x4b-0x4c (1)
|
|
0x40| 0a | . | idx: 10 (valid) 0x4c-0x4d (1)
|
|
| | | time_zone_designations[0:3]: 0x4d-0x5b (14)
|
|
0x40| 4c 4d 54| LMT| [0]: "LMT" time_zone_designation 0x4d-0x51 (4)
|
|
0x50|00 |. |
|
|
0x50| 2d 31 31 32 30 00 | -1120. | [1]: "-1120" time_zone_designation 0x51-0x57 (6)
|
|
0x50| 2d 31 31 00 | -11. | [2]: "-11" time_zone_designation 0x57-0x5b (4)
|
|
| | | leap_second_records[0:0]: 0x5b-0x5b (0)
|
|
| | | standard_wall_indicators[0:0]: 0x5b-0x5b (0)
|
|
| | | ut_local_indicators[0:0]: 0x5b-0x5b (0)
|
|
| | | v2plusheader{}: 0x5b-0x87 (44)
|
|
0x50| 54 5a 69 66 | TZif | magic: 0x545a6966 (valid) 0x5b-0x5f (4)
|
|
0x50| 32| 2| ver: "2" (0x32) (valid) 0x5f-0x60 (1)
|
|
0x60|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |............... | reserved: raw bits 0x60-0x6f (15)
|
|
0x60| 00| .| isutcnt: 0 0x6f-0x73 (4)
|
|
0x70|00 00 00 |... |
|
|
0x70| 00 00 00 00 | .... | isstdcnt: 0 0x73-0x77 (4)
|
|
0x70| 00 00 00 00 | .... | leapcnt: 0 0x77-0x7b (4)
|
|
0x70| 00 00 00 03 | .... | timecnt: 3 0x7b-0x7f (4)
|
|
0x70| 00| .| typecnt: 3 0x7f-0x83 (4)
|
|
0x80|00 00 03 |... |
|
|
0x80| 00 00 00 0e | .... | charcnt: 14 0x83-0x87 (4)
|
|
| | | v2plusdatablock{}: 0x87-0xc2 (59)
|
|
| | | transition_times[0:3]: 0x87-0x9f (24)
|
|
0x80| ff ff ff ff df a1 6a 4c | ......jL | [0]: "1952-10-16T11:19:40Z" (-543069620) transition_time 0x87-0x8f (8)
|
|
0x80| ff| .| [1]: "1964-07-01T11:20:00Z" (-173623200) transition_time 0x8f-0x97 (8)
|
|
0x90|ff ff ff f5 a6 b8 60 |......` |
|
|
0x90| 00 00 00 00 7f ff ff ff | ........ | [2]: "2038-01-19T03:14:07Z" (2147483647) transition_time 0x97-0x9f (8)
|
|
| | | transition_types[0:3]: 0x9f-0xa2 (3)
|
|
0x90| 01| .| [0]: 1 transition_type 0x9f-0xa0 (1)
|
|
0xa0|02 |. | [1]: 2 transition_type 0xa0-0xa1 (1)
|
|
0xa0| 02 | . | [2]: 2 transition_type 0xa1-0xa2 (1)
|
|
| | | local_time_type_records[0:3]: 0xa2-0xb4 (18)
|
|
| | | [0]{}: local_time_type 0xa2-0xa8 (6)
|
|
0xa0| ff ff 60 b4 | ..`. | utoff: -40780 (valid) 0xa2-0xa6 (4)
|
|
0xa0| 00 | . | dst: 0 (valid) 0xa6-0xa7 (1)
|
|
0xa0| 00 | . | idx: 0 (valid) 0xa7-0xa8 (1)
|
|
| | | [1]{}: local_time_type 0xa8-0xae (6)
|
|
0xa0| ff ff 60 a0 | ..`. | utoff: -40800 (valid) 0xa8-0xac (4)
|
|
0xa0| 00 | . | dst: 0 (valid) 0xac-0xad (1)
|
|
0xa0| 04 | . | idx: 4 (valid) 0xad-0xae (1)
|
|
| | | [2]{}: local_time_type 0xae-0xb4 (6)
|
|
0xa0| ff ff| ..| utoff: -39600 (valid) 0xae-0xb2 (4)
|
|
0xb0|65 50 |eP |
|
|
0xb0| 00 | . | dst: 0 (valid) 0xb2-0xb3 (1)
|
|
0xb0| 0a | . | idx: 10 (valid) 0xb3-0xb4 (1)
|
|
| | | time_zone_designations[0:3]: 0xb4-0xc2 (14)
|
|
0xb0| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0xb4-0xb8 (4)
|
|
0xb0| 2d 31 31 32 30 00 | -1120. | [1]: "-1120" time_zone_designation 0xb8-0xbe (6)
|
|
0xb0| 2d 31| -1| [2]: "-11" time_zone_designation 0xbe-0xc2 (4)
|
|
0xc0|31 00 |1. |
|
|
| | | leap_second_records[0:0]: 0xc2-0xc2 (0)
|
|
| | | standard_wall_indicators[0:0]: 0xc2-0xc2 (0)
|
|
| | | ut_local_indicators[0:0]: 0xc2-0xc2 (0)
|
|
| | | footer{}: 0xc2-0xcb (9)
|
|
0xc0| 0a | . | nl1: 10 (valid) 0xc2-0xc3 (1)
|
|
0xc0| 3c 2d 31 31 3e 31 31 | <-11>11 | tz_string: "<-11>11" 0xc3-0xca (7)
|
|
0xc0| 0a| | .| | nl2: 10 (valid) 0xca-0xcb (1)
|