@@ -31,7 +31,7 @@ namespace mongo {
31
31
std::string time_t_to_String (time_t t);
32
32
std::string time_t_to_String_short (time_t t);
33
33
34
- struct Date_t {
34
+ struct MONGO_CLIENT_API Date_t {
35
35
// TODO: make signed (and look for related TODO's)
36
36
unsigned long long millis;
37
37
Date_t (): millis(0 ) {}
@@ -49,38 +49,38 @@ namespace mongo {
49
49
50
50
// uses ISO 8601 dates without trailing Z
51
51
// colonsOk should be false when creating filenames
52
- std::string terseCurrentTime (bool colonsOk=true );
52
+ MONGO_CLIENT_API std::string terseCurrentTime (bool colonsOk=true );
53
53
54
54
/* *
55
55
* Formats "time" according to the ISO 8601 extended form standard, including date,
56
56
* and time, in the UTC timezone.
57
57
*
58
58
* Sample format: "2013-07-23T18:42:14Z"
59
59
*/
60
- std::string timeToISOString (time_t time);
60
+ MONGO_CLIENT_API std::string timeToISOString (time_t time);
61
61
62
62
/* *
63
63
* Formats "date" according to the ISO 8601 extended form standard, including date,
64
64
* and time with milliseconds decimal component, in the UTC timezone.
65
65
*
66
66
* Sample format: "2013-07-23T18:42:14.072Z"
67
67
*/
68
- std::string dateToISOStringUTC (Date_t date);
68
+ MONGO_CLIENT_API std::string dateToISOStringUTC (Date_t date);
69
69
70
70
/* *
71
71
* Formats "date" according to the ISO 8601 extended form standard, including date,
72
72
* and time with milliseconds decimal component, in the local timezone.
73
73
*
74
74
* Sample format: "2013-07-23T18:42:14.072-05:00"
75
75
*/
76
- std::string dateToISOStringLocal (Date_t date);
76
+ MONGO_CLIENT_API std::string dateToISOStringLocal (Date_t date);
77
77
78
78
/* *
79
79
* Formats "date" in fixed width in the local time zone.
80
80
*
81
81
* Sample format: "Wed Oct 31 13:34:47.996"
82
82
*/
83
- std::string dateToCtimeString (Date_t date);
83
+ MONGO_CLIENT_API std::string dateToCtimeString (Date_t date);
84
84
85
85
/* *
86
86
* Parses a Date_t from an ISO 8601 string representation.
@@ -90,7 +90,7 @@ namespace mongo {
90
90
*
91
91
* Local times are currently not supported.
92
92
*/
93
- StatusWith<Date_t> dateFromISOString (const StringData& dateString);
93
+ MONGO_CLIENT_API StatusWith<Date_t> dateFromISOString (const StringData& dateString);
94
94
95
95
boost::gregorian::date currentDate ();
96
96
0 commit comments