Created
December 26, 2019 08:32
-
-
Save mkorman90/435e4271e296e2dfbbbb2179d3470d44 to your computer and use it in GitHub Desktop.
Parse Symantec VBN timestamp format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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