Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Collection with various date routines

Post any examples or modules that you want to share here

Collection with various date routines

Postby Yuroun » 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.

DateUtls.fsm
(3.26 KiB) Downloaded 1479 times
User avatar
Yuroun
 
Posts: 27
Joined: Mon Dec 19, 2011 7:32 pm
Location: Tilburg, The Nethlands

Re: Collection with various date routines

Postby Jay » Fri Apr 26, 2013 8:33 pm

thanks Yuroun

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

Best Regards
Jay
 
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm


Return to User Examples

Who is online

Users browsing this forum: No registered users and 104 guests

cron