in reply to Finding the Day of Week in Windows

The reason it was printing in numbers is because you weren't printing it in scalar context. Try:
$time = scalar localtime; $day = substr($time, 0,3); print $day;

If it's printed without scalar context, it gives a list of values in the format:

See the documentation page on localtime() for more info.