I've just released version 0.6. It should handle local time now. The sleep problem on Linux is fixed (I hope); and the code is portable, without editing, on Linux and Windows. New minor-option "gmt/nogmt".
Please let me know if it's broken, or I've misunderstood time in some new way. I still need time to "get over" the Greenwich Prime Meridian being moved 102 and bit metres away from where it should be. [I've repeated this post as I put it in the wrong place previously]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There's a problem with Sunwait's understanding of time. I had assumed that the C gmttime functionality always returns UTC, but (it seems) that it adjusts for daylight savings [it becomes BST, not GMT] so things are a bit out. The localtime functionality does the same, pretty much globally I expect. So - it's a bit broken - although, in my house, it's not been so noticeable since dawn and dusk are not near working hours.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Still working on a fix. I now have a much better understanding of the C/timezone functionality - and have found that the strtime() includes a TZ adjustment number that gives me what I need (fingers crossed).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thx for sunwait, but I have a problem. It works under Win7 x64, but under XP x64 I'm receiving an error when launching "sunwait.exe is not a valid win32 application". Any hint? Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just released version 0.6. It should handle local time now. The sleep problem on Linux is fixed (I hope); and the code is portable, without editing, on Linux and Windows. New minor-option "gmt/nogmt".
Please let me know if it's broken, or I've misunderstood time in some new way. I still need time to "get over" the Greenwich Prime Meridian being moved 102 and bit metres away from where it should be. [I've repeated this post as I put it in the wrong place previously]
There's a problem with Sunwait's understanding of time. I had assumed that the C gmttime functionality always returns UTC, but (it seems) that it adjusts for daylight savings [it becomes BST, not GMT] so things are a bit out. The localtime functionality does the same, pretty much globally I expect. So - it's a bit broken - although, in my house, it's not been so noticeable since dawn and dusk are not near working hours.
Still working on a fix. I now have a much better understanding of the C/timezone functionality - and have found that the strtime() includes a TZ adjustment number that gives me what I need (fingers crossed).
I've just added the Windows program "sunwait.exe" for your convenience. Unix users please use the makefile (download all files and run 'make').
Hi!
Thx for sunwait, but I have a problem. It works under Win7 x64, but under XP x64 I'm receiving an error when launching "sunwait.exe is not a valid win32 application". Any hint? Thank you.
I've not got XP anymore. I'll have to have a think about it.
This might help: https://www.youtube.com/watch?v=WiOYueQqfDc