[PATCH] Limited support for Suunto DM4 import

Miika Turkia miika.turkia at gmail.com
Sun Mar 3 10:10:55 PST 2013


On Sun, Mar 3, 2013 at 6:12 PM, Rainer Mohr <mail at divelogs.de> wrote:
> hi Miika,
>
>
>> +       /* Suunto saves time in 100 nano seconds, we'll need the time in
>> +        * seconds.
>> +        */
>> +       when = (time_t)(atol(argv[1]) / 10000000);
>
>
> This kept me awake for hours too
>
> SELECT StartTime/10000000-62135604000 as StartTime
>
> gives you a unix timestamp to work with
>
> Careful, they don't care about daylight savings! So you need to check the
> date and subtract an hour for winter months too (the above select gives you
> times for daylight savings period)

Thanks, I sure could have used that select when fighting with the
times. I wonder if we are good to go as we keep all the times in local
time. Exactly as the DC records. (I only have dives from Jan/Feb on my
DC so cannot really look into details of summer time.)

miika


More information about the subsurface mailing list