in reply to Why is my script giving the year as 19100?

As mentioned above, the value returned is the number of years since 1900. To find the 'real' year you need to add 1900 to the year returned by localtime.

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(ti +me); $year = $year + 1900;

Hope that helps

M

K.I.S.S