1. to Kat

Sorry bout the personal email Kat, that was an accident.
but the point still remains, your program will not realistically run for long
enough to be worried about the time() function messing up on you.

CenSe,
a member of the
ak-software
development team

http://ak-software.virtualave.net/

new topic     » topic index » view message » categorize

2. Re: to Kat

How thankful i am to you for pointing out my mistake. Here i was so
delusional, thinking this app that's been running for 2 weeks was actually
running, now i know it's been all in my mind.

Kat

----- Original Message -----
From: CenSe <cense at MAIL.RU>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, February 04, 2000 12:17 PM
Subject: to Kat


> Sorry bout the personal email Kat, that was an accident.
> but the point still remains, your program will not realistically run for
long enough to be worried about the time() function messing up on you.
>
> CenSe,
> a member of the
> ak-software
> development team
>
> http://ak-software.virtualave.net/
>

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

3. Re: to Kat

Kat:

  Why can't you get time() and then append a number to it that represents

  the month, day and year. That would be good beyond 24 hours

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

4. Re: to Kat

----- Original Message -----
From: Bernie Ryan <bwryan at PCOM.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, February 04, 2000 1:57 PM
Subject: Re: to Kat


> Kat:
>
>   Why can't you get time() and then append a number to it that represents
>
>   the month, day and year. That would be good beyond 24 hours
>

Because then i am useing the month, day and year and don't need a flat
timescale like time().

Kat

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

5. Re: to Kat

Hello,

Bernie Ryan wrote:

>Kat:
>
>   Why can't you get time() and then append a number to it that represents
>
>   the month, day and year. That would be good beyond 24 hours


Another option might be simply to check and see if the time()
function has reset yet or not.

-- Untested code:
constant seconds_in_day = 24*60*60
atom start_time, curent_time
integer num_of_days
num_of_days = 0
start_time = time ()
while 1 do
  curent_time = time()
  if curent_time > start_time then
    -- Here would be the regular
    -- subtraction to check the time.
  else
    num_of_days += 1
    curent_time += (seconds_in_day * num_of_days)
    -- Here would be the regular
    --subtraction to check the time.
  end if
end while
-- Please excuse any errors.
-- End Code

later,
Lewis Townsend
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu