Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 12
  1. #1
    Sunnz's Avatar
    Sunnz is offline Who wants a stylus?
    Join Date
    Nov 2005
    Location
    Canberra, Australia
    Posts
    377
    Thanks
    4
    Thanked 1 Time in 1 Post

    Change timestamp?

    What timestamps are kept for files? Creation time, access, modify times??

    I am wondering, how do I change these times for a particular file.

    What I want to do is to create a new file B, that has the same timestamps as file A... and I don't mind if this needs to be done via the terminal.

    Thanks.

    Core 2 Duo 2.4Ghz, OSX 6.2
    Opteron 2.6Ghz, Fedora 12 Constantine / OpenBSD 4.6-stable

  2. #2
    Thank The Cheese is offline Registered User
    Join Date
    Sep 2005
    Location
    Australia
    Posts
    771
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello Sunnz,

    This may not do exactly what you need, but I found this little app (attached) that allows you to change the created/modified date on a file. Place the app anywhere, then drag and drop the file you want to change the date of on top of the app icon. You should then get a pop up box asking for the new date/time.

    Worked for me
    Attached Files Attached Files
    Podwatch: Podcast Reviews: Blog | Podcast

    iPhone: 8GB, 1.1.3, Unlocked | MacBook Pro: 2Ghz CoreDuo, 2GB RAM, OS X 10.5.2 | Apple TV: 160GB

  3. #3
    nixgeek's Avatar
    nixgeek is offline Mac of the SubGenius! :-)
    Join Date
    Jan 2004
    Location
    Miami, FL
    Posts
    8,593
    Thanks
    32
    Thanked 157 Times in 141 Posts
    I know that in Linux there's a command called "touch" that updates the timestamp to the current date. I have never checked to see if it exists in OS X.
    Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.5.8/Ubuntu 10.04
    Asus Eee PC 901 (1.6 GHz Atom N270) - Fedora 13
    Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
    "JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 13.1

  4. #4
    barhar is offline Registered User
    Join Date
    May 2005
    Posts
    1,339
    Thanks
    0
    Thanked 7 Times in 7 Posts
    '... in Linux ' (derived from UNIX) is '"touch" that updates the timestamp to the current date. I have never checked to see if it exists in OS X.' - launch 'Terminal' ('/Applications/Utilities/' folder), enter 'man touch', and press the <return> key.

  5. #5
    Sunnz's Avatar
    Sunnz is offline Who wants a stylus?
    Join Date
    Nov 2005
    Location
    Canberra, Australia
    Posts
    377
    Thanks
    4
    Thanked 1 Time in 1 Post
    Ahh, I always thought touch was only used to create a file!! Cool, I'll tried it!! Thanks!!!

    Core 2 Duo 2.4Ghz, OSX 6.2
    Opteron 2.6Ghz, Fedora 12 Constantine / OpenBSD 4.6-stable

  6. #6
    nixgeek's Avatar
    nixgeek is offline Mac of the SubGenius! :-)
    Join Date
    Jan 2004
    Location
    Miami, FL
    Posts
    8,593
    Thanks
    32
    Thanked 157 Times in 141 Posts
    Quote Originally Posted by Sunnz View Post
    Ahh, I always thought touch was only used to create a file!! Cool, I'll tried it!! Thanks!!!
    Touch can create a file (learned about it through the Linux Reality podcast....good even for a long-time user like myself ), but it can also update the timestamp of a file.
    Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.5.8/Ubuntu 10.04
    Asus Eee PC 901 (1.6 GHz Atom N270) - Fedora 13
    Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
    "JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 13.1

  7. #7
    nixgeek's Avatar
    nixgeek is offline Mac of the SubGenius! :-)
    Join Date
    Jan 2004
    Location
    Miami, FL
    Posts
    8,593
    Thanks
    32
    Thanked 157 Times in 141 Posts
    Quote Originally Posted by barhar View Post
    '... in Linux ' (derived from UNIX) is '"touch" that updates the timestamp to the current date. I have never checked to see if it exists in OS X.' - launch 'Terminal' ('/Applications/Utilities/' folder), enter 'man touch', and press the <return> key.
    True, I could have done that....I usually do. I just recently learned about touch though and haven't bothered to check on my Mac since I haven't had the need to use it there.
    Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.5.8/Ubuntu 10.04
    Asus Eee PC 901 (1.6 GHz Atom N270) - Fedora 13
    Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
    "JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 13.1

  8. #8
    Sunnz's Avatar
    Sunnz is offline Who wants a stylus?
    Join Date
    Nov 2005
    Location
    Canberra, Australia
    Posts
    377
    Thanks
    4
    Thanked 1 Time in 1 Post
    Quote Originally Posted by nixgeek View Post
    Touch can create a file (learned about it through the Linux Reality podcast....good even for a long-time user like myself ), but it can also update the timestamp of a file.
    Wow thanks for the site? May I ask which ep talks about touch? Shell command one?

    Core 2 Duo 2.4Ghz, OSX 6.2
    Opteron 2.6Ghz, Fedora 12 Constantine / OpenBSD 4.6-stable

 

 
Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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