I hereby claim:
- I am rlafferty1 on github.
- I am ryanlafferty (https://keybase.io/ryanlafferty) on keybase.
- I have a public key whose fingerprint is 09E9 2A66 09CD 522A 79C9 2715 A60E 6A0D 1F40 A36B
To claim this, I am signing this object:
Verifying that +ryanlafferty is my blockchain ID. https://onename.com/ryanlafferty |
from datetime import datetime | |
from math import * | |
#result in hours | |
def get_LST(datestr,long): | |
dt1 = datetime.strptime(datestr,"%Y %m %d %H %M %S") | |
dd=dt1-datetime(2000,1,1,0,0,0) | |
utc = dt1.hour+dt1.minute/60.0+dt1.second/(3600.0) | |
return ((100.46+0.985647*dd.total_seconds()/(86400.0)+long)/15.0 +utc)%24 |
I hereby claim:
To claim this, I am signing this object: