[SAGA-RG] missing(?) method reporting last modification time
Andre Merzky
andre at merzky.net
Tue Jun 2 07:10:32 CDT 2009
Quoting [Steve Fisher] (Jun 02 2009):
>
> If any of the time functions are needed then we should provide them
> all. I presume that they are supported by all known operating systems?
> If not this would be a good reason to limit to the universally
> supported ones.
It seem posix defines
(http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/stat.h.html)
time_t st_atime Time of last access.
time_t st_mtime Time of last data modification.
time_t st_ctime Time of last status change.
st_birthtime/st_btime seems to be an BSD extension, AFAICS,
so we may want to skip this one. It falls back to ctime
though, if the system does not support it.
This is POSIX, however, and, as Sylvain said, not many
middleware implementations will support the full set.
Best, Andre.
> 2009/6/2 Andre Merzky <andre at merzky.net>:
> >
> > Dear Sylvain,
> >
> > Quoting [Sylvain Reynaud] (Jun 01 2009):
> >>
> >> Andre Merzky a écrit :
> >> >So, would something like
> >> >
> >> > get_atime ()
> >> > get_mtime ()
> >> > get_ctime ()
> >> > get_btime ()
> >> >
> >> >work for you folx? I realize that this differs from what
> >> >Sylvain's group added to JSAGA... :-/
> >> >
> >> Dear Andre,
> >>
> >> I think this is not so different from what we added, it is rather more
> >> comprehensive.
> >
> > Right.
> >
> >
> >> The reasons why we implemented only the "get_mtime" are:
> >> * many (most ?) protocols provide only 1 date (last modified).
> >> * our users were only lacking the last modification date.
> >
> > Good reasons IMHO. If everybody agrees on it, then we might
> > indeed want to limit the change to mtime only. However, I
> > really would hate to come back to the topic a year later to
> > add one attribute, and another year later for the next one,
> > etc ;-)
> >
> > Lets see what the others think..
> >
> > Thanks, Andre.
> >
> >
> >
> > --
> > Nothing is ever easy.
> > --
> > saga-rg mailing list
> > saga-rg at ogf.org
> > http://www.ogf.org/mailman/listinfo/saga-rg
> >
--
Nothing is ever easy.
More information about the saga-rg
mailing list