Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: utime for symbolic links

by shamlin (Initiate)
on Apr 15, 2020 at 15:19 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found