Function Repository Resource:

WinterSolstice

Source Notebook

Calculate the date of the winter solstice for a year

Contributed by: Peter Burbery

ResourceFunction["WinterSolstice"][year]

calculates the winter solstice for year.

Details

This is for the Northern Hemisphere's winter. This corresponds to the summer in the Southern Hemisphere, which has less people and land.

Examples

Basic Examples

Find the date of the winter solstice in 2122:

In[1]:=
ResourceFunction["WinterSolstice"][2122]
Out[1]=

Make a list of the dates of the winter solstice for the next 30 years:

In[2]:=
Dataset[Table[{year, ResourceFunction["WinterSolstice"][year ]}, {year, 2023, 2023 + 30,
    1}], MaxItems -> 10]
Out[2]=

Find the date of the winter solstice for a random date in the next 30 years:

In[3]:=
ResourceFunction["WinterSolstice"][
 DateValue[RandomDate[{Now, Now + Quantity[30, "Years"]}], "Year"]]
Out[3]=

Change the time zone:

In[4]:=
ResourceFunction["WinterSolstice"][2018, Entity["City", {"NewYork", "NewYork", "UnitedStates"}]]
Out[4]=

Publisher

Peter Burbery

Version History

  • 1.0.0 – 25 May 2023

Source Metadata

Related Resources

License Information