Giter VIP home page Giter VIP logo

Comments (8)

scragly avatar scragly commented on June 28, 2024 2

Just a small note: Not all countries use the Astronomical Seasons as you've provided here, which rely on the start and end of seasons based on the Solstice and Equinox.

For example, there's the Meteorological Seasons, where seasons fall on neat month groupings that is based on the average temperatures throughout the year. For example the Australian observed seasons are:

Season Northern Months Southern Months
Spring March, April, May September, October, November
Summer June, July, August December, January, February
Autumn September, October, November March, April, May
Winter December, January, February June, July, August

As brought up by @RohanJnr, Meteorological seasons rely on the local weather/temperature patterns throughout the year, each country may vary accordingly, and this may be something we cannot account for entirely. A good example to compare the above sample against is the seasons observed by India.

Chinese cultures also have another system, often called the Solar Seasons, which is like a mix of the two. It has an everyday-usage of neat month groupings, but based on the solstice and equinox dates to signify the three darkest months for winter, and three most sun-filled for summer.

Season Northern Months Southern Months
Spring March, April, May September, October, November
Summer June, July, August December, January, February
Autumn September, October, November March, April, May
Winter December, January, February June, July, August

However, this system is the generalised everyday usage version of the Chinese seasons. They also have more detailed 24-term solar seasonal calendar. The terms consist of 12 pairs major and minor terms.

As you can see, the Start of Summer term is signified on the top right, and Start of Autumn is signified on the bottom right, splitting the year cleanly into a quarter, with the Summer Solstice marking a clear middlepoint. This is where the general usage comes from.

In the case that such a feature does get developed into the Evergreen cog, I hope that we provide all three of these systems in the output, not just Astronomical seasons, as we would want to avoid disregarding any portion of our members.

from sir-lancebot.

brad90four avatar brad90four commented on June 28, 2024

So I see that this was approved in Feb of last year, but was there an agreed implementation method?

There would be a command named "season" with options for astronomical, meteorological, and solar seasons. If no options are passed, what should the default response be? Should there also be a North / South hemisphere check or just default to sending both?

Just trying to wrap my head around what could be done and what the result will be.

User Input

.season <optional season: astro, meteor, solar : default astro?> <optional hemispehere: north, south: default north?>

Bot Response

Based on user input of .season astro north
The current astronomical season in the Northern Hemisphere is Summer. The next season Fall will start in 19 days on 22 September.
The autumnal equinox is on 22 September. The December solstice is on 21 December. More information for equinoxes and solstices can be found here:
Equinox - Solstice

from sir-lancebot.

mathstrains21 avatar mathstrains21 commented on June 28, 2024

Hi! I would like to work on this! For the solar/chinese system, I guess that it is just the opposite for the southern hemisphere like with the other seasons?

from sir-lancebot.

parth-verma7 avatar parth-verma7 commented on June 28, 2024

@brad90four Hi! I would like to work upon this issue. Please assign it to me.
Thank You!

from sir-lancebot.

brad90four avatar brad90four commented on June 28, 2024

Tagging @Xithrius , any issues with assigning this to @parth-verma7 ?

from sir-lancebot.

Xithrius avatar Xithrius commented on June 28, 2024

I have no objections.

from sir-lancebot.

wookie184 avatar wookie184 commented on June 28, 2024

@parth-verma7 What is the plan for implementation here given the previous discussion? As seasons work differently in different places, what type will be used? Will an API need to be used to get the necessary information?

from sir-lancebot.

parth-verma7 avatar parth-verma7 commented on June 28, 2024

@wookie184 I could not find any api for seasons .
My way:
i) Extract country.
ii) Extract the current time zone.
iii) Return the time zone from some database in which all the seasons vs country are stored.
I have attached a sample image, please have a look.
image

from sir-lancebot.

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.