from datetime import datetime


def _proc_timestamp_struct(tup):
    """A utility function to convert 8 integers corresponding to Windows 
    SYSTEMTIME to Python datetime class Neuroshare file headers often contain 
    Windows SYSTEMTIME structs
    input: tup holding eight integers
    returns: datetime instance
    """
    return datetime(tup[0], tup[1], tup[3], tup[4],
        tup[5], tup[6], tup[7]*1000)