Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def __get_offset(datetime_index):
  2.  
  3. local = pytz.timezone('Europe/Lisbon')
  4. dt = datetime_index
  5. offset = [local.utcoffset(dt[x], is_dst=True).seconds / 3600 for x in range(dt.__len__())]
  6. return offset
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement