最后面6位(124232)就可以支持到六位毫秒。
/**
* @return get time in seconds since epoch
*/
public int getTime(){
if ( _time == null )
return 0;
return (int)(_time.getTime() / 1000);
}
BSONTimestamp obj = new BSONTimestamp(113,9,2,00,00,00,000000,temp.toString().length());
保存后应该是{"$timestamp": "2013-10-02-00.00.00.000000"},而不是{"$timestamp": "2013-10-02-00.00.00.000021"}