Utilities for working with file timestamps. More...
#include <time.h>#include <cstring>#include <iostream>#include <format>#include <mx/mxlib.hpp>#include "../common/defaults.hpp"#include "../common/exceptions.hpp"

Go to the source code of this file.
Namespaces | |
| namespace | MagAOX |
| namespace | MagAOX::file |
Functions | |
| template<class verboseT = XWC_DEFAULT_VERBOSITY> | |
| mx::error_t | MagAOX::file::timestamp (std::string &tstamp, const tm &uttime, long ts_nsec) |
| Get the filename timestamp from the breakdown for a time. | |
| template<typename verboseT = XWC_DEFAULT_VERBOSITY> | |
| mx::error_t | MagAOX::file::timestamp (std::string &tstamp, tm &uttime, time_t ts_sec, long ts_nsec) |
| Get the filename timestamp and the breakdown for a time. | |
| template<class verboseT = XWC_DEFAULT_VERBOSITY> | |
| mx::error_t | MagAOX::file::timestamp (std::string &tstamp, time_t ts_sec, long ts_nsec) |
| Get the filename timestamp for a time. | |
| template<class verboseT = XWC_DEFAULT_VERBOSITY> | |
| mx::error_t | MagAOX::file::fileTimeRelPath (std::string &tstamp, std::string &relPath, time_t ts_sec, long ts_nsec) |
| Get the timestamp and the relative path based on a time. | |
| template<class verboseT = XWC_DEFAULT_VERBOSITY> | |
| mx::error_t | MagAOX::file::fileTimeRelPath (std::string &fileName, std::string &relPath, const std::string &devName, const std::string &ext, time_t ts_sec, long ts_nsec) |
| Construct the filename and full relative path based on a time and a device name and extension. | |
| template<class verboseT = XWC_DEFAULT_VERBOSITY> | |
| mx::error_t | MagAOX::file::parseTimestamp (std::string &YYYY, std::string &MM, std::string &DD, std::string &hh, std::string &mm, std::string &ss, std::string &nn, const std::string &tstamp) |
| Parse a standard XWCTk timestamp string. | |
| template<class verboseT = XWC_DEFAULT_VERBOSITY> | |
| mx::error_t | MagAOX::file::parseFilePath (std::string &devName, std::string &YYYY, std::string &MM, std::string &DD, std::string &hh, std::string &mm, std::string &ss, std::string &nn, const std::string &fname) |
| Parse a standard XWCTk timestamp filepath. | |
Utilities for working with file timestamps.
Definition in file fileTimes.hpp.