8 #ifndef AIRPLANEUTIL_H_
9 #define AIRPLANEUTIL_H_
11 #include "utl/PhysicalConstants.h"
12 #include "utl/UTCDateTime.h"
15 namespace RdAirplane {
18 char timeHumanReadable[20];
19 time_t time = pUnixTimeStampInS;
20 tm* timeStruct = gmtime(&time);
21 strftime(timeHumanReadable,
sizeof(timeHumanReadable),
"%d.%m.%Y %H:%M:%S", timeStruct);
22 return timeHumanReadable;
40 template<
typename ContainerType>
42 for(
typename ContainerType::iterator iter = pContainer.begin(); iter!=pContainer.end(); ++iter) {
std::time_t GetUnixSecond() const
seconds after Unix epoch (1 Jan 1970) without any leap corrections
double GetNanosecond() const
double pow(const double x, const unsigned int i)
A TimeStamp holds GPS second and nanosecond for some event.
unsigned long GetGPSSecond() const
GPS second.
void deleteAllPointersInContainer(ContainerType &pContainer)
double GetGPSNanoSecond() const
GPS nanosecond.
double ApproximatedGPSTimeStampFromTimestamp(const utl::TimeStamp &pTimeStamp)
double ApproximatedUnixTimeStampFromTimestamp(const utl::TimeStamp &pTimeStamp)
std::string TimestampHumanReadAble(const double &pUnixTimeStampInS)