在应用程序中实现到期日期? [英] Implementing Expiration Dates in an application?

查看:179
本文介绍了在应用程序中实现到期日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我制作的某个软件中设置过期日期。显然

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

psuedocode:

psuedocode:

if time() > xxx: exit()

所有人必须在这里设置系统时钟。最好做什么?

All someone has to do here is set their system clock back. Anything better to do?

推荐答案

更方便用户的是跟踪用户使用您的软件。例如,每次程序启动时,您都可以将日期写入加密文件(除非文件中已经存在日期)。然后,一旦文件中有超过30个日期,让用户知道是时候购买完整版了。

What would be more user friendly is to keep track of the number of days a user has used your software. For example, each time your program starts up you could write a date to an encrypted file (unless the date already exists in the file). Then once there are more than, say, 30 dates in the file, let the user know it is time to buy the full version.

这篇关于在应用程序中实现到期日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆