def timedelta2millisecond(td):
milliseconds = td.days * <NUM_LIT> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT:1000><EOL>milliseconds += td.seconds * <NUM_LIT:1000><EOL>milliseconds += td.microseconds / <NUM_LIT:1000><EOL>return milliseconds<EOL>
Get milliseconds from a timedelta.