2#ifndef POSIX_POSIXFILETIME_H
3#define POSIX_POSIXFILETIME_H
81 return this->
time.tv_sec;
90 return this->
time.tv_nsec;
99 this->
time.tv_nsec = lowbits;
100 this->
time.tv_sec = highbits;
108 return (a.
time.tv_sec == b.
time.tv_sec) && (a.
time.tv_nsec == b.
time.tv_nsec);
117 return (a.
time.tv_sec != b.
time.tv_sec) || (a.
time.tv_nsec != b.
time.tv_nsec);
126 if (a.
time.tv_sec < b.
time.tv_sec)
return false;
127 if (a.
time.tv_sec > b.
time.tv_sec)
return true;
128 if (a.
time.tv_nsec > b.
time.tv_nsec)
return true;
138 if (a.
time.tv_sec > b.
time.tv_sec)
return false;
139 if (a.
time.tv_sec < b.
time.tv_sec)
return true;
140 if (a.
time.tv_nsec < b.
time.tv_nsec)
return true;
149 this->
time.tv_sec = epochTime / 1000ULL;
150 this->
time.tv_nsec = (epochTime % 1000ULL) * 1000000ULL;
158 return (this->
time.tv_sec * 1000ULL) + (this->
time.tv_nsec / 1000000ULL);
void SetFromEpochTime(uint64_t epochTime)
set from epoch time
Definition posixfiletime.h:147
uint GetLowBits() const
get log bits of internal time structure (resolution is platform dependent!)
Definition posixfiletime.h:88
void SetBits(uint lowbits, uint highbits)
set both parts of time (platform dependent)
Definition posixfiletime.h:97
friend class PosixFSWrapper
Definition posixfiletime.h:51
friend bool operator<(const PosixFileTime &a, const PosixFileTime &b)
operator <
Definition posixfiletime.h:136
uint GetHighBits() const
get high bits of internal time structure (resolution is platform dependent!)
Definition posixfiletime.h:79
friend bool operator>(const PosixFileTime &a, const PosixFileTime &b)
operator >
Definition posixfiletime.h:124
uint64_t AsEpochTime() const
convert to epoch time
Definition posixfiletime.h:156
friend bool operator!=(const PosixFileTime &a, const PosixFileTime &b)
operator !=
Definition posixfiletime.h:115
timespec time
Definition posixfiletime.h:54
PosixFileTime()
constructor
Definition posixfiletime.h:61
friend class PosixCalendarTime
Definition posixfiletime.h:52
friend bool operator==(const PosixFileTime &a, const PosixFileTime &b)
operator ==
Definition posixfiletime.h:106
Util::String AsString() const
convert to string
Definition posixfiletime.cc:25
Posix implemention of a read-many write-few lock.
Definition posixsysfunc.cc:21
bool operator==(const PosixFileTime &a, const PosixFileTime &b)
Definition posixfiletime.h:106
bool operator>(const PosixFileTime &a, const PosixFileTime &b)
Definition posixfiletime.h:124
bool operator<(const PosixFileTime &a, const PosixFileTime &b)
Definition posixfiletime.h:136
bool operator!=(const PosixFileTime &a, const PosixFileTime &b)
Definition posixfiletime.h:115
Nebula's universal string class.
Definition String.cs:8
unsigned int uint
Definition types.h:33