The time.time() method provides you the timestamp which is basically the time elapsed since epoch(which is in UTC).
The datetime.fromtimestamp() states that if the tz param isn't provided then a local datetime object is returned.
I am aware that the tz info is basically treated as an offset to utc in order to get the local time.
If that's the case, the current time in utc had to be extracted from the platform.
How is the current time of the day, be it local or UTC, extracted from the underlying platform?