in reply to Between Two Times??? Help!
For the first one, you could simply do this:
You could have a look at Date::Manip or Time::Local for help in converting dates to timestamps.#!/usr/bin/perl -w use strict; my $Cut_Off = time - ( 24 * 60 * 60); my $First_Sign_In = 1; #some function to get the timestamp - see modul +e suggestions later if ($First_Sign_In > $Cut_Off) { print "Welcome\n"; } else { print "Sorry, you need to contact me\n"; }
The second part of your node - did something happen between two dates, can be solved with the following pseudo code:
I hope this helps - cheers L~R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Between Two Times??? Help!
by ACJavascript (Acolyte) on Mar 22, 2003 at 16:45 UTC | |
by Limbic~Region (Chancellor) on Mar 22, 2003 at 17:05 UTC |