Link to home
Start Free TrialLog in
Avatar of zolpo
zolpo

asked on

Controlling the system's time

Hi!

I am writing an application that takes the system time and does some caculations. The app will calculate how much time the employee was at work.

The app will be installed on one PC. The app generaly has two bottons; "In" "Out". Every morning the employee will enter his name and will click the IN bottun. And at the end of his work he will click OUT.

The app will work on win9x nt and xp

The problem is that if the user will be able to change the system's time than the app is worthless.

How do I overcome that?

(Please don't tell me "atomic clock" since the pc is not connected to the Internet. also hiding the clock can be unhide or can be changed with time command)
ASKER CERTIFIED SOLUTION
Avatar of DaVx0r
DaVx0r

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zolpo
zolpo

ASKER

Thanks DaVx0r!

Visual Basic 6

Your comment is interesting. I will appreciate your snippets too.



SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zolpo

ASKER

RocketMan801!

Thank you so much for your brilliant contribution!

I can think now on a program that runs on the taskbar and calculate the variables you figured.

But some questions are left: What if the employee will close the app, change the clock than fire it up etc? Or accidently someone close the app or system crash etc. How do I maintain these situations? Not mention when there are 10 employees, should I fire up 10 timers?

BTW sometimes we can involve some DB consistency here; since every record has its time stamp, when a NEW record is older than an OLDER one there is a cheat here... probably.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zolpo

ASKER

RocketMan801 thank you again.

I will be back in a few hours.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zolpo

ASKER

jhurst!

"personally I would purchase some type od devices that could be attached to the computer that has a readable clock."

Can you please be more specific;  can you supply some links to external (or internal) devices which will handle the system's clock.

Thanks.
Avatar of zolpo

ASKER

cookre!

I like your link. Give me please some time to learn it.

Ksproule!
Thanks.

But when the PC stands alone we cannot use it. Thank you again for that briliant solution!!!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zolpo

ASKER

Thank you for your help.

The points allocated accourding to your participation.