> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>
Can you tell me how to use Java to get the current time? Thank you very much.
W dniu wtorek, 3 lipca 2012 08:08:52 UTC+2 użytkownik 张铁军 napisał:Can you tell me how to use Java to get the current time? Thank you very much.
new Date().getTime()
- now works in mongo db, for example:
db.my_collection.find({date: {$gt: (new Date().getTime() - someTimeInMiliseconds}})
在 2011年2月15日星期二UTC+8上午9时06分18秒,Alvin Richards写道:
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
W dniu wtorek, 3 lipca 2012 08:08:52 UTC+2 użytkownik 张铁军 napisał:Can you tell me how to use Java to get the current time? Thank you very much.
new Date().getTime()
- now works in mongo db, for example:
db.my_collection.find({date: {$gt: (new Date().getTime() - someTimeInMiliseconds}})
在 2011年2月15日星期二UTC+8上午9时06分18秒,Alvin Richards写道:db.eval( function() { return new Date() } );
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.