Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Perl ranges

by runrig (Abbot)
on May 06, 2013 at 20:24 UTC ( #1032396=note: print w/replies, xml ) Need Help??


in reply to Re: Perl ranges
in thread Perl ranges

stat does not stat files over FTP. You can use the Net::FTP mdtm method to get the files mtime (supposed to be UTC which may not match the date/time you see in a dir listing).

Replies are listed 'Best First'.
Re^3: Perl ranges
by Anneq (Vicar) on May 06, 2013 at 21:13 UTC

    Good catch, runrig. I only tested my code snippet locally and it didn't occur to me that I was using localtime() locally, even though the file stat info would be from another host. I'm too used to relying on my ssh configs and the command line to do things like that:

      $ ssh somedomain.com somecommand

    Running stat on the remote host would give me the remote localtime. But that's not what the OP is doing.

    Thanks

    Anne

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032396]
help
Chatterbox?
[marto]: it feels like 2 weeks :)
[Discipulus]: sane dots for your weekend marto!
[choroba]: My week was hectic as well, and so will be the next several ones...
[Corion]: Sane Dots Supplies - your brand manufacturer for satisfying experiences!
[choroba]: preparing the trip to Vietnam + buying a new car = enough fun
[Corion]: choroba: Yeah, that's a lot of "fun" for one week...
[Corion]: I guess I should stage some product photos for Sane Dots Supplies ;)
[marto]: I had some ideas about that Corion
[marto]: I'll send a message over the weekend maybe :P

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-01-20 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.