Main MRPT website > C++ reference for MRPT 1.5.9
Classes | Namespaces | Macros | Typedefs | Functions
datetime.h File Reference
#include <mrpt/base/link_pragmas.h>
#include <mrpt/utils/mrpt_stdint.h>
#include <string>
Include dependency graph for datetime.h:
This graph shows which files directly or indirectly include this file:

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

 mrpt
 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 
 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.
 

Macros

#define INVALID_TIMESTAMP   (0)
 Represents an invalid timestamp, where applicable. More...
 

Typedefs

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). More...
 

Functions

mrpt::system::TTimeStamp BASE_IMPEXP mrpt::system::buildTimestampFromParts (const mrpt::system::TTimeParts &p)
 Builds a timestamp from the parts (Parts are in UTC) More...
 
mrpt::system::TTimeStamp BASE_IMPEXP mrpt::system::buildTimestampFromPartsLocalTime (const mrpt::system::TTimeParts &p)
 Builds a timestamp from the parts (Parts are in local time) More...
 
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. More...
 
mrpt::system::TTimeStamp BASE_IMPEXP mrpt::system::getCurrentTime ()
 Returns the current (UTC) system time. More...
 
mrpt::system::TTimeStamp mrpt::system::now ()
 A shortcut for system::getCurrentTime. More...
 
mrpt::system::TTimeStamp BASE_IMPEXP mrpt::system::getCurrentLocalTime ()
 Returns the current (local) time. More...
 
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. More...
 
mrpt::system::TTimeStamp BASE_IMPEXP mrpt::system::time_tToTimestamp (const time_t &t)
 Transform from standard "time_t" to TTimeStamp. More...
 
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). More...
 
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). More...
 
double BASE_IMPEXP mrpt::system::timeDifference (const mrpt::system::TTimeStamp t_first, const mrpt::system::TTimeStamp t_later)
 Returns the time difference from t1 to t2 (positive if t2 is posterior to t1), in seconds. More...
 
double mrpt::system::now_double ()
 Returns the current time, as a double (fractional version of time_t) instead of a TTimeStamp. More...
 
mrpt::system::TTimeStamp BASE_IMPEXP mrpt::system::timestampAdd (const mrpt::system::TTimeStamp tim, const double num_seconds)
 Shifts a timestamp the given amount of seconds (>0: forwards in time, <0: backwards) More...
 
mrpt::system::TTimeStamp BASE_IMPEXP mrpt::system::secondsToTimestamp (const double nSeconds)
 Transform a time interval (in seconds) into TTimeStamp (e.g. More...
 
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. More...
 
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. More...
 
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. More...
 
std::string BASE_IMPEXP mrpt::system::dateToString (const mrpt::system::TTimeStamp t)
 Convert a timestamp into this textual form: YEAR/MONTH/DAY. More...
 
double BASE_IMPEXP mrpt::system::extractDayTimeFromTimestamp (const mrpt::system::TTimeStamp t)
 Returns the number of seconds ellapsed from midnight in the given timestamp. More...
 
std::string BASE_IMPEXP mrpt::system::timeToString (const mrpt::system::TTimeStamp t)
 Convert a timestamp into this textual form (UTC): HH:MM:SS.MMMMMM. More...
 
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. More...
 
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. More...
 

Macro Definition Documentation

◆ INVALID_TIMESTAMP

#define INVALID_TIMESTAMP   (0)

Represents an invalid timestamp, where applicable.

Definition at line 17 of file datetime.h.

Referenced by mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::_execGraphSlamStep(), mrpt::nav::CWaypointsNavigator::checkHasReachedTarget(), mrpt::obs::CObservationGPS::clear(), mrpt::system::dateTimeLocalToString(), mrpt::system::dateTimeToString(), mrpt::system::dateToString(), mrpt::hwdrivers::CGPSInterface::doProcess(), mrpt::system::extractDayTimeFromTimestamp(), mrpt::maps::CPointCloudFilterByDistance::filter(), mrpt::obs::CRawlog::findObservationsByClassInRange(), mrpt::obs::CObservationVelodyneScan::generatePointCloudAlongSE3Trajectory(), mrpt::poses::CRobot2DPoseEstimator::getCurrentEstimate(), mrpt::poses::CRobot2DPoseEstimator::getLatestRobotPose(), mrpt::hwdrivers::CVelodyneScanner::getNextObservation(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::getTimeStamp(), mrpt::nav::CAbstractPTGBasedReactive::impl_waypoint_is_reachable(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::initClass(), mrpt::nav::CAbstractPTGBasedReactive::initialize(), mrpt::hwdrivers::CVelodyneScanner::initialize(), mrpt::hwdrivers::CVelodyneScanner::internal_read_PCAP_packet(), mrpt::hwdrivers::CVelodyneScanner::internal_receive_UDP_packet(), mrpt::poses::CPoseInterpolatorBase< 3 >::interpolate(), mrpt::nav::CAbstractPTGBasedReactive::TSentVelCmd::isValid(), mrpt::poses::FrameTransformer< 2 >::lookupTransform(), mrpt::nav::CWaypointsNavigator::onNavigateCommandReceived(), mrpt::slam::CMetricMapBuilderICP::processObservation(), mrpt::poses::CRobot2DPoseEstimator::processUpdateNewOdometry(), mrpt::poses::CRobot2DPoseEstimator::processUpdateNewPoseLocalization(), mrpt::obs::CActionRobotMovement3D::readFromStream(), mrpt::obs::CObservationBeaconRanges::readFromStream(), mrpt::obs::CObservationRFID::readFromStream(), mrpt::obs::CObservationGasSensors::readFromStream(), mrpt::obs::CObservationBearingRange::readFromStream(), mrpt::obs::CObservationWirelessPower::readFromStream(), mrpt::obs::CObservationRange::readFromStream(), mrpt::obs::CActionRobotMovement2D::readFromStream(), mrpt::obs::CObservationWindSensor::readFromStream(), mrpt::obs::CObservationBatteryState::readFromStream(), mrpt::obs::CObservationStereoImages::readFromStream(), mrpt::obs::CSensoryFrame::readFromStream(), mrpt::obs::CObservationGPS::readFromStream(), mrpt::hwdrivers::CVelodyneScanner::receivePackets(), mrpt::poses::CRobot2DPoseEstimator::reset(), mrpt::nav::CAbstractPTGBasedReactive::TSentVelCmd::reset(), mrpt::maps::CLandmarksMap::saveToTextFile(), mrpt::system::timeDifference(), mrpt::system::timeLocalToString(), and mrpt::system::timeToString().




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020