Get the digits of year, month and day for filenames and paths.
Appends the relevant year month day to a given path Form the files path
Definition at line 851 of file datalogger.cc.
References Time::GetAsStr(), str, and time.
Referenced by EvalOptions(), GoToNightlyWriteErrorState(), GoToReady(), Report(), and Start().
862 str << path << ftime.
GetAsStr(
"/%Y/%m/%d");
Adds some functionality to boost::posix_time::ptime for our needs.
bool CreateDirectory(const string &path)
Create a given directory.
bool DoesPathExist(string path)
Checks if a given path exist.
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
string CompileFileName(const string &service, const string &extension, const Time &time=Time()) const
Form the file names only.
std::string GetAsStr(const char *fmt="%Y-%m-%d %H:%M:%S") const