Time dataengine invalid sunrise and sunset results

Amos Kariuki amoskahiga at gmail.com
Thu Nov 26 19:43:03 CET 2009


Petri Damstén wrote:

> On Thursday 26 November 2009 06:56:09 Amos Kariuki wrote:
>> I have some test code to obtain the sunrise and sunset time given a
>>  longitude and latitude for a location:

> 
> There are problems in KDE 4.3 calculation. In KDE 4.4

Thanks. (I tested and verified it works with a 4.4 build)

> America/New York|DateTime=2009-11-24T12:00:00|Solar|Latitude=40|Longitude=-75
> 
> Gives:
> Sunrise:  QVariant(QDateTime, QDateTime("Tue Nov 24 06:55:32 2009") )
> Sunset:  QVariant(QDateTime, QDateTime("Tue Nov 24 16:37:55 2009") )
> 
> And noaa for the same time zone:
> Sunrise: 06:56
> Sunset: 16:38
> 
> Petri


Amos Kariuki



More information about the Plasma-devel mailing list