diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-18 13:19:13 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-08-18 12:22:47 +0200 |
commit | b886dfae4d4a4d5ca49fd1323e18bae0e78dfab1 (patch) | |
tree | dae868d33c44c9c411d6ab7d94b1738f13dd7d37 /src/db/LightSong.hxx | |
parent | 902fbb33471b07c3ab9bf62d13927f2db46e35f5 (diff) |
DetachedSong, db/LightSong, db/simple/Song: use std::chrono::system_clock::time_point
Diffstat (limited to 'src/db/LightSong.hxx')
-rw-r--r-- | src/db/LightSong.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/db/LightSong.hxx b/src/db/LightSong.hxx index 599acba54..1b89fc9ad 100644 --- a/src/db/LightSong.hxx +++ b/src/db/LightSong.hxx @@ -24,8 +24,7 @@ #include "Compiler.h" #include <string> - -#include <time.h> +#include <chrono> struct Tag; @@ -62,7 +61,11 @@ struct LightSong { */ const Tag *tag; - time_t mtime; + /** + * The time stamp of the last file modification. A negative + * value means that this is unknown/unavailable. + */ + std::chrono::system_clock::time_point mtime; /** * Start of this sub-song within the file. |