help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting timestamps


From: Geraint Paul Bevan
Subject: Re: Getting timestamps
Date: Tue, 27 Sep 2005 16:10:47 +0100
User-agent: Debian Thunderbird 1.0.2 (X11/20050817)

Madhusudan Singh wrote:

> Is there a way to read in the time stamp on any file while reading it in ?

Have a look at the "dir" command. The actual output will be system
dependent:


octave> list = dir("dummy.m")
list =
{
  bytes = 3
  date = 27-Sep-2005 16:07:49
  isdir = 0
  name = dummy.m
  statinfo =
  {
    atime = 1127833669
    blksize = 4096
    blocks = 8
    ctime = 1127833669
    dev = 774
    gid = 1000
    ino = 430197
    modestr = -rw-r--r--
    mtime = 1127833669
    nlink = 1
    rdev = 0
    size = 3
    uid = 1000
  }

}

octave> list.date
ans = 27-Sep-2005 16:07:49


-- 
Geraint Bevan
http://www.mech.gla.ac.uk/~gbevan



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]