Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How is SYS(2015) calculated? 3

Status
Not open for further replies.

jackieinpa

Programmer
Feb 12, 2016
3
US
I know it's a representation of the system date and time, but how exactly is the value generated? Does anybody know? Thanks!
 
dashrader,

VFP makes note of the latest timestamp generated and if systemtime conversion results in the same or a lower value than that, increments its max memorized value instead.
I think that's much simpler, (besides lower systemtimes should only happen if someone or something sets system time back, eg time server syncing). This way also "autosyncs" with the simple time conversion after a short while of not using the function, when the value computed from system time simply got bigger than what was last returned.

All this doesn't prevent double generated values from different systems, which is the risc of it.

Bye, Olaf.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top