@@ -31,7 +31,7 @@ namespace mongo {
3131 std::string time_t_to_String (time_t t);
3232 std::string time_t_to_String_short (time_t t);
3333
34- struct Date_t {
34+ struct MONGO_CLIENT_API Date_t {
3535 // TODO: make signed (and look for related TODO's)
3636 unsigned long long millis;
3737 Date_t (): millis(0 ) {}
@@ -49,38 +49,38 @@ namespace mongo {
4949
5050 // uses ISO 8601 dates without trailing Z
5151 // colonsOk should be false when creating filenames
52- std::string terseCurrentTime (bool colonsOk=true );
52+ MONGO_CLIENT_API std::string terseCurrentTime (bool colonsOk=true );
5353
5454 /* *
5555 * Formats "time" according to the ISO 8601 extended form standard, including date,
5656 * and time, in the UTC timezone.
5757 *
5858 * Sample format: "2013-07-23T18:42:14Z"
5959 */
60- std::string timeToISOString (time_t time);
60+ MONGO_CLIENT_API std::string timeToISOString (time_t time);
6161
6262 /* *
6363 * Formats "date" according to the ISO 8601 extended form standard, including date,
6464 * and time with milliseconds decimal component, in the UTC timezone.
6565 *
6666 * Sample format: "2013-07-23T18:42:14.072Z"
6767 */
68- std::string dateToISOStringUTC (Date_t date);
68+ MONGO_CLIENT_API std::string dateToISOStringUTC (Date_t date);
6969
7070 /* *
7171 * Formats "date" according to the ISO 8601 extended form standard, including date,
7272 * and time with milliseconds decimal component, in the local timezone.
7373 *
7474 * Sample format: "2013-07-23T18:42:14.072-05:00"
7575 */
76- std::string dateToISOStringLocal (Date_t date);
76+ MONGO_CLIENT_API std::string dateToISOStringLocal (Date_t date);
7777
7878 /* *
7979 * Formats "date" in fixed width in the local time zone.
8080 *
8181 * Sample format: "Wed Oct 31 13:34:47.996"
8282 */
83- std::string dateToCtimeString (Date_t date);
83+ MONGO_CLIENT_API std::string dateToCtimeString (Date_t date);
8484
8585 /* *
8686 * Parses a Date_t from an ISO 8601 string representation.
@@ -90,7 +90,7 @@ namespace mongo {
9090 *
9191 * Local times are currently not supported.
9292 */
93- StatusWith<Date_t> dateFromISOString (const StringData& dateString);
93+ MONGO_CLIENT_API StatusWith<Date_t> dateFromISOString (const StringData& dateString);
9494
9595 boost::gregorian::date currentDate ();
9696
0 commit comments