Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting Variant time to System time
Message
From
26/12/2001 05:55:31
 
 
To
26/12/2001 05:42:31
Bhavesh Desai
Apex Softcell (India) Pvt. Ltd.
India
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00598098
Message ID:
00598116
Views:
17
Hi!

Try:

? {01/01/1900 00:00:00} + 37248.6290509259 * 3600 * 24

The integer part of the number you see is a number of days passed since 01/01/1900. The fractional part is a number that represents a part of the day to represent time. Adding the number to any datetime value in VFP is adding of a second to it. So we need to multiply your value to number of seconds in the day and just add it to the "zero" datetime value, as in the sample above.

HTH.

>What i mean is that in certain application like vb or delphi the datetime is stored as 37248.6290509259 where 37248 represents the date and the part after the decimal point the time. Could you please tell me how I can convert it back to datetime value
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform