Collection with various date routines
Posted: Thu Apr 25, 2013 10:12 pm
Here are some modules in FS. I made/collected/converted them to Ruby as an exercise to learn Ruby. Maybe someone has some use for them.
Modules/routines:
- JulianDate
Calculates the Julian Day number from a Gregorian date
- LeapYear
Returns True if a year specified is a leap year.
- Easter
Calculates the date of easter
- DaysBetween
Calculates the days between dates
- Today
- Now
Live system date and time in a string
- Biorhythm
Simpel biorhythm calculation. Can be extended.
Modules/routines:
- JulianDate
Calculates the Julian Day number from a Gregorian date
- LeapYear
Returns True if a year specified is a leap year.
- Easter
Calculates the date of easter
- DaysBetween
Calculates the days between dates
- Today
- Now
Live system date and time in a string
- Biorhythm
Simpel biorhythm calculation. Can be extended.