Collection with various date routines

Post any examples or modules that you want to share here
Post Reply
User avatar
Yuroun
Posts: 27
Joined: Mon Dec 19, 2011 7:32 pm
Location: Tilburg, The Nethlands
Contact:

Collection with various date routines

Post 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 1564 times
Jay
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

Re: Collection with various date routines

Post by Jay »

thanks Yuroun

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

Best Regards
Post Reply