Converting time!

  • Thread starter Thread starter Floyd Forbes
  • Start date Start date
Is it possible to make e.g 8:00 - 8:07 to 8.00, 8:08-8:22 to 8.25, 8:23-8:36
to 8.50.
I'm trying to .25,.50,.75.

Floyd
 
?Round(#8:07# * 96) / 4
8

?Round(#8:08# * 96) / 4
8.25

?Round(#8:07# * 96) / 4
8

?Round(#8:08# * 96) / 4
8.25

Check your boundary conditions. I think it should be 8:23 to 8:37 for the
0.5.
 
Is it possible to make e.g 8:00 - 8:07 to 8.00, 8:08-8:22 to 8.25, 8:23-8:36
to 8.50.
I'm trying to .25,.50,.75.

Try converting to an integer number of quarter-hours and then
dividing:

CInt(CDbl(TimeValue([timefield])) * 96))/4.
 
Back
Top