Some Date Calculation Functions
Monkey Forums/Monkey Code/Some Date Calculation Functions
| ||
Hey Monkeys, I have translated some DateCalc functions from C++ to Monkey. See Here. (It's in German). I simply needed a function to calculate the difference of two dates in Seconds, so i searched for it on the internet. I'm sorry that most comments are in German (just took them 1:1 from the source.) If anything is unclear, just let me know I can translate, just was to lazy ;). Have fun with it. Here a simple Example how to: If anything runs unexpected let me know, i didn't test every possible case. but the 3 cases i've tested, it was on the second the same as calculated by hand and by http://www.knaak.bplaced.de/Software/PHP/Datumsrechner.php#Rechner |
| ||
Danke! |