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.
72 lines
7.6 KiB
Plaintext
72 lines
7.6 KiB
Plaintext
$ fq -d tzif dv Marquesas
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: Marquesas (tzif) 0x0-0xad (173)
|
|
| | | 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 02 | .... | typecnt: 2 0x24-0x28 (4)
|
|
0x20| 00 00 00 0a | .... | charcnt: 10 0x28-0x2c (4)
|
|
| | | v1datablock{}: 0x2c-0x4c (32)
|
|
| | | transition_times[0:2]: 0x2c-0x34 (8)
|
|
0x20| 94 50 4c 48| .PLH| [0]: "1912-10-01T09:18:00Z" (-1806676920) transition_time 0x2c-0x30 (4)
|
|
0x30|7f ff ff ff |.... | [1]: "2038-01-19T03:14:07Z" (2147483647) transition_time 0x30-0x34 (4)
|
|
| | | transition_types[0:2]: 0x34-0x36 (2)
|
|
0x30| 01 | . | [0]: 1 transition_type 0x34-0x35 (1)
|
|
0x30| 01 | . | [1]: 1 transition_type 0x35-0x36 (1)
|
|
| | | local_time_type_records[0:2]: 0x36-0x42 (12)
|
|
| | | [0]{}: local_time_type 0x36-0x3c (6)
|
|
0x30| ff ff 7d 38 | ..}8 | utoff: -33480 (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 7a 68| ..zh| utoff: -34200 (valid) 0x3c-0x40 (4)
|
|
0x40|00 |. | dst: 0 (valid) 0x40-0x41 (1)
|
|
0x40| 04 | . | idx: 4 (valid) 0x41-0x42 (1)
|
|
| | | time_zone_designations[0:2]: 0x42-0x4c (10)
|
|
0x40| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x42-0x46 (4)
|
|
0x40| 2d 30 39 33 30 00 | -0930. | [1]: "-0930" time_zone_designation 0x46-0x4c (6)
|
|
| | | leap_second_records[0:0]: 0x4c-0x4c (0)
|
|
| | | standard_wall_indicators[0:0]: 0x4c-0x4c (0)
|
|
| | | ut_local_indicators[0:0]: 0x4c-0x4c (0)
|
|
| | | v2plusheader{}: 0x4c-0x78 (44)
|
|
0x40| 54 5a 69 66| TZif| magic: 0x545a6966 (valid) 0x4c-0x50 (4)
|
|
0x50|32 |2 | ver: "2" (0x32) (valid) 0x50-0x51 (1)
|
|
0x50| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00| ...............| reserved: raw bits 0x51-0x60 (15)
|
|
0x60|00 00 00 00 |.... | isutcnt: 0 0x60-0x64 (4)
|
|
0x60| 00 00 00 00 | .... | isstdcnt: 0 0x64-0x68 (4)
|
|
0x60| 00 00 00 00 | .... | leapcnt: 0 0x68-0x6c (4)
|
|
0x60| 00 00 00 02| ....| timecnt: 2 0x6c-0x70 (4)
|
|
0x70|00 00 00 02 |.... | typecnt: 2 0x70-0x74 (4)
|
|
0x70| 00 00 00 0a | .... | charcnt: 10 0x74-0x78 (4)
|
|
| | | v2plusdatablock{}: 0x78-0xa0 (40)
|
|
| | | transition_times[0:2]: 0x78-0x88 (16)
|
|
0x70| ff ff ff ff 94 50 4c 48| .....PLH| [0]: "1912-10-01T09:18:00Z" (-1806676920) transition_time 0x78-0x80 (8)
|
|
0x80|00 00 00 00 7f ff ff ff |........ | [1]: "2038-01-19T03:14:07Z" (2147483647) transition_time 0x80-0x88 (8)
|
|
| | | transition_types[0:2]: 0x88-0x8a (2)
|
|
0x80| 01 | . | [0]: 1 transition_type 0x88-0x89 (1)
|
|
0x80| 01 | . | [1]: 1 transition_type 0x89-0x8a (1)
|
|
| | | local_time_type_records[0:2]: 0x8a-0x96 (12)
|
|
| | | [0]{}: local_time_type 0x8a-0x90 (6)
|
|
0x80| ff ff 7d 38 | ..}8 | utoff: -33480 (valid) 0x8a-0x8e (4)
|
|
0x80| 00 | . | dst: 0 (valid) 0x8e-0x8f (1)
|
|
0x80| 00| .| idx: 0 (valid) 0x8f-0x90 (1)
|
|
| | | [1]{}: local_time_type 0x90-0x96 (6)
|
|
0x90|ff ff 7a 68 |..zh | utoff: -34200 (valid) 0x90-0x94 (4)
|
|
0x90| 00 | . | dst: 0 (valid) 0x94-0x95 (1)
|
|
0x90| 04 | . | idx: 4 (valid) 0x95-0x96 (1)
|
|
| | | time_zone_designations[0:2]: 0x96-0xa0 (10)
|
|
0x90| 4c 4d 54 00 | LMT. | [0]: "LMT" time_zone_designation 0x96-0x9a (4)
|
|
0x90| 2d 30 39 33 30 00| -0930.| [1]: "-0930" time_zone_designation 0x9a-0xa0 (6)
|
|
| | | leap_second_records[0:0]: 0xa0-0xa0 (0)
|
|
| | | standard_wall_indicators[0:0]: 0xa0-0xa0 (0)
|
|
| | | ut_local_indicators[0:0]: 0xa0-0xa0 (0)
|
|
| | | footer{}: 0xa0-0xad (13)
|
|
0xa0|0a |. | nl1: 10 (valid) 0xa0-0xa1 (1)
|
|
0xa0| 3c 2d 30 39 33 30 3e 39 3a 33 30 | <-0930>9:30 | tz_string: "<-0930>9:30" 0xa1-0xac (11)
|
|
0xa0| 0a| | .| | nl2: 10 (valid) 0xac-0xad (1)
|