Details
-
Bug
-
Resolution: Done
-
Major - P3
-
legacy-0.0-26compat-2.6.0-rc2
-
None
-
Linux 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Description
Here are a couple of helpful methods not exported from time_support.h which renders printing of dates difficult when using the shared library (.so)
// From time_support.h
|
// In struct Date_t
|
// ...
|
void toTm (tm *buf); |
std::string toString() const; |
time_t toTimeT() const; |
// ...
|
|
|
// Also here are a few helpers that could be exported as well:
|
std::string terseCurrentTime(bool colonsOk=true); |
std::string timeToISOString(time_t time); |
std::string dateToISOStringUTC(Date_t date);
|
std::string dateToISOStringLocal(Date_t date);
|
std::string dateToCtimeString(Date_t date);
|
bool toPointInTime( const std::string& str , boost::posix_time::ptime* timeOfDay ); |
Thank you