#ifndef __ImportData_h_ #define __ImportData_h_ // There was no obvious place to put this. Some of our CSV files were // generated on the Delphi side, and some on the C++ side. The C++ files // always use the time_t format, while the Delphi files use the TDateTime // format. #include #include // This will attempt to import time from two different formats. The result // is always time_t. The input might be a delphi time or a time_t. The // input will always be a string in human readable format. Anything illegal, // including the empty string, will cause a return value of 0. time_t importTime(std::string const &rawTime); #endif