systime function

Other discussions about CSPro
Post Reply
AriSilva
Posts: 614
Joined: July 22nd, 2016, 3:55 pm

systime function

Post by AriSilva »

Hi folks,
Something very strange is happening with it:
We use to call it at the beginning of every block during a data entry program, and sometimes, we do not know why, the call returns a time which is much lesser than the previous one, with maybe two hours difference. We are passing "HHMMSS" as parameter.
Have you ever heard about that before?
Do you have any idea why this can happen? It is very rare, and most of the time (99.99%) it does the job and it works well.
Best
Ari
Best
Ari
justinlakier
Posts: 215
Joined: November 21st, 2022, 4:41 pm

Re: systime function

Post by justinlakier »

Hello,

We have not seen any issues like this before. Are you using Android or Windows? Are your tests taking place near a time zone border, with devices set to differing times, or some other potential device problems? Using timestamp may help with timezone issues as it uses UTC time. The systime function calls https://learn.microsoft.com/en-us/cpp/c ... w=msvc-170, which uses device time.

Thank you,
Justin
Post Reply