On Dec 9, 2006, at 6:14 PM, Michael wrote:

Hi All,
I have looked at the discussions about totalseconds, but have this question. I wish to capture the totalseconds of a date AND time so that I can differentiate between 08:00 am and 09:00 am (for example) on the same date. Parsedate, as far as I can tell, will only parse a string with a date, but no time. It is easy to add in those extra seconds for the correct totalseconds, but is this the way to do it, or is there a function that will do it for one.

You basically have to create your own code to parse the time as the ParseDate Function will only return a value of 0 hours, 0 minutes and 0 seconds for that date.

I also found it easier to parse everything myself to avoid the differences in the International settings that the user may have on their computer.

There are no built-in routines to do this in Rb but it also isn't all that hard to do it yourself.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to