1. Re[2]: Get time difference without time()

Sorry, I didnt mean that scenario. I just want to do like this

x = thefunction()
.. do something here ...
timeelapsed = thefunction() - x

I can do that with time(), but I dont want to use time().

L> Let me guess, You are wanting to do this to prevent the
L> following scenario:

L> Joe Blow downloads your shareware (time-limited) software.
L> Joe Blow sets his computer clock to 5 years ahead.
L> Joe Blow installs your software.
L> Joe Blow sets his computer clock back to normal time...
L> ... thus defeating your time-limit.

L> The truth is, I think the user can change any time that you
L> can check with your program. However, if you use date() then
L> check to make sure that your saved-time is actually AFTER
L> the current time, that should prevent Joe Blow from
L> preventing you from preventing him from using your software
L> more than the specified amount of time.

L> Am I wrong... anyone?
L> Lewis Townsend

new topic     » topic index » view message » categorize

2. Re: Re[2]: Get time difference without time()

On Thu, 15 Mar 2001, you wrote:
> 
> 
> Sorry, I didnt mean that scenario. I just want to do like this
> 
> x = thefunction()
> ... do something here ...
> ttimeelapsed = thefunction() - x
> 
> I can do that with time(), but I dont want to use time().
> 

OK, I guess it's up to me to ask the obvious question:
What's wrong with time()? It's not good for more than 24 hours,
will your function take longer than that?

Irv

new topic     » goto parent     » topic index » view message » categorize

3. Re[2]: Get time difference without time()

> I would go so far as to record latest date AND time... if the date/time ever
> falls behind the recorded one, WHAMMO!!! Instant Hard drive vaporization!!!!

People do reset there clocks for legitimate reasons, shareware should
not disable itself permanently just because the date seems to have
fallen back (although it probably should refuse to work until the date
is ok again), you'll lose more registrations then you gain.

I know (I hope anyway) you where joking about the hard drive
vaporization :) I very much doubt anyone would use the software once
it got out that it carried a piece of code like that ;)

Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu