According to some previous answers to my questions about performing arithmetic operations on dates and times, the fractional part of a date (cfloat[now] - fix[cfloat(now)]) represents the time of day and the integer part (fix[cfloat(now)]) represents the number of days elapsed since the beginning of time.
So if it's 12:00 PM then cfloat(now) should display x.5, meaning half the day has passed. If I enter ?cfloat(now) in the immediate window I get something like 2487839.71017654 even though it's 10:02 PM. If x.0 is midnight, x.5 is noon, etc., how is x.7 10:00 PM? Shouldn't 10:00 PM be something closer to x.916666674? I thought at first it was because I was scaling time, but the immediate window proved that wrong (immediately!). Any insight appreciated as always. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: [email protected] phone: (770) 853-6271 ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
