zackster
08/18/2022, 6:04 PMbdw429s
08/18/2022, 6:06 PMbdw429s
08/18/2022, 6:06 PMdateTimeFormat()
, etc?zackster
08/18/2022, 6:07 PMbdw429s
08/18/2022, 6:08 PMbdw429s
08/18/2022, 6:08 PMThe following masks can be used to format the full date and time and may not be combined with other masks:
• `short`: equivalent to "m/d/y h:nn tt"
• `medium`: equivalent to "mmm d, yyyy hnnss tt"
• `long`: medium followed by three-letter time zone; i.e. "mmmm d, yyyy hnnss tt zzz"
• `full`: equivalent to "dddd, mmmm d, yyyy hnnss tt zz"
• `ISO8601`/`ISO`: equivalent to "yyyy-mm-dd'T'HHnnssXXX"
zackster
08/18/2022, 6:08 PMzackster
08/18/2022, 6:09 PMbdw429s
08/18/2022, 6:09 PMbdw429s
08/18/2022, 6:10 PMbdw429s
08/18/2022, 6:11 PMbdw429s
08/18/2022, 6:11 PMssZ
vs
ss.SSSZ
?bdw429s
08/18/2022, 6:13 PM2022-08-18T11:08:51-0700
• JS - 2022-08-18T11:08:01.001-0700
mjclemente
08/18/2022, 6:18 PMmjclemente
08/18/2022, 6:19 PM• If necessary for a particular application, the standard supports the addition of a decimal fraction to the smallest time value in the representation.and
For example, in Microsoft SQL Server, the precision of a decimal fraction is 3 for a DATETIME, i.e., "yyyy-mm-ddThhmmss[.mmm]"
mjclemente
08/18/2022, 6:21 PMIn Python ISO 8601 date is represented informat. For example, May 18, 2022, is represented as 2022-05-18T114022.519222.YYYY-MM-DDTHH:MM:SS.mmmmmm
mjclemente
08/18/2022, 6:22 PMmjclemente
08/18/2022, 6:30 PMbdw429s
08/18/2022, 6:41 PMISOPython
as it's cleary a Py standard 😆bdw429s
08/18/2022, 6:42 PMISOms
goodAdam Cameron
formatISO8601
and formatISO8601Millis
(and indeed they also cover µs, ns and ps... so maybe an ms
suffix is not so cool in case the need to do microseconds coms along and one would then need to us µs
which is a pain to type 😉)
Oh they also have formatISO8601Javascript
. But... perhaps ill-advisedly for reasons mentioned above.bdw429s
08/18/2022, 8:58 PMAdam Cameron
ms
might be short-sighted because of [all those words I typed for the reason of explaining]
So perhaps iso8601millis
.
Just iso
is perhaps a bit brief cos there's more than one ISO date format. However if there's already iso
, then maybe isomillis
.
Also: it is not a race to save keystrokes. The intent is to make the code clear. One could type out YYYY-MM-DDTHH;MM:SS.lll
(without checking closely: did I get that right?), but it's not clear one is specifically meaning "the prescribed ISO-8601 standard format with milliseconds precision". You know... the reason one generally gives a helpful label to values 😐bdw429s
08/18/2022, 9:49 PMAdam Cameron
Adam Cameron
iso
to mean "ISO 8601 [without milliseconds]", and this is for "ISO 8601 [with milliseconds]"? In which case I say it's too late to fix iso
, and isoMillis
migth be better than isoms
.
I'm overthinking now, but some ppl might read that as "eye-soms?" Wazzat?
LDEV-2131 is really poorly written, so it's unclear what the actual question is.Adam Cameron
iso
and iso8601
. In that case I'd do two things:
• deprecate iso
for the reasons discussed;
• add iso8601millis
.
Not perfect sounding, but - IMO-only - is marginally preferable to isoms
.
Be thankful I am resisting suggesting ISO8601WithMillis
, which is probably what I'd implement.zackster
08/19/2022, 9:18 AMzackster
08/19/2022, 9:21 AMAdam Cameron
Adam Cameron
iso
then perhaps isoMillis
.