Skip to content

Instantly share code, notes, and snippets.

@blaylockbk
Last active November 3, 2016 21:49
Show Gist options
  • Save blaylockbk/93d0946cc94d3d98d409c11cd99bf6c6 to your computer and use it in GitHub Desktop.
Save blaylockbk/93d0946cc94d3d98d409c11cd99bf6c6 to your computer and use it in GitHub Desktop.
Takes a list of Epoch times and converts it to a list of python datetime objects
# where dates is a list or numpy array of epoch dates...
DATE = [datetime.utcfromtimestamp(x) for x in dates]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment