XTension Discussion
Calculating daylight hours
I want to track the daylight hours just for grins. Don't really have
any reason to other than I can. Or maybe I can't cause at the moment I
can only get the results to whole numbers.
My script is this.
set daylightHours to (((sunset) - (sunrise)) div 3600)
Without the div 3600 I get 41108 (seconds). When I put in the 3600 I
get 11 hours but it should be 11.41xxx
How to I get it to at least 2 decimal points?
Chuck
_______________________________________________
XTensionlist mailing list
XTensionlist-AT-shed.com
lists.shed.com/mailman/listinfo/xtensionlist
any reason to other than I can. Or maybe I can't cause at the moment I
can only get the results to whole numbers.
My script is this.
set daylightHours to (((sunset) - (sunrise)) div 3600)
Without the div 3600 I get 41108 (seconds). When I put in the 3600 I
get 11 hours but it should be 11.41xxx
How to I get it to at least 2 decimal points?
Chuck
_______________________________________________
XTensionlist mailing list
XTensionlist-AT-shed.com
lists.shed.com/mailman/listinfo/xtensionlist
Next message in thread
Thread
Re: Calculating daylight hours / James Sentman <james-AT-sentman.com> / 07 Mar 2010
Re: Calculating daylight hours / Chuck <xtension4osx-AT-mac.com> / 08 Mar 2010
Re: Calculating daylight hours / Steve Hume <stevelist-AT-hume.ca> / 08 Mar 2010
Re: Calculating daylight hours / James Sentman <james-AT-sentman.com> / 08 Mar 2010
Re: Calculating daylight hours / Chuck <xtension4osx-AT-mac.com> / 08 Mar 2010
Re: Calculating daylight hours / Paul Koreneff <paulx10-AT-koreneff.net> / 08 Mar 2010
Re: Calculating daylight hours / Chuck <xtension4osx-AT-mac.com> / 08 Mar 2010
Re: Calculating daylight hours / James Sentman <james-AT-sentman.com> / 08 Mar 2010
Re: Calculating daylight hours / Tony Bennett <trbtexas-AT-sbcglobal.net> / 08 Mar 2010
Re: Calculating daylight hours / Tony Bennett <trbtexas-AT-sbcglobal.net> / 08 Mar 2010
Re: Calculating daylight hours / Tony Bennett <trbtexas-AT-sbcglobal.net> / 08 Mar 2010
Re: Calculating daylight hours / Chuck <xtension4osx-AT-mac.com> / 08 Mar 2010
Re: Calculating daylight hours / Chuck <xtension4osx-AT-mac.com> / 08 Mar 2010
Re: Calculating daylight hours / Tony Bennett <trbtexas-AT-sbcglobal.net> / 08 Mar 2010
