Topic: File Date/Time
Author: phalpern@truffle.ultranet.com (Pablo Halpern)
Date: 1996/05/10 Raw View
kanze@gabi-soft.fr (J. Kanze) wrote:
>In article <3184b330.2527210@newssrv.dcrt.nih.gov> may@ssims.nci.nih.gov
>(Chuck May) writes:
>
>|> Is there an ANSI C++ "standard" way of retrieving the date and time of
>|> a file? I usually use "stat", but that is not standard. Thanks,
>
>No. There are, in fact, OS's that don't maintain this information, so
>the standard doesn't require it to be made available.
There are also OS's that don't maintain a time-of-day clock, but the
time() function is standard. The same logic should apply here. If the OS
doesn't know the answer, it should return some sort of distinctive value
for the timestamp (e.g. zero). I think file timestamps would be a very
worthwhile addition to the standard library.
-------------------------------------------------------------
Pablo Halpern phalpern@truffle.ultranet.com
I am self-employed. Therefore, my opinions *do* represent
those of my employer.
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]
Author: may@ssims.nci.nih.gov (Chuck May)
Date: 1996/04/29 Raw View
Is there an ANSI C++ "standard" way of retrieving the date and time of
a file? I usually use "stat", but that is not standard. Thanks,
Chuck May
IMS, Inc.
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Author: kanze@gabi-soft.fr (J. Kanze)
Date: 1996/05/02 Raw View
In article <3184b330.2527210@newssrv.dcrt.nih.gov> may@ssims.nci.nih.gov
(Chuck May) writes:
|> Is there an ANSI C++ "standard" way of retrieving the date and time of
|> a file? I usually use "stat", but that is not standard. Thanks,
No. There are, in fact, OS's that don't maintain this information, so
the standard doesn't require it to be made available.
--
James Kanze (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
Conseils en informatique industrielle --
-- Beratung in industrieller Datenverarbeitung
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]