Re: Get recent time/date
- From: "MikeD" <nobody@xxxxxxxxxxx>
- Date: Sun, 25 Dec 2005 22:01:47 -0500
"Bob Butler" <tiredofit@xxxxxxxxxx> wrote in message
news:uSVF04bCGHA.2920@xxxxxxxxxxxxxxxxxxxxxxx
>> Now I don't know if this would provide any significant performance
>> improvement or not, but I would suspect it would if the recordset is
>> sufficiently large. I suppose, however, that rounding errors could be
>> a problem. Does anyone know if there's ever a problem converting a
>> date/time to a Double?
>
> VB stores datetime values as doubles so I expect it's a simple copy
> operation but why would you convert them when you can compare them
> directly?
> If anything, I'd expect that to do nothing but slow it down.
>
I'm just thinking that VB probably compares the Double data type more
efficiently than the Date date type. Maybe not. As you say, internally VB
uses Double for datetime anyway, so maybe there's no difference whatsoever.
--
Mike
Microsoft MVP Visual Basic
.
- Follow-Ups:
- Re: Get recent time/date
- From: Rick Rothstein [MVP - Visual Basic]
- Re: Get recent time/date
- References:
- Re: Get recent time/date
- From: Bob Butler
- Re: Get recent time/date
- From: MikeD
- Re: Get recent time/date
- From: Bob Butler
- Re: Get recent time/date
- Prev by Date: Re: Treeview help
- Next by Date: Re: Change Popup menu in windows explorer
- Previous by thread: Re: Get recent time/date
- Next by thread: Re: Get recent time/date
- Index(es):
Relevant Pages
|