[PATCH] Limited support for Suunto DM4 import

Miika Turkia miika.turkia at gmail.com
Wed May 8 23:40:13 PDT 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)
>

Have you tested the daylight saving with current DM4? My data seems to
indicate that I do not need to do the one hour subtract for winter months.
However, your DB seems to require that at least for dives done in 2011. (My
own data only has dives on Jan 2013 so it does not really tell much about
the time handling, but contradicts to the -1 hour for winter.)

miika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130509/e4a3d355/attachment-0001.html>


More information about the subsurface mailing list