News for hackers. Stuff that matters.
Re:My tone doesn't make me wrong, or how I convinced the Rub... by felipec on Sunday August 21, 2022 @04:50PM (#32544268)
You can argue that attaching a time zone to a `%s` doesn't make sense, but a lot of people do it, and more importantly: it doesn't hurt.

If you do `Time.strptime('0 +0100', '%s %z').to_i` you get the correct result: "0". That is: the number of seconds since the epoch is correctly parsed. The time zone is extra information that doesn't affect `%s` in any way. In other words: it's orthogonal.

There are no comments on this comment yet.