Python datetime.datetime和psycopg2.dt.fixedoffsettimezone转换为带有时区的时间戳

Python datetime.datetime和psycopg2.dt.fixedoffsettimezone转换为带有时区的时间戳,python,pandas,postgresql,timezone,psycopg2,Python,Pandas,Postgresql,Timezone,Psycopg2,我正在使用PostgreSQL存储带有时区信息的时间戳。当使用pandas.read_sql()从python查询时,这些时间戳将作为datetime.datetime对象返回,tzinfo为psycopg2.dt.fixedoffsettimezone(…)。是否有任何方法可以返回或有效地将这些日期时间转换为pandas时间戳,以便使用pandas功能轻松操纵它们

我正在使用PostgreSQL存储带有时区信息的时间戳。当使用pandas.read_sql()从python查询时,这些时间戳将作为datetime.datetime对象返回,tzinfo为psycopg2.dt.fixedoffsettimezone(…)。是否有任何方法可以返回或有效地将这些日期时间转换为pandas时间戳,以便使用pandas功能轻松操纵它们