XClose
List Archives : http://void.nothingness.org
List Archives

XTension Discussion

Calculating daylight hours

From: Chuck <xtension4osx-AT-mac.com>
Date: 07 Mar 2010 05:43:45 UTC   (09:43:45 PM in author's locale)
To: xtensionlist-AT-shed.com
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

* List Archives

IMC GeneralRA-LThe Graphics ListThe Situationist ListXTension Discussion
 

This site made manifest by Manifesto software