Giter VIP home page Giter VIP logo

Comments (4)

sffjunkie avatar sffjunkie commented on June 15, 2024 1

The example is correct but slightly confusing as the times being returned by the astral.sun.sun function by default return times in the UTC timezone and the Location class is not used in the example. I'll add an example which uses the Location class that by default uses the local timezone.

If you do the following before printing it out you'll get times closer to what you were expecting

tz = pytz.timezone(pbmo.timezone)
s = sun(pbmo.observer, date=datetime.date(2020, 2, 11), tzinfo=tz)

from astral.

jethornton avatar jethornton commented on June 15, 2024

For my location today:
Sunrise 6:54
Meridian 12:15
Sunset 17:37

JT

from astral.

jethornton avatar jethornton commented on June 15, 2024

Thanks so much for clearing that up, I look forward to the example.
BTW, you have https://astral.readthedocs.io/en/latest/

Installation
To install Astral you should use the pip tool:
pip install astral

I'm sure you mean pip3 for Python 3
pip3 install astral

Thanks
JT

from astral.

jethornton avatar jethornton commented on June 15, 2024

Thanks for fixing the documents

JT

from astral.

Related Issues (20)

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.