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.
In reply to Re: Between Two Times??? Help!
by Limbic~Region
in thread Between Two Times??? Help!
by ACJavascript
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |