Re: ADO adDate Value Calculation
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Fri, 15 Dec 2006 12:32:52 -0000
I am able to calculate the number of days since December 30, 1899,
but I don't know the formula for calculating the fraction of a day.
Use floating-point
1.0 represent a whole day and fractions are from midnight, the start of a
day.
So
0.0 is 00:00:00 on a 24-hour clock
0.25 is 06:00:00 on a 24-hour clock
0.5 is 12:00:00 on a 24-hour clock
0.75 is 18:00:00 on a 24-hour clock
0.125 is 03:00:00 on a 24-hour clock
0.1 is 02:24:00 on a 24-hour clock
0.01 is 00:14:24 on a 24-hour clock
etc.
86400 seconds in a day
Stephen Howe
.
- References:
- ADO adDate Value Calculation
- From: Philip Siaw
- ADO adDate Value Calculation
- Prev by Date: Re: ADO adDate Value Calculation
- Next by Date: RE: SqlTransaction, t-sql transactions, and distributed transactio
- Previous by thread: Re: ADO adDate Value Calculation
- Index(es):
Relevant Pages
|
|