in reply to Re^5: Find a File in a directory
in thread Find a File in a directory

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^7: Find a File in a directory
by Corion (Patriarch) on Jun 28, 2006 at 18:01 UTC

    You want to use Time::Local to convert from the timestamp to something you can pass to POSIX::strftime().

      Hi
      Now i reached upto 70%.But need some more input,Now see my code,
      $systime = localtime($mtime); print"Systime=> $systime\n"; $now_string = strftime "%a %b %e %H:%M:%S %Y", $systime; print"New stirng=> $now_string\n";
      output:-
      Systime=> Wed Jun 28 16:35:49 2006 Usage: POSIX::strftime(fmt, sec, min, hour, mday, mon, year, wday = -1 +, yday = -1, isdst = -1) at one.pl line 46.
      When I run this code i am getting this issue,Now I want the output as New stirng=> 20060628 1635.How I can get this.Please help me.
      Thanks.

        Maybe you should try http://google.com to search for strftime format?

        Please do some work of your own instead of getting me to hand-hold you through every single step!

        I see you have posted this question separately as well and not updated your question here. You have thus wasted my time. I consider this very, very rude of you.

        A reply falls below the community's threshold of quality. You may see it by logging in.
        A reply falls below the community's threshold of quality. You may see it by logging in.