Skip to content

Instantly share code, notes, and snippets.

@mkorman90
Created December 26, 2019 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkorman90/435e4271e296e2dfbbbb2179d3470d44 to your computer and use it in GitHub Desktop.
Save mkorman90/435e4271e296e2dfbbbb2179d3470d44 to your computer and use it in GitHub Desktop.
Parse Symantec VBN timestamp format
import datetime as dt
from textwrap import wrap
def convert_sep_time(timestamp):
year, month, day, hours, minutes, seconds = wrap(timestamp, 2)
return dt.datetime(year=int(year, 16) + 1970, month=int(month, 16) + 1, day=int(day, 16), hour=int(hours, 16),
minute=int(minutes, 16),
second=int(seconds, 16))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment