Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    London
    Posts
    76

    Unanswered: year day of file

    Hi,

    Any suggestion on how I would get the year day of a file?

    Have tried stat [7] but I get the wrong date, in fact this wrong date is what I get for all files in a folder!

    Have tried the following:
    my ($fsec,$fmin,$fhour,$fmday,$fmon,$fyear,$fwday,$fy day,$isdst)=localtime(stat($directory));
    where $directory is the file but I get 56,7,21,13,11,70,0,346 when the modified date of the file is 13/12/2006 14:31! Any help would be much appreciated...

  2. #2
    Join Date
    Feb 2006
    Posts
    56
    my $yday = (localtime((stat($directory))[10]))[7];

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •