From c828e2bb39f711c82c3b816f57ddde9ab29bdb20 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2015 17:27:25 +0200 Subject: Move path_mtime to filesystem, rename file_mtime, follow symlinks --- butl/timestamp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'butl/timestamp') diff --git a/butl/timestamp b/butl/timestamp index 76df07b..f397dc6 100644 --- a/butl/timestamp +++ b/butl/timestamp @@ -6,7 +6,6 @@ #define BUTL_TIMESTAMP #include -#include #include #include @@ -34,21 +33,19 @@ namespace butl using timestamp = system_clock::time_point; using duration = system_clock::duration; + // Generally-useful special values. + // const timestamp timestamp_unknown {duration {-1}}; const timestamp timestamp_nonexistent {duration {0}}; + // Human-readable representation. Note that these operators + // may throw std::system_error. + // std::ostream& operator<< (std::ostream&, const timestamp&); std::ostream& operator<< (std::ostream&, const duration&); - - // Returns timestamp_nonexistent if the entry at the specified path - // does not exist. All other errors are reported by throwing - // std::system_error. - // - timestamp - path_mtime (const path&); }; #endif // BUTL_TIMESTAMP -- cgit v1.1