Re: Timer interval limitation

From: Ralph (nt_consulting32_at_hotmail.com)
Date: 02/27/04


Date: Fri, 27 Feb 2004 09:03:11 -0600


"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:Ov%23TLAU$DHA.320@TK2MSFTNGP10.phx.gbl...
> "Ralph" <nt_consulting32@hotmail.com> wrote
> > Any timer routine you chose that uses a 'get current time' (Now, ...) to
> > compare to some start or previously fetched time - will likely develop
> > problems around midnight.
> >
> > Always add a special case for midnight.
>
>
> A date type holds a date as well as time. If both are recorded and used,
> there is no trouble with midnight.
>
> LFS
>

Yep.

IF both are recorded and 'full date' VB routines are used. Unfortunately
that 'if' is often not taken into consideration. Any routine that is
expected to work pass midnight should be tested for 'midnight' - if OK, then
fine, no additional code is needed.

The programmer that doesn't validate for midnight for his particular timer
does so at his (or rather his client's) perl.

-ralph



Relevant Pages

  • Temporarily redirecting STDOUT
    ... I'm writing some Perl routines on Windows 2000. ... routines calls RCS functions like this: ...
    (comp.lang.perl.misc)
  • Re: PerlRL 0.1
    ... The first version of my Perl roguelike engine ... > but Perl can be a cryptic language and I'm not an expert. ... Areas contains routines that place and connect new rooms and hallways on ... Characters' routines aren't too important, ...
    (rec.games.roguelike.development)
  • Re: Timer interval limitation
    ... > IF both are recorded and 'full date' VB routines are used. ... You are setting an "interval" timer, ... Private Sub Command1_Click ... TimeIsUp = DateAdd ...
    (microsoft.public.vb.general.discussion)
  • Re: Learning Perl
    ... I have written a routines in Perl that accesses MySQL (to create a ... The code may bay help you. ... Useful Tools in Perl. ... NB there is no programmed help! ...
    (perl.beginners)
  • Re: Compiling/using socket client and server
    ... I'm aware of Perl. ... I am using a higher level language ... That's why I need to know how to compile this ... >> open source, skunkware, or commercial routines out ...
    (comp.unix.sco.misc)