[PATCH] Limited support for Suunto DM4 import
Rainer Mohr
mail at divelogs.de
Sun Mar 3 08:12:55 PST 2013
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)
Rainer
More information about the subsurface
mailing list