[SERVER-13874] Improve handling of dates, times, and time intervals Created: 07/May/14  Updated: 25/Jan/17  Resolved: 15/May/15

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.1.3

Type: Improvement Priority: Major - P3
Reporter: Shaun Verch Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: community-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-13882 New stdx namespace in server repository Closed
Duplicate
is duplicated by SERVER-8573 Make Date_t::millis signed Closed
is duplicated by SERVER-18490 signed/unsigned mismatch warning in m... Closed
Related
is related to SERVER-13446 Solaris builds depend on ILLUMOS libc Closed
Backwards Compatibility: Minor Change
Participants:

 Description   

This is the top level tracking ticket for improvements to the time system during the 2.7 development cycle. This should be revised to be more specific once the scope is clear.



 Comments   
Comment by Githook User [ 15/May/15 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-13874 Fix MSVC signed/unsigned mismatch warning
Branch: master
https://github.com/mongodb/mongo/commit/a259e244153a7fd8644c7e8a583d70fc58e8a394

Comment by Andy Schwerin [ 15/May/15 ]

Some log messages that used to write dates in c-time format may now write them in ISO8601 format, still in the local timezone.

Comment by Githook User [ 15/May/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13874 Support converting Date_t to system_clock::time_point and back.
Branch: master
https://github.com/mongodb/mongo/commit/2518e60c495a700cbb44237425ecf064db970dbd

Comment by Githook User [ 14/May/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13874 Get rid of some dead code in time_support.h/cpp

A little dead or near-dead code elimination, and improve how Date_t::toString()
works. Specifically, it no longer crashes when "now" is before the posix epoch,
and it prints ISO8601 dates instead of "c time".
Branch: master
https://github.com/mongodb/mongo/commit/cf8b5f890c00622964a311c4def1417c717f0b09

Comment by Githook User [ 13/May/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent stdx::chrono types.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/7c7e631b90a7f5efef7006a21c5c3ecc81c3bc92

Comment by Githook User [ 13/May/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent stdx::chrono types.

Also introduces operators for adding stdx::chrono::duration to Date_t,
subtracting two Date_ts to get Milliseconds, and remove the use of
reinterpret_cast from the implementation of BSON Timestamp type.
Branch: master
https://github.com/mongodb/mongo/commit/532dfe1180c2da552bebed70af1e7fba34cf355c

Comment by Githook User [ 12/May/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: Revert "SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent stdx::chrono types."

This reverts commit 9aac625685811873ffbc2d3e8d09531eff1ce10e.

Committed in error.
Branch: master
https://github.com/mongodb/mongo/commit/3681d3dbca85b25735fa0ec676828d1da191732d

Comment by Githook User [ 12/May/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent stdx::chrono types.

Also introduces operators for adding stdx::chrono::duration to Date_t,
subtracting two Date_ts to get Milliseconds, and remove the use of
reinterpret_cast from the implementation of BSON Timestamp type.
Branch: master
https://github.com/mongodb/mongo/commit/9aac625685811873ffbc2d3e8d09531eff1ce10e

Generated at Thu Feb 08 03:33:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.