#include <SLFile.hpp>
Collaboration diagram for SLFile::Timestamp:
Public Member Functions | |
Timestamp (time_t unix_tstamp) | |
Timestamp (const char *char_tstamp) | |
bool | operator== (Timestamp &other) |
const char * | to_cstr () |
time_t | to_time_t () |
Protected Attributes | |
time_t | _unix_tstamp |
timestamp of last file modification | |
char | _char_tstamp [13] |
13 is my personal heuristic for max time length ;) |
|
This constructor accept a unix time stamp (number of seconds since the epoch) |
|
This constructor accept a char* string (UTF8 or not) that contains only numbers. It should has been obtained via Timestamp::to_cstr(). |
|
This operator allow to compare two timestamp that may have been constructed from either number or string. |
|
Gets the "char *" version of this timestamp.
|
|
Gets the number version of this timestamp.
|