Does Time.to_i always return the number of seconds from EPOCH to UTC?

The time zone difference is always ignored, no matter what time zone is expressed in?

Intuitively, the number of seconds elapsed since the EPOCH should be higher for those, for example, in UTC + 2. However, it seems that this is not so.

+3
source share
1 answer

The era is based on the utc time zone https://en.wikipedia.org/wiki/Unix_time it does not depend on the time zone in which you are currently located.

+7
source

Source: https://habr.com/ru/post/1765990/


All Articles