Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datetime - datetime
Message
From
23/01/2001 02:31:15
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00467137
Message ID:
00467150
Views:
14
>>I am substracting two datetime values which gives a datetime. Now, with that value, I want to convert that in how many days and how many hours. Is there a function somewhere to do that?
>
>Two datetimes gives you a result in seconds, not a datetime.
>
>seconds = datetime1 - datetime2
>
>days = INT(seconds) / 86400
>
>hours = INT(seconds-86400*days) / 3600

How would I go for the minutes?

I can't seem to find the proper formula.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform