Boost logo

Boost Users :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-05-11 09:08:14


At 07:23 AM 5/10/2003, Beman Dawes wrote:
>At 11:21 AM 5/9/2003, Ben Hutchings wrote:
>
> >> What to do if the filesystem doesn't attach any time at all to
> >> a file? Fail at compile time? Always return some date in the
> >> past, like January 1, 1900, that is impossible as a real mdate
> >> (since computers were not invented yet) and so can be relied
> >> upon to indicate "no date available"?
> >
> >Use std::time_t(-1) to be consistent with std::time and
> >std::mktime.
>
>Makes sense.

OK, a last_write_time() function has been added to CVS. See operations.hpp
docs.

Thanks for the suggestions!

--Beman


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net