Subj : Unix point?
To   : Maurice Kinal
From : mark lewis
Date : Fri Jan 14 2022 10:48 am


On 2022 Jan 14 05:30:50, you wrote to me:

ml>> have you looked at any of the other PKT and packed message formats?

MK> Type 2, 2+ and 2.2.  2.2 only works with one of my uplinks.

so none of the Type 3 or Type 10 formats?

ml>> +2 + +2 = +4

MK> Fine for numbers but lousy for strings.

MK>   TZUTC1 + TZUTC2 = ?!?!?!?!?!?!

MK> What in the name of strftime() is confusing you?  You appear to be
MK> suffering from the same affliction as everyone east of prime meridian
MK> (castration?).  +0000 is a string (N)ot (a) (N)umber (<- NaN).  Stripping
MK> off the '+' character effectively corrupts it.

until you convert it to a number for the necessary math when needed ;)

ml>> really??

MK> Yes.  Basic programming skills inform me that strings are not numbers even
MK> if they look like numbers.  The utc offset *is* a string ... or at least
MK> real life ones are.

yep... and at some point, their contents are converted from their string representation to some sort of numeric representation so they can be added or subtracted from a time value to give the time in another location...

)\/(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!"
... Age is a very high price to pay for maturity.
---
* Origin:  (1:3634/12.73)