Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate a numeric value between to datetime fields
Message
From
18/02/2003 05:14:35
Liam O'Hagan
O'Hagan Programming Ltd
Ireland
 
 
To
18/02/2003 04:41:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00754374
Message ID:
00754380
Views:
17
Hi Koot,

Based on your values, EndTime - StartTime will return 34200 which is the time difference expressed in seconds. To express it as 9.5 (which is the number of hours) you need to divide by 3600 (60 seconds * 60 minutes).

Eg (EndTime - StartTime) / 3600 = 9.5

Regards,

Liam



>Can any body help with the above for a timesheet input.
>eg.
>StartTime = 02/18/2003 07:00:00
>EndTime = 02/18/2003 16:30:00
>EndTime - StartTime = 9.50
>
>Thanx
Liam O'Hagan
MCP VFP Desktop Apps
Previous
Reply
Map
View

Click here to load this message in the networking platform