From: "Ara.T.Howard" Date: 2006-08-09T04:17:52+09:00 Subject: Re: solar local time On Tue, 8 Aug 2006, Jan Svitok wrote: > > Once more: what you want to achive is have function > > local_solar_time(utc_time, longitude) > > This is my (maybe naive) approach (It's possible I'm missing something) > To me it seems that your calculation is right, > > local_solar_time = utc_time +/- offset_seconds(longitude) > > +/- depends on whether longitude grows to the west (then -) or east (+) > > if you want have it in local time zone, then it would be > > localtime = utc_time + timezone_offset(longitude, latitude) obviously. yeah - the thing is that this 'localtime' will be in utc ;-) -a -- to foster inner awareness, introspection, and reasoning is more efficient than meditation and prayer. - h.h. the 14th dali lama