Implementing Expiration Dates in an application?

后端 未结 7 1181
轻奢々
轻奢々 2021-01-21 08:25

I\'d like to put an expiration date in some software I made. Obviously

psuedocode:

if time() > xxx: exit()

All someone has to do he

相关标签:
7条回答
  • 2021-01-21 09:21

    The solution doesn't need to be perfect, it just has to be annoying enough to the user so he won't try to game the system.

    You could calculate the aboslute value's difference and make sure that it is smaller than X days. In that way, they would need to always keep their clock within X days. Which no one would ever do forever.

    0 讨论(0)
提交回复
热议问题