Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private Clock
Message
De
20/07/2009 03:24:32
 
 
À
19/07/2009 13:06:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01412838
Message ID:
01413342
Vues:
60
>>>>Hi All:
>>>>
>>>>I am writing an time-card app that is time-sensitive. My client does not want to use the system clock, since it has no security and any of his workers could simply change the time. He wants me to provide him with a time clock app (based presumably on the timerr class) that would be password protected.
>>>>
>>>>Is there anything like this out there, or do I have to code it myself? How would the one time card EXE retrieve the time from the time-clock EXE?
>>>>
>>>>Thanks,
>>>>
>>>>Yossi
>>>
>>>You can query a public atomic time NTP service.
>>
>>Assuming you have internet access :-}
>>Alternatively , if the computer is part of a network. you could pull in the time from a domain server (or any other computer that is accessible on the network). You could use this directly or to reset the local computer time
>
>OK, I've spoken to my client and he wants to query a webservice clock (is that the same as a 'NTP' service??)

Not the same. NTP is a seperate internet protocol

>I once coded for a web service, but I've since forgotten. Could you give me some resources? What files do I need to transfer to my client in order for this to work? How reliable is http://developer.yahoo.com/util/timeservice/V1/getTime.html?

Hi,
No experience with this service but I note that it limits the frequency with which it can be accessed. In practice I think most services do this so, depending on how intensely the application is used, getting the time directly from an Internet server every time someone clocks in or out may not be practical. If the workstation is part of a network then the best compromise may be to get the time from another machine each time it is needed and to update that machine from the internet every, say, couple of hours.

Foxpro code for the NetRemoteTOD API suggested by Chuck is here:http://support.microsoft.com/kb/249716

A possible time source for your own time server might NTP from one of the NIST time servers. Information and a simple piece of public domain software to sync the clock automatically at a specified interval here:http://tf.nist.gov/service/its.htm

HTH,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform