On Sat, Sep 17, 2011 at 12:25 AM, Gé Weijers <g...@weijers.org> wrote:

> 'mktime' converts localtime, it's not designed to do what you want it to
> do. Setting is_dst just sets the assumption about


i was always under the impression (apparently wrong) that time() returned
localtime. My man pages say "seconds since the epoch" but does not specify a
TZ, so i guess i always assumed local.

whether DST is in effect. Setting it to -1 makes the routine look it up.


That was my understanding.


> I don't know what happens in that one 'ambiguous' hour each year.
>
>   
> http://pubs.opengroup.org/**onlinepubs/7908799/xsh/mktime.**html<http://pubs.opengroup.org/onlinepubs/7908799/xsh/mktime.html>


i'm not much worried about an off-by-1-day for 60 minutes a year. :)

This may work:
>

Thank you! i'll give those a try.


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to