Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get date from time server
Message
De
18/04/2013 16:32:04
 
 
À
18/04/2013 16:12:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01571413
Message ID:
01571417
Vues:
62
>Hi Folks
>
>Does anyone have a simple piece of FoxPro code to ask a time server for the current date?

Current versions of Windows do that automatically and in effect cache it locally. So from within VFP you can just use DATE() or DATETIME(). Windows even converts the time it receives from time server(s) to your selected time zone.

Is there a particular reason you want to directly query a time server?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform