Page 1 of 1

Collection with various date routines

Posted: Thu Apr 25, 2013 10:12 pm
by Yuroun
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.

DateUtls.fsm
(3.26 KiB) Downloaded 1566 times

Re: Collection with various date routines

Posted: Fri Apr 26, 2013 8:33 pm
by Jay
thanks Yuroun

that's a nice little collection! these are very handy and will go into my toolbox! :)

Best Regards