On Mon, Jun 14, 2021 at 11:33 AM Antoine Pitrou <anto...@python.org> wrote:
> > Le 14/06/2021 à 18:28, Wes McKinney a écrit : > > Hi Antoine — when there is no time zone specified, I do not think it is > > appropriate to consider the data to refer to a specific moment in time > > without applying an explicit time zone localization. > > Well, how can that be done? The timezone information is lost, how can > the user (who possibly got the data from another source) recover it? > This is usually something that people take care of in their application code. For example, when you parse a CSV and obtain “raw” timestamps, you have to call “tz_localize” to apply a time zone to the and normalize the internal representation to UTC. If you don’t know what the time zone is supposed to be then you can’t get it back, but you can still do many analytical operations on the data (aggregating by year or month, for example) just fine. For many users the absence of time zones is a non-issue in their work. I’m on mobile internet the next couple days but I can send more code examples later in the week.