> How can i get the number of the week from localtime function ?
- feed localtime with "january 04" in this year (for ISO 8601)
- find out when that week begins;
- find out the difference between today and that day;
- divide that by seven days (and add one).
Or, use a date module:
use Date::Tie
hi dear.
you can use gmtime...it get many thing to you.
$sec,$min,$hour,$mday,$mon,$year,$wday,$yday) =
gmtime(time);
be success.
but why do youlike to use local time ??
thx.
Best regards. Nafiseh Saberi
www.ir