Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Calculate the date of the winter solstice for a year
| ResourceFunction["WinterSolstice"][year] calculates the winter solstice for year. | 
Find the date of the winter solstice in 2122:
| In[1]:= | ![ResourceFunction["WinterSolstice"][2122]](https://www.wolframcloud.com/obj/resourcesystem/images/dec/dec13028-1aa4-4a03-9875-f515b1e36d80/0bde05d33b4c505d.png) | 
| 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]](https://www.wolframcloud.com/obj/resourcesystem/images/dec/dec13028-1aa4-4a03-9875-f515b1e36d80/76a8fffea8e16b68.png) | 
| 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"]]](https://www.wolframcloud.com/obj/resourcesystem/images/dec/dec13028-1aa4-4a03-9875-f515b1e36d80/664b626877153fd1.png) | 
| Out[3]= |  | 
Change the time zone:
| In[4]:= | ![ResourceFunction["WinterSolstice"][2018, Entity["City", {"NewYork", "NewYork", "UnitedStates"}]]](https://www.wolframcloud.com/obj/resourcesystem/images/dec/dec13028-1aa4-4a03-9875-f515b1e36d80/5dd77d559d7fa68e.png) | 
| Out[4]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License