
August 2nd, 1999, 03:28 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
From a previous posting I have tried the following code for getting the date:-
$date_read = localtime;
I split the date up as follows:-
($day,$month,$date,$time,$year) =
split(/ /,$date_read);
This worked fine on Friday's 2 digit date.
Why then does it not like it today.
Today's values are:-
$day = Mon
$month = Aug
$date = (blank!)
$time = 2
$year = current time
What's happening? - Anyone please.
(time passed)
Found what was wrong!!!!!
On Friday's 2 digit date there was 1 space in front of 30. Today's 1 digit date has an extra space- thus putting my split fields into the wrong place.
_____________________________________
[This message has been edited by Simon Rickell (edited 08-02-99).]
|