djdb/models.py
def duration(self):
        """A human-readable version of the track's duration."""
        dur_ms = self.duration_ms % 1000
        dur_s = ((self.duration_ms - dur_ms) // 1000) % 60
        dur_m = (self.duration_ms - dur_ms - 1000*dur_s) // 60000
        return "%d:%02d" % (dur_m, dur_s)
A human-readable version of the track's duration.
A human-readable version of the track's duration.
A human - readable version of the track ' s duration .
def duration(self):
        dur_ms = self.duration_ms % 1000
        dur_s = ((self.duration_ms - dur_ms) // 1000) % 60
        dur_m = (self.duration_ms - dur_ms - 1000*dur_s) // 60000
        return "%d:%02d" % (dur_m, dur_s)
def duration ( self ) : dur_ms = self . duration_ms % 1000 dur_s = ( ( self . duration_ms - dur_ms ) // 1000 ) % 60 dur_m = ( self . duration_ms - dur_ms - 1000 * dur_s ) // 60000 return "%d:%02d" % ( dur_m , dur_s )
A human-readable version of the track's duration.
A human - readable version of the track ' s duration .
"""A human-readable version of the track's duration."""
self