(self)
return int(seconds*1000 + micro/1000)
Get milliseconds since midnight.
Get milliseconds since midnight.
Get milliseconds since midnight .
def get_time_ms(self):
        """Get milliseconds since midnight."""
        now = datetime.datetime.now() + self.time_offset
        midnight = datetime.datetime(now.year, now.month, now.day)
        diff = now-midnight
        seconds = diff.seconds
        micro = diff.microseconds
        return int(seconds*1000 + micro/1000)
def get_time_ms ( self ) : now = datetime . datetime . now ( ) + self . time_offset midnight = datetime . datetime ( now . year , now . month , now . day ) diff = now - midnight seconds = diff . seconds micro = diff . microseconds return int ( seconds * 1000 + micro / 1000 )