Giter Club home page Giter Club logo

suncalc's People

Contributors

douglas-six avatar josebiro avatar pschou avatar sixdouglas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

josebiro pschou

suncalc's Issues

wrong date

input parameters

current time:
2020-05-17 15:05:16.414278 +0700 +07 m=+2.439547175

position:
lat: 55.00737904819233
lon: 82.95613288879396

Sun pos azimuth(218.097705), elevation(49.632049)

function called
times := suncalc.GetTimes(now, e.lat, e.lon)

result:
{
"dawn": {
"MorningName": "dawn",
"Time": "2020-05-17T04:29:45.597476352+07:00"
},
"dusk": {
"MorningName": "dusk",
"Time": "2020-05-17T22:22:12.176962304+07:00"
},
"goldenHour": {
"MorningName": "goldenHour",
"Time": "2020-05-17T20:37:57.783930368+07:00"
},
"goldenHourEnd": {
"MorningName": "goldenHourEnd",
"Time": "2020-05-17T06:13:59.990508544+07:00"
},
"nadir": {
"MorningName": "nadir",
"Time": "2020-05-17T01:25:58.887219456+07:00"
},
"nauticalDawn": {
"MorningName": "nauticalDawn",
"Time": "2020-05-17T03:16:15.785467136+07:00"
},
"nauticalDusk": {
"MorningName": "nauticalDusk",
"Time": "2020-05-17T23:35:41.988972032+07:00"
},
"night": {
"MorningName": "night",
"Time": "1677-09-21T05:44:23.145224192+05:31"
},
"nightEnd": {
"MorningName": "nightEnd",
"Time": "1677-09-21T05:44:23.145224192+05:31"
},
"solarNoon": {
"MorningName": "solarNoon",
"Time": "2020-05-17T13:25:58.887219456+07:00"
},
"sunrise": {
"MorningName": "sunrise",
"Time": "2020-05-17T05:18:13.48675328+07:00"
},
"sunriseEnd": {
"MorningName": "sunriseEnd",
"Time": "2020-05-17T05:22:50.375977472+07:00"
},
"sunset": {
"MorningName": "sunset",
"Time": "2020-05-17T21:33:44.287685888+07:00"
},
"sunsetStart": {
"MorningName": "sunsetStart",
"Time": "2020-05-17T21:29:07.39846144+07:00"
}
}

"Time": "1677-09-21T05:44:23.145224192+05:31"

func GetTimes returns everything in CST

Every item in the map gets returned in CST, I couldn't find anything in the docs on if this is intended/how to reformat. It's no big deal if not but if there is a way to somehow designate the LoadLocation that would be helpful.

This is a helpful lib btw, thanks for this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.