Skip to content

Reasoning behind whole-seconds precision for datetime? #920

@vdods

Description

@vdods

I'd like to know the reasoning behind choosing whole-seconds precision instead of e.g. milliseconds precision. From the standpoint of DID doc metadata, it does get in the way of basic guarantees like strict monotonicity of DID update timestamps, as well as ability to query a unique DID document by versionTime.

I see this came up here -- #361 (comment) -- but didn't see any justification.

What have other people used as workarounds here, if at all? My own approach was to define some parallel timestamp fields (e.g. "createdMilliseconds" to parallel "created") and record the milliseconds-precision timestamps that way, in addition to the seconds-precision existing fields. Not ideal, but at least the data is there.

Relevant links:

Metadata

Metadata

Assignees

Labels

discussNeeds further discussion before a pull request can be createdquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions