4 ms·
> Not only that, but if you asked ruby to represent the epoch in Berlin with “%s %z“, it did it correctly: > DateTime.parse('1970-01-01T01:00:00 +0100').strfti
by rawling 4y ago
> Not only that, but if you asked ruby to represent the epoch in Berlin with “%s %z“, it did it correctly:
> DateTime.parse('1970-01-01T01:00:00 +0100').strftime('%s %z')
=> "0 +0100"
Does that mean that "0 +0000" is the same as "0 +0100", "0 +0200", "0 +0300" etc.?
- felipec 4y agoYes, it's the same time in different timezones. "0 +0000" is "00:00 +0000", "0 +0100" is "01:00 +0100": same time.