time zone information - flash parameter 20 - General Discussion and Assistance - CHDK Forum

time zone information - flash parameter 20

  • 0 Replies
  • 2128 Views
*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
time zone information - flash parameter 20
« on: 13 / May / 2013, 06:10:12 »
Advertisements
Probably are the following information for all cameras with time zone setting the same.

Flash parameter 20 has 8 bytes. They contain information about the time zone settings:
Code: [Select]
1. 0x00 33 time zones direction east (standard)
2. 0x01 ?
3. 0x00 33 time zones direction east (world)
4. 0x01 ?
5. 0x00 standard; 0x01 world
6. 0x00 DST off; 0x01 DST on (standard)
7. 0x00 DST off; 0x01 DST on (world)
8. 0x00 ?

Code: [Select]
London       00:00          0x00     0
Paris       +01:00          0x01     1
Kairo       +02:00          0x02     2
Moskau      +03:00          0x03     3
Teheran     +03:30          0x04     4
Dubai       +04:00          0x05     5
Kabul       +04:30          0x06     6
Karachi     +05:00          0x07     7
Dehli       +05:30          0x08     8
Kathmandu   +05:45          0x09     9
Dacca       +06:00          0x0a    10
Yangon      +06:30          0x0b    11
Bangkok     +07:00          0x0c    12
Hong Kong   +08:00          0x0d    13
Tokyo       +09:00          0x0e    14
Adelaide    +09:30          0x0f    15
Sydney      +10:00          0x10    16
Solomon     +11:00          0x11    17
Wellington  +12:00          0x12    18
Chatham     +12:45          0x13    19
Samoa       -11:00          0x14    20
Honolulu    -10:00          0x15    21
Anchorage   -09:00          0x16    22
Los Angeles -08:00          0x17    23
Denver      -07:00          0x18    24
Chicago     -06:00          0x19    25
New York    -05:00          0x1a    26
Caracas     -04:30          0x1b    27
Santiago    -04:00          0x1c    28
Newfoundland -03:30          0x1d    29
Sao Paulo   -03:00          0x1e    30
Fernando de Noronha -02:00  0x1f    31
Azoren      -01:00          0x20    32

You can use the following Lua code:
Code: (lua) [Select]
str = get_parameter_data(20)
if str then
    for i=1, #str do
        print(string.format("0x%02x ", string.byte(str, i)))
    end
end

Perhaps someone has found the meanings of byte 2, 4 & 8. That would be great.

msl
CHDK-DE:  CHDK-DE links

 

Related Topics


SimplePortal © 2008-2014, SimplePortal