Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
277 views

Covert Unix Timestamp to AOE

I am trying to convert a Unix timestamp to AoE time. I tried pytz but it seems that there is no AoE time in pytz. Is there any way that I can do it? tz = pytz.timezone('AOE') timestamp_aoe = datetime....
Gan Sama's user avatar
1 vote
1 answer
1k views

Changing Timestamps from tz='UTC' to tz='tzutc()'

I have a series from an API call and it gives me the index in the format timeseries.index.values[0] >>> Timestamp('2019-10-25 15:33:26.068569856+0000', tz='tzutc()') Then I'm appending ...
cheesus's user avatar
  • 1,191
1 vote
1 answer
582 views

How to change pandas timestamps to python datetime objects?

I am searching for a way to change pandas timestamps to python datetime objects and I am failing. I used to_pydatetime(). Below is my code with comments: import pandas import datetime import pytz ...
Lev's user avatar
  • 663
0 votes
1 answer
173 views

Get timestamp for 27/02/2019 00:00 US/Eastern in python using pytz and datetime

I have the following string: 27/02/2019 As it is known in the program that those dates correspond to NY time zone, I would like to get the timestamp corresponding to: 27/02/2019 00:00 US/Eastern I ...
M.E.'s user avatar
  • 5,565
4 votes
2 answers
6k views

Is there a "local" timestamp?

I can convert from an UTC timestamp e.g. 1417392000 to a local datetime object including daylight saving time, but when I try and convert the local datetime object to a "local timestamp" then I get ...
Niklas Rosencrantz's user avatar
1 vote
0 answers
2k views

keep timezone "CET" from convert into "CEST" in python

If I use the following command to localize my timestamp to "CET": pd.Timestamp('2011-11-06 11:00:00').tz_localize('CET') output: Timestamp('2011-11-06 11:00:00+0100', tz='CET') if I use : pd....
user6396's user avatar
  • 1,930
16 votes
1 answer
20k views

Python pytz Converting a timestamp (string format) from one timezone to another

I have a timestamp with timezone information in string format and I would like to convert this to display the correct date/time using my local timezone. So for eg... I have timestamp1 = 2011-08-24 13:...
Angela's user avatar
  • 1,731