Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time Conversion using seconds from known date
Message
 
 
À
17/09/2003 16:02:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00830084
Message ID:
00830085
Vues:
16
This message has been marked as the solution to the initial question of the thread.
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!
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform