Length of Day Calculator

27 views
Skip to first unread message

Bert Mariani

unread,
Dec 31, 2025, 12:34:20 PM12/31/25
to The Ring Programming Language
Happy New Year Mahmoud et ALL !!

As part of the "Orbital Series"

Attached is a 
    - Length-Of-Day-Calculator.ring

It is based on Spherical Trigonometry
It depends on the Earth Tilt  23.44 degrees
And the Earth position in its Orbit

It will calculate the length of day based on Latitude
  -  Enter Latitude  
     Click -  Calc-Latitude
       
  - Select City from drop down
     Click - Calc-DayLength

 - To display entries for every day in the entire year
    Click  -  Print-Year

 - To draw a chart that start with March 21 - Aries
    Click  - Draw-Year

Check if your City is in the Drop Down list
See the values for current date

Try   Reykjavik in Iceland
Try Latitude 75 - Land of the Midnight Sun


LengthOfDay-Chart-1.png


Length-Of-Day-Calculator.ring

Mahmoud Fayed

unread,
Dec 31, 2025, 1:30:19 PM12/31/25
to The Ring Programming Language
Hello Bert

Happy New Year to you, too :D

Thanks for sharing the sample :D


Greetings,
Mahmoud

Mahmoud Fayed

unread,
Jan 1, 2026, 1:38:03 PMJan 1
to The Ring Programming Language
Hello Bert


To avoid unnecessary call to the exec() function which produce runtime error at the end of the program

Greetings,
Mahmoud

On Wednesday, December 31, 2025 at 8:34:20 PM UTC+3 Bert Mariani wrote:
Reply all
Reply to author
Forward
0 new messages