Convert Date Format Python Method Optional Variable Resistor Definition