dbTalk Databases Forums  

Unix DateTime to VFP DateTime

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Unix DateTime to VFP DateTime in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Confused
 
Posts: n/a

Default Unix DateTime to VFP DateTime - 04-21-2004 , 04:33 PM






Been fussing with this a while and am stuck Could really use code sample.

I have a Unix time value of 1081954800 which actually translates to Wed, 14
Apr 2004 15:00:00 UTC.

Using Excel I can get it to convert by this formula:
=UnixValue/86400+"1/1/70"
then formatting as date...

but VFP has no way of converting the resulting serial number (38091.625) to
a DateTime value like Excel....or does it?

Any help is appreciated, in a pinch so may cross post apologize in advance.





Reply With Quote
  #2  
Old   
Confused
 
Posts: n/a

Default Re: Unix DateTime to VFP DateTime - 04-23-2004 , 02:54 PM






Nevermind I got it.

"Confused" <Sorry (AT) TooManyViruses (DOT) com> wrote

Quote:
Been fussing with this a while and am stuck Could really use code sample.

I have a Unix time value of 1081954800 which actually translates to Wed,
14
Apr 2004 15:00:00 UTC.

Using Excel I can get it to convert by this formula:
=UnixValue/86400+"1/1/70"
then formatting as date...

but VFP has no way of converting the resulting serial number (38091.625)
to
a DateTime value like Excel....or does it?

Any help is appreciated, in a pinch so may cross post apologize in
advance.







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.