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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • legacy-0.8.0
    • Affects Version/s: legacy-0.0-26compat-2.6.0-rc2
    • Component/s: None
    • 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

      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

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            climax Pieter Willem Jordaan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: