New topic: date and interval
<http://forums.realsoftware.com/viewtopic.php?t=31608> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message ivanomonti Post subject: date and intervalPosted: Wed Dec 16, 2009 9:03 am Joined: Mon Nov 03, 2008 6:36 am Posts: 5 How do I calculate the interval between two dates? dim d1 as new date (1964,7,20) dim d2 as new date (2010,7,20) dim i as integer d2-d1 // result 46 not work and gives me error Top mjh Post subject: Re: date and intervalPosted: Wed Dec 16, 2009 9:06 am Joined: Sun Feb 19, 2006 3:10 pm Posts: 490 Location: Hamburg, Germany Code:Dim Diff as Double = d2.TotalSeconds - d1.TotalSeconds _________________ Michael J. HuÃmann http://digicam-experts.de Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ]
-- 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 rbforumnotifier@monkeybreadsoftware.de