Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: utime for symbolic links

by shamlin (Initiate)
on Apr 15, 2020 at 15:19 UTC ( #11115577=note: print w/replies, xml ) Need Help??


in reply to Re: utime for symbolic links
in thread utime for symbolic links

Your example sets the atime/mtime to current time. I need to set the atime and mtime of the link to a specific value. I updated my question to be more clear.

Replies are listed 'Best First'.
Re^3: utime for symbolic links
by hippo (Bishop) on Apr 15, 2020 at 15:34 UTC

    The documentation seems clear enough, no?

    atime => $time
    
        If defined, use this time (in epoch seconds) instead of current time for access time.
    
    mtime => $time
    
        If defined, use this time (in epoch seconds) instead of current time for modification time.
    
    
      But it changes the atime and mtime of the linked file, not the link itself.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-10-26 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?