mirror of https://github.com/espruino/BangleApps
sixths: gethour was not available, try this
parent
a104f12f7e
commit
942ff4aaf8
|
@ -205,7 +205,7 @@ let sun = {
|
||||||
get_sun_time: function() {
|
get_sun_time: function() {
|
||||||
let d = new Date();
|
let d = new Date();
|
||||||
let sun = this.SunCalc.getTimes(d, this.lat, this.lon);
|
let sun = this.SunCalc.getTimes(d, this.lat, this.lon);
|
||||||
print(sun.sunrise, sun.sunrise.getHour());
|
print(sun.sunrise, sun.sunset);
|
||||||
return sun;
|
return sun;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue