Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-150

Unexported symbols in time_support.h/.cpp for shared library

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: legacy-0.0-26compat-2.6.0-rc2
    • Fix Version/s: legacy-0.8.0
    • Component/s: None
    • Labels:
    • Environment:
      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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: