New topic: Calculations between dates
<http://forums.realsoftware.com/viewtopic.php?t=32262> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Intelligent007 Post subject: Calculations between datesPosted: Sat Jan 30, 2010 6:08 am Joined: Tue Jul 28, 2009 1:08 am Posts: 10 Hello, I'm making a program where, at some time, the program has to make some calculations based on dates (which come from an input text file); The dates are written in the following format (but of course, I can change this format): D/M/YYYY 1/2/2009; 15/5/2009 5/7/2009; 10/7/2009 22/12/2009; 22/12/2009 The number of days are calculated between two dates, such as: 1/2/2009-15/5/2009, and in each line the result is given by the program and written in another text file, together with the dates. This works fine for, let's say, 1000 records; But when I run the program on 10000 records it takes the program more than 15 minutes to calculate. Can anyone help me and give me some advice how I can optimise my code? thank you very much, birgit Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
