You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
402 B
26 lines
402 B
#ifndef WEBFUSE_FILETIME_HPP
|
|
#define WEBFUSE_FILETIME_HPP
|
|
|
|
#include <ctime>
|
|
#include <cinttypes>
|
|
|
|
namespace webfuse
|
|
{
|
|
|
|
class filetime
|
|
{
|
|
public:
|
|
filetime();
|
|
static filetime from_timespec(timespec const & other);
|
|
static filetime from_time(time_t const & other);
|
|
void to_timespec(timespec & other) const;
|
|
time_t to_time() const;
|
|
|
|
uint64_t seconds;
|
|
uint32_t nsec;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|