Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving the current date/time from a server
Message
 
 
À
11/10/1999 16:36:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00275100
Message ID:
00275442
Vues:
24
>>Is there a way to get the current date/time from the server where a VFP application is running from? The VFP date(), time(), datetime() functions all return the date/time from the workstation. I need to be able to get the time from the server where the program is running from. I also need to be able to do it for both NT and Novell servers.
>>
>>Any suggestions would be appreciated.
>
>Here is a program I wrote for this occasion:
>
>

>#DEFINE _SERVER "svrsbdell1"
>#DEFINE _PATH "storage"
.
.
.
>THis actually returns a DateTime... also, the user must have full access to the path you specify for it to work... It uses an 8.3 file name so it will [should] work fine on a Novel Server.
>
>Bob

Bob you are the man. I am using this now for date more than time but its still a great contribution to the UT! Thanks.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform