angr/procedures/win32/sim_time.py
def fill_from_timestamp(self, ts):
        """
        Fill the class with the appropriate values extracted from the given timestamp.

        :param ts:  A POSIX timestamp.
        """
        dt = datetime.datetime.fromtimestamp(ts)
        self.wYear = dt.year
        self.wMonth = dt.month
        self.wDayOfWeek = dt.isoweekday() % 7 # :/
        self.wDay = dt.day
        self.wHour = dt.hour
        self.wMinute = dt.minute
        self.wSecond = dt.second
        self.wMilliseconds = dt.microsecond // 1000

        Fill the class with the appropriate values extracted from the given timestamp.

        :param ts:  A POSIX timestamp.
        
Fill the class with the appropriate values extracted from the given timestamp.
Fill the class with the appropriate values extracted from the given timestamp .
def fill_from_timestamp(self, ts):
        dt = datetime.datetime.fromtimestamp(ts)
        self.wYear = dt.year
        self.wMonth = dt.month
        self.wDayOfWeek = dt.isoweekday() % 7 
        self.wDay = dt.day
        self.wHour = dt.hour
        self.wMinute = dt.minute
        self.wSecond = dt.second
        self.wMilliseconds = dt.microsecond // 1000
def fill_from_timestamp ( self , ts ) : dt = datetime . datetime . fromtimestamp ( ts ) self . wYear = dt . year self . wMonth = dt . month self . wDayOfWeek = dt . isoweekday ( ) % 7 self . wDay = dt . day self . wHour = dt . hour self . wMinute = dt . minute self . wSecond = dt . second self . wMilliseconds = dt . microsecond // 1000
Fill the class with the appropriate values extracted from the given timestamp.
Fill the class with the appropriate values extracted from the given timestamp .
"""
        Fill the class with the appropriate values extracted from the given timestamp.

        :param ts:  A POSIX timestamp.
        """ # :/
self
ts
A POSIX timestamp.
A POSIX timestamp .