VolatileAcid
Programmer
Hi,
got a small problem/question here with regards to getting the day of the week.
To get the day of the week I use:
$day=(Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun)[(localtime(time))[6]];
which returns the correct day of the week, however, my script needs the following library and declares:
use Time::localtime;
which causes my 'day of the week' to always be returned as sunday ?
!?
help me !
got a small problem/question here with regards to getting the day of the week.
To get the day of the week I use:
$day=(Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun)[(localtime(time))[6]];
which returns the correct day of the week, however, my script needs the following library and declares:
use Time::localtime;
which causes my 'day of the week' to always be returned as sunday ?
help me !