#include <mrpt/utils/utils_defs.h>
Go to the source code of this file.
Classes | |
struct | mrpt::system::TTimeParts |
The parts of a date/time (it's like the standard 'tm' but with fractions of seconds). More... | |
Namespaces | |
namespace | mrpt |
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. | |
namespace | mrpt::system |
This namespace provides a OS-independent interface to many useful functions: filenames manipulation, time and date, string parsing, file I/O, threading, memory allocation, etc. | |
Defines | |
#define | INVALID_TIMESTAMP (0) |
Represents an invalid timestamp, where applicable. | |
Time and date functions | |
| |
typedef uint64_t | mrpt::system::TTimeStamp |
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1, 1601 (UTC). | |
mrpt::system::TTimeStamp BASE_IMPEXP | mrpt::system::buildTimestampFromParts (const mrpt::system::TTimeParts &p) |
Builds a timestamp from the parts (Parts are in UTC). | |
mrpt::system::TTimeStamp BASE_IMPEXP | mrpt::system::buildTimestampFromPartsLocalTime (const mrpt::system::TTimeParts &p) |
Builds a timestamp from the parts (Parts are in local time). | |
void BASE_IMPEXP | mrpt::system::timestampToParts (TTimeStamp t, TTimeParts &p, bool localTime=false) |
Gets the individual parts of a date/time (days, hours, minutes, seconds) - UTC time or local time. | |
mrpt::system::TTimeStamp BASE_IMPEXP | mrpt::system::getCurrentTime () |
Returns the current (UTC) system time. | |
mrpt::system::TTimeStamp | mrpt::system::now () |
A shortcut for system::getCurrentTime. | |
mrpt::system::TTimeStamp BASE_IMPEXP | mrpt::system::getCurrentLocalTime () |
Returns the current (local) time. | |
mrpt::system::TTimeStamp BASE_IMPEXP | mrpt::system::time_tToTimestamp (const double &t) |
Transform from standard "time_t" (actually a double number, it can contain fractions of seconds) to TTimeStamp. | |
mrpt::system::TTimeStamp BASE_IMPEXP | mrpt::system::time_tToTimestamp (const time_t &t) |
Transform from standard "time_t" to TTimeStamp. | |
double BASE_IMPEXP | mrpt::system::timestampTotime_t (const mrpt::system::TTimeStamp &t) |
Transform from TTimeStamp to standard "time_t" (actually a double number, it can contain fractions of seconds). | |
double | mrpt::system::timestampToDouble (const mrpt::system::TTimeStamp &t) |
Transform from TTimeStamp to standard "time_t" (actually a double number, it can contain fractions of seconds). | |
double BASE_IMPEXP | mrpt::system::timeDifference (const mrpt::system::TTimeStamp &t_first, const mrpt::system::TTimeStamp &t_later) |
Retuns the time difference from t1 to t2 (positive if t2 is posterior to t1), in seconds. | |
mrpt::system::TTimeStamp BASE_IMPEXP | mrpt::system::secondsToTimestamp (const double &nSeconds) |
Transform a time interval (in seconds) into TTimeStamp (e.g. | |
std::string BASE_IMPEXP | mrpt::system::formatTimeInterval (const double &timeSeconds) |
Returns a formated string with the given time difference (passed as the number of seconds), as a string [H]H:MM:SS.MILISECS. | |
std::string BASE_IMPEXP | mrpt::system::dateTimeToString (const mrpt::system::TTimeStamp &t) |
Convert a timestamp into this textual form (UTC time): YEAR/MONTH/DAY,HH:MM:SS.MMM. | |
std::string BASE_IMPEXP | mrpt::system::dateTimeLocalToString (const mrpt::system::TTimeStamp &t) |
Convert a timestamp into this textual form (in local time): YEAR/MONTH/DAY,HH:MM:SS.MMM. | |
std::string BASE_IMPEXP | mrpt::system::dateToString (const mrpt::system::TTimeStamp &t) |
Convert a timestamp into this textual form: YEAR/MONTH/DAY. | |
double BASE_IMPEXP | mrpt::system::extractDayTimeFromTimestamp (const mrpt::system::TTimeStamp &t) |
Returns the number of seconds ellapsed from midnight in the given timestamp. | |
std::string BASE_IMPEXP | mrpt::system::timeToString (const mrpt::system::TTimeStamp &t) |
Convert a timestamp into this textual form (UTC): HH:MM:SS.MMMMMM. | |
std::string BASE_IMPEXP | mrpt::system::timeLocalToString (const mrpt::system::TTimeStamp &t, unsigned int secondFractionDigits=6) |
Convert a timestamp into this textual form (in local time): HH:MM:SS.MMMMMM. | |
std::string BASE_IMPEXP | mrpt::system::intervalFormat (const double seconds) |
This function implements time interval formatting: Given a time in seconds, it will return a string describing the interval with the most appropriate unit. |
#define INVALID_TIMESTAMP (0) |
Represents an invalid timestamp, where applicable.
Definition at line 34 of file datetime.h.
Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011 |