Timestamps - Yosemite Help Needed

Discussion in 'Mac Basics and Help' started by djmoode, Sep 10, 2015.

  1. djmoode macrumors newbie

    Joined:
    Sep 10, 2015
    #1
    September 10, 2015

    Hello. I received some files and cannot find out when they were first created, when last saved, etc. prior to sent to me via email. I am on OS X Yosemite, CONTROL+I only gives the date I dragged to my desktop, CONTROL+CLICK VIEW OPTIONS not help, TERMINAL tricks dont work...

    Can anyone help me if I sent it to you??? Or is there a FREE simple program/app I can use.

    Again, I was sent a file via email. Even in email (before dragging to desktop) I cannot CONTROL+I it.

    THANK YOU - RICHARD
     
  2. ocabj macrumors 6502a

    ocabj

    Joined:
    Jul 2, 2009
    #2
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/stat.1.html
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/stat.2.html

    Code:
    ocabj@mba:~$ stat file.txt
    stat: file.txt: stat: No such file or directory
    ocabj@mba:~$ touch file.txt
    ocabj@mba~$ stat file.txt
    16777220 3755366 -rw-r--r-- 1 ocabj staff 0 0 "Sep 10 22:26:12 2015" "Sep 10 22:26:12 2015" "Sep 10 22:26:12 2015" "Sep 10 22:26:12 2015" 4096 0 0 file.txt
    ocabj@mba:~$ echo 'something' >> file.txt
    ocabj@mba:~$ stat file.txt
    16777220 3755366 -rw-r--r-- 1 ocabj staff 0 10 "Sep 10 22:26:12 2015" "Sep 10 22:26:28 2015" "Sep 10 22:26:28 2015" "Sep 10 22:26:12 2015" 4096 8 0 file.txt
    ocabj@mba:~$ echo 'else' >> file.txt
    ocabj@mba:~$ stat file.txt
    16777220 3755366 -rw-r--r-- 1 ocabj staff 0 15 "Sep 10 22:26:12 2015" "Sep 10 22:26:38 2015" "Sep 10 22:26:38 2015" "Sep 10 22:26:12 2015" 4096 8 0 file.txt
    ocabj@mba:~$ cat file.txt
    something
    else
    ocabj@mba:~$ stat file.txt
    16777220 3755366 -rw-r--r-- 1 ocabj staff 0 15 "Sep 10 22:26:52 2015" "Sep 10 22:26:38 2015" "Sep 10 22:26:38 2015" "Sep 10 22:26:12 2015" 4096 8 0 file.txt
    struct timespec st_atimespec; /* time of last access */
    struct timespec st_mtimespec; /* time of last data modification */
    struct timespec st_ctimespec; /* time of last status change */
    struct timespec st_birthtimespec; /* time of file creation(birth) */
     

Share This Page