in reply to Re: Between Two Times??? Help!
in thread Between Two Times??? Help!

Very interesint,,,,

Is there any way of doing this without using modules?

Replies are listed 'Best First'.
Re: Re: Re: Between Two Times??? Help!
by Limbic~Region (Chancellor) on Mar 22, 2003 at 17:05 UTC
    ACJavascript,
    It is trivial to do the less than 24 hours thing. Just store the value in timestamp format when the person logs in and retrieve it later ($first_logon = time;). That way you can retrieve it when you are determining the cut off. As far as converting a date into a timestamp - yes it is possible without modules or the module itself wouldn't be possible. Date::Manip is very fast because it uses a C backend. Time::Local basically just uses convergence by guessing at the time and then lowering/highering values until it locks in on its target. It also uses a cache to make repeated checks of the same month faster, so I wouldn't suggest re-inventing these wheels.

    Cheers - L~R