We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5384645 commit 624146fCopy full SHA for 624146f
src/mongo/bson/oid.cpp
@@ -145,7 +145,7 @@ namespace {
145
kInstanceUniqueSize + kIncrementSize);
146
}
147
148
- time_t OID::asTimeT() {
+ time_t OID::asTimeT() const {
149
return getTimestamp();
150
151
src/mongo/bson/oid.h
@@ -128,8 +128,8 @@ namespace mongo {
128
/** Set to the min/max OID that could be generated at given timestamp. */
129
void init( Date_t date, bool max=false );
130
131
- time_t asTimeT();
132
- Date_t asDateT() { return asTimeT() * 1000LL; }
+ time_t asTimeT() const;
+ Date_t asDateT() const { return asTimeT() * 1000LL; }
133
134
// True iff the OID is not empty
135
bool isSet() const {
0 commit comments