= Сообщение: 5519 из 7128 ====================================== FTSC_PUBLIC = От : Maurice Kinal 1:153/7001 13 Feb 21 23:12:21 Кому : Rob Swindell 13 Feb 21 23:12:21 Тема : "Packet Type 2 Compatible Formats" (Ex FSP-1040) FGHI : area://FTSC_PUBLIC?msgid=1:153/7001+60285cd5 = Кодировка сообщения определена как: UTF-8 ================================== ============================================================================== -={ 2021-02-13 23:12:21.152375887+00:00 }=-
Hey Rob!
RS> It's not uncommon for January to represented as a 0.
You're making my point, as your example with JavaScript demonstrates. It is derived from c's time.h.
RS> it uses localtime()
A time.h function along with gmtime() and strftime(). I'd be surprised if those functions weren't included in JavaScript given localtime().
RS> to convert the stored time_t to a struct tm and then I use sprintf RS> to format into the standard DateTime field syntax.
strftime() works just as well, even replicating two digit year formats such as the packed message header's DateTime string. As simple as using '%d %b %y %T' in the specifier field of the strftime() call, including using the c89 standards. However I believe '%F %T %z' to be the superior output for a packed meassage DateTime string.
RS> You could sum up the vast majority of FidoNet in those two RS> words: "poorly designed".
Probably. I believe having these types of conversations in public has the potential towards solving that flaw.
RS> I guess we shouldn't really have expected more from technology RS> developed by amateurs.
Speak for yourself. I do expect more. Both from them, whoever them are, as well as myself. That has always been my motivation for participating in this fine and honourable echoarea.