<div dir="ltr">Hi Cleber, my comments below:<br><br>On Thu, Oct 31, 2019 at 1:24 PM Cleber Rosa <<a href="mailto:crosa@redhat.com">crosa@redhat.com</a>> wrote:<br>> >   1. Is storage a problem?<br>><br>> I would certainly like to save a few bytes on each message that<br>> contains a date/time, provided everything else is equal.<br>><br>> But, to be honest, I don't think reading a JSON number as a date (say<br>> for Unix time) or a string (say for ISO 8601) would have a signficant<br>> impact on the transmission/processing/storage costs.  I think if we<br>> come to the point of needing to optmize the communication, a more<br>> comprehensive change, such as replacing the protocol/encoding<br>> altogether would probably yield the best results.<br><br>I agree.<br><br>> >   * On 32-bit systems there is the “Year 2038 problem”;<br>><br>> This is trickier... and I hate to feel cornered by it.  Even if, to<br>> the best of my knowledge and assumptions, we won't be dealing with<br>> 32-bit systems by then, or, the problem would have been solved /<br>> worked around at another layer.<br>><br>> <joke>TBH, you shouldn't had mentioned this!</joke><br><br>Ohhh sorry! ;)<br><br>> >   * There is no limit on the number of decimal places for the decimal fraction;<br>><br>> Does this mean that a very high time resolution can be used?  This was<br>> one of the questions/concerns I had on the back of my mind...<br><br>Yes, because is supported by the format. But, as mentioned by Amador, we<br>are limited by the platform precision.<br><br>> > ## Examples using ISO 8601:<br>> >   * 2019-10-29T11:22:32+00:00<br>> >   * 2019-10-29T11:22:32Z<br>> >   * 20191029T112232Z<br>> ><br>><br>> I like the last example a lot, but that is the one suggested by the<br>> standard notes to not be used, right?<br><br>Right.  The standard notes that "The basic format should be **avoided** in plain text.".<br><br>I think that we if decide to use ISO-8601 because it is more human-readable, we can add<br>few separators. ;)<br><br>It is important to notice that most of the common libraries that generates ISO-8601 it will<br>output the string using the "extended format" with separators added to enhance human<br>readability by default (if not format is specified).<br><br>> > If the answers to questions 1 and 2 are "no", I think that I would go<br>> > with ISO 8601 using 'Z' as UTC timezone, always.<br>> ><br>> > And you? Any thoughts? Do you have a third option?<br>><br>> I think those two are the real contenders indeed.  I'm wondering if<br>> both formats shouldn't be supported by the status server when reading<br>> the messages, so that the writing of native runners would be<br>> facilitated and the load on them would be minimized.<br><br><div>Surely you know the user cases better than I do, but my suggestion</div><div>would be to choose a format and stick with it.</div><br><div>Sometimes, “premature optimization is the root of all evil.”</div><div>(Donald Knuth)</div><br>Regards,<br>-- <br>Beraldo Leal<br></div>