Start using Date_t. Can anyone think of a better name?

This commit is contained in:
Mathias Stearn
2009-12-03 17:25:22 -05:00
parent 5660a25e9b
commit dcf3a10eea
20 changed files with 59 additions and 32 deletions

View File

@@ -784,20 +784,20 @@ namespace mongo {
{
jsdouble d = js_DateGetMsecSinceEpoch( c->_context , o );
if ( d ){
b.appendDate( name.c_str() , (unsigned long long)d );
b.appendDate( name.c_str() , Date_t(d) );
return true;
}
}
#elif defined( XULRUNNER )
if ( JS_InstanceOf( c->_context , o, globalSMEngine->_dateClass , 0 ) ){
jsdouble d = js_DateGetMsecSinceEpoch( c->_context , o );
b.appendDate( name.c_str() , (unsigned long long)d );
b.appendDate( name.c_str() , Date_t(d) );
return true;
}
#else
if ( JS_InstanceOf( c->_context , o, &js_DateClass , 0 ) ){
jsdouble d = js_DateGetMsecSinceEpoch( c->_context , o );
b.appendDate( name.c_str() , (unsigned long long)d );
b.appendDate( name.c_str() , Date_t(d) );
return true;
}
#endif