Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time Conversion using seconds from known date
Message
From
17/09/2003 16:28:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00830084
Message ID:
00830096
Views:
18
I don't know if you like beer, Sergey, but I do, and I'd like to buy you some! You are always so helpful! Thanks once again.

Andrew

>In VFP you can add (substract) seconds directly to a datetime value.
DATETIME(1970,01,01, 00,00,00) + lnSecFrom19700101
>
>>I need to convert an integer which is the number of seconds since Midnight, January 1, 1970 to a datetime. In VB there is a function, DateAdd() that will do this. Is there a function in VFP that will do a similar thing, or has somebody already coded this type of thing?
>>
>>Alternatively, what would be the easiest way to incorporate the VB function in my VFP code?
>>
>>I've inherited a project that has some serious time constraints, so any help offered will be gratefully recieved! My brain is tired...
>>
>>Thanks in advance!
On a CLEAR day you can see forever.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform