Creating GMTTime object
Creating GMTTime object
(OP)
I want to compare a GMTtime object that is read in from string format with the current system GMT Time.
The current GMT Time is gmttime time
But I have trouble creating a GMT Time object from a string
dd mm yy
anyway, I have $dd, $mm and $yy initialised accordingly where $dd=1-31;
$mm=1-12
$year= 1900-20xx;
Tried $myTime=gmtime($dd,$mm,$year);
but run time error saying wrong number of arguments to gmttime? tried $myTime=gmtime(0,0,0,$dd,$mm,$year);, but no luck either!
The current GMT Time is gmttime time
But I have trouble creating a GMT Time object from a string
dd mm yy
anyway, I have $dd, $mm and $yy initialised accordingly where $dd=1-31;
$mm=1-12
$year= 1900-20xx;
Tried $myTime=gmtime($dd,$mm,$year);
but run time error saying wrong number of arguments to gmttime? tried $myTime=gmtime(0,0,0,$dd,$mm,$year);, but no luck either!
RE: Creating GMTTime object
read the 'perldoc Time::Local' docs to learn how to use it - they're pretty straight forward and easy to read.
"If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."