30 #ifndef ICL_CORE_TIME_STAMP_H_INCLUDED 31 #define ICL_CORE_TIME_STAMP_H_INCLUDED 36 #if defined(_IC_BUILDER_BOOST_DATE_TIME_) 39 namespace posix_time {
45 #ifdef _IC_BUILDER_OPENSPLICEDDS_ 53 #ifdef _IC_BUILDER_OPENSPLICEDDS_ 85 #ifdef _IC_BUILDER_OPENSPLICEDDS_ 93 TimeStamp& operator = (
const DDS::Time_t& time_stamp);
96 TimeStamp& operator = (
const iTimeStamp& time_stamp);
99 operator DDS::Time_t ();
102 operator iTimeStamp ();
105 #if defined(_IC_BUILDER_BOOST_DATE_TIME_) 106 TimeStamp(
const boost::posix_time::ptime& ptime_stamp);
110 TimeStamp& operator = (
const boost::posix_time::ptime& ptime_stamp);
136 void strfTime(
char* dest,
size_t max_len,
const char *format)
const;
144 void strfLocaltime(
char* dest,
size_t max_len,
const char *format)
const;
153 String formatIso8601()
const;
161 String formatIso8601UTC()
const;
170 String formatIso8601Basic()
const;
179 String formatIso8601BasicUTC()
const;
182 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 235 return TimeBase::operator != (other);
252 return TimeBase::operator < (other);
260 return TimeBase::operator > (other);
269 return TimeBase::operator <= (other);
278 return TimeBase::operator >= (other);
290 using TimeBase::days;
291 using TimeBase::hours;
292 using TimeBase::minutes;
293 using TimeBase::seconds;
294 using TimeBase::milliSeconds;
295 using TimeBase::microSeconds;
296 using TimeBase::nanoSeconds;
298 using TimeBase::timespec;
299 using TimeBase::systemTimespec;
301 #ifdef _SYSTEM_DARWIN_ 302 using TimeBase::machTimespec;
306 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 314 using TimeBase::Days;
315 using TimeBase::Hours;
316 using TimeBase::Minutes;
317 using TimeBase::Seconds;
318 using TimeBase::MilliSeconds;
319 using TimeBase::MicroSeconds;
320 using TimeBase::NanoSeconds;
322 using TimeBase::Timespec;
323 using TimeBase::SystemTimespec;
325 #ifdef _SYSTEM_DARWIN_ 326 using TimeBase::MachTimespec;
Represents absolute times.
#define ICL_CORE_VC_DEPRECATE_STYLE
TimeStamp operator+(const TimeStamp &time, const TimeSpan &span)
TimeStamp(const TimeBase &base)
#define ICL_CORE_IMPORT_EXPORT
unsigned __int64 uint64_t
bool operator==(const ThreadId &left, const ThreadId &right)
TimeSpan operator-(const TimeStamp &time_1, const TimeStamp &time_2)
Contains import/export definitions for the Win32 plattform.
Repesents absolute times.
static const TimeStamp cZERO
TimeStamp(const struct timespec &ts)
TimeStamp()
Standard constructor, creates a null time.
static TimeStamp maxTime()
TimeStamp(uint64_t sec, uint32_t nsec)
Constructor, takes a timeval for creation.
TimeStamp(time_t timestamp)
#define ICL_CORE_GCC_DEPRECATE_STYLE