[DOCS-1211] Timestamp is stored in seconds but displayed in MS (before 2.4) Created: 08/Mar/13  Updated: 30/Oct/23  Resolved: 07/Feb/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: David Hows Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-7718 Timestamp constructor in shell should... Closed
Related
Participants:
Days since reply: 10 years, 49 weeks, 6 days ago

 Description   

In the doc http://docs.mongodb.org/manual/core/document/ we mention that the timestamp is stored as a time_t in seconds.

We should clarify that while its stored in seconds we display it in milliseconds when output from shell. Under 2.2 the creation of a Timestamp takes a milliseconds value rather than as seconds which impacts how a timestamp is used.

This is also effected by the changes to the constructor outlined in SERVER-7718



 Comments   
Comment by Scott Hernandez (Inactive) [ 08/Mar/13 ]

In 2.4 everything in the shell, and tools, shows and accepts seconds only. In previous versions the shell Timestamp class took and displayed the seconds as milliseconds.

Generated at Thu Feb 08 07:40:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.