Closed mehranshakeri closed 5 years ago
@mehranshakeri,
There are a number of considerations that support using a formatted DateTime rather than a UNIX timestamp. These include at least:
We can avoid the first two problems entirely by using a standard string representation of a date, and since this is not that difficult to do for developers, it makes a lot of sense given issue 3. Developers/DID ledgers/networks/etc. can, of course, represent values in any preferred lossless way internally; the formatted date string is only for the standard representation.
@dlongley Thank you for quick and detailed reply :)
Could you please explain why timestamp values are set as formatted DateTime instead of something like Unix Epochs? e.g. Created property. Is there any pros except human-readability? My assumption is that DIDs will be used mainly by machines and my experience is having a Long value is much more developer friendly than a formatted String.