Skip to content

Instantly share code, notes, and snippets.

View greiginsydney's full-sized avatar

Greig Sheridan greiginsydney

View GitHub Profile
@jrleeman
jrleeman / toDayOfYear.ino
Last active July 18, 2024 22:00
Arduino Day of Year Function
/*
toDayOfYear
This sketch demonstrates a function to convert the year, month, day
format to the day of the year. Leap years are corrected. Unit tests
include leap year and regular year tests for every month as well as
corner case and error case testing.
Created 30 March 2015
Modified 14 April 2015