Clocks

LSDJ’s clocks serve as a way to track the amount of time the current song has been worked on. The global clock also has a checksum, which provides a check against file corruption.

pylsdj.clock.TotalClock is a wrapper around a song’s global clock data. Modifying any of the clock’s fields (days, hours, or minutes) will also update the checksum accordingly.

pylsdj.clock.Clock is a wrapper around a song’s local clock
data. It only tracks hours and minutes.

Usage Examples

Get a clock’s days

>>> clock.days
5

Set a clock’s hours:

>>> clock.hours = 6

API Documentation

class pylsdj.clock.TotalClock(clock_data)
checksum

the clock’s checksum (days + hours + minutes)

days

The total number of days on the clock.

hours

The total number of hours on the clock.

minutes

The total number of minutes on the clock.

class pylsdj.clock.Clock(clock_data)
hours

The total number of hours on the clock.

minutes

The total number of minutes on the clock.