Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting system Date and Time
Message
De
01/10/1997 19:24:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00052546
Message ID:
00052775
Vues:
42
>>>>Is there a method for setting the system date and/or time from a VFP application?
>>>>
>>>>Any help greatly appreciated
>>>>
>>>>Joao Pinheiro
>>>>pinetree@mail.telepac.pt
>>>
>>>Joao,
>>>
>>>If you wish to change the values being returned from the computer with date() and time(), you can do it with a batch file which calls the DOS date and time commands. These will re-set the computer's values until you re-boot. AFAIK if you want to change the values permanently you will have to use the computer's own setup command when booting.
>>
>>If you change the computer's date/time (using the DATE/TIME DOS commands, SetLocalTime() Win32 API function or in any other way), this is "forever".
>>
>>I never saw a computer that knows how to revert to a default time/date when is rebooted.
>>
>>Vlad
>
>Vlad,
>
>If the computer is attached to a network, the computers date and time reverts to the networks system date and time when logging in.

You're right for some networks types. Although, this is not a default setting, but set by the network admin. Also, changing the date/time in the computer's setup, doesn't change anything (ie this is not related to the computer's setup or type).

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform