[CXX-150] Unexported symbols in time_support.h/.cpp for shared library Created: 26/Mar/14  Updated: 07/Jul/14  Resolved: 29/Mar/14

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: legacy-0.0-26compat-2.6.0-rc2
Fix Version/s: legacy-0.8.0

Type: Bug Priority: Major - P3
Reporter: Pieter Willem Jordaan Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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



 Comments   
Comment by Githook User [ 07/Jul/14 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-268 Backport CXX-150 Export Date_t and some auxilliary functions

(cherry picked from commit c05e8ff713afd3ebc07219f4ba3348df5b8cc432)
Branch: 26compat
https://github.com/mongodb/mongo-cxx-driver/commit/7461a1bdfa3bfac7282ee4e80927885ff0beadcb

Comment by Matthieu Corbeau [ 02/Jul/14 ]

After asking on mongodb-user group (https://groups.google.com/forum/?hl=en#!topic/mongodb-user/2bGT88pdd6Y), I was told I could have a tiny chance to see the pull/42 request merged into the 26compat branch. Is this possible ?

Comment by Githook User [ 29/Mar/14 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-150 Export Date_t and some auxilliary functions
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/c05e8ff713afd3ebc07219f4ba3348df5b8cc432

Comment by Andrew Morrow (Inactive) [ 29/Mar/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/42

Comment by Andrew Morrow (Inactive) [ 26/Mar/14 ]

Triaging to legacy-0.8.

Generated at Wed Feb 07 21:58:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.