Subj : Unix point?
To : Maurice Kinal
From : mark lewis
Date : Fri Jan 14 2022 06:21 pm
On 2022 Jan 14 20:27:36, you wrote to me:
ml>> not all proposals are accepted or if accepted, stick around...
MK> Too bad they missed out on the opportunity to not accept a few of them
MK> that stick around when they have no right to exist in the first place.
that's your opinion... i won't even ask who it is you think assigns any so-called rights to any proposals' existence...
ml>> somewhere inside it, there is a conversion from string to numerics
ml>> and back to string again
MK> No doubt.
thank you...
MK> However it REQUIRES the first character in the string to be either a
MK> '+' (east) or a '-' (west). Note the REQUIRE and that is part and
MK> parcel of the offset ... which is always a string ... which is always
MK> NaN.
you keep forgetting to add "in your chosen routine" to your statements... other routines that do the same or similar job do not have such a requirement...
MK> Dropping the '+' character ist vorboten.
mmmhummm... no '+' here... plus you just said that it could be one of two specific characters so...
TZ=UTC date --rfc-3339=sec --date="14 Jan 2022 22:27:36 -0000"
2022-01-14 22:27:36+00:00
then there's this which also works just fine IF you like the ISO8601 format... some do not care for it...
TZ=UTC date --rfc-3339=sec --utc
2022-01-14 22:27:36+00:00
but you already know these things and are just trying to get your jollies arguing about something... meh... i'm done because it isn't worth it, it is a very old argument (like 2 decades now you've been going on about this??), and simply said, it is not what the developer who wrote the accepted spec decided to use...
PS: yes, i did time my use of the above 2nd date call (with --utc) to match the example naturally :)
PPS: i also note your use of a two-digit year in your examples ;)
PPPS: the resulting '+' or '-' on the time zone is likely due to the use of a boolean array where only true or false are allowed...
begin
LocalTimeOffset := GetLocalTimeOffset;
Writeln (FormatDateTime('YYYY MMM DD hh:mm:ss', Now) + ' ' + Sign[LocalTimeOffset>0],
Format(FmtOffset, [LocalTimeOffset div MinsPerHour, LocalTimeOffset mod MinsPerHour]));
end.
2022 Jan 14 17:27:36 -0500
)\/(ark
"The soul of a small kitten in the body of a mighty dragon. Look on my majesty, ye mighty, and despair! Or bring me catnip. Your choice. Oooh, a shiny thing!"
... Remember: Landings should always equal takeoffs!
---
* Origin: (1:3634/12.73)