DS1337.cpp
void DS1337::setTime(String time) {
	time.trim();
	if (time.length()==5)
	setTime(time.substring(0, 2).toInt(), time.substring(3, 5).toInt());
	else if (time.length()==8)
		setTime(time.substring(0, 2).toInt(), time.substring(3, 5).toInt(), time.substring(6, 8).toInt());
}
/**
* Set the time with string in form of hh:mm or hh:mm:ss
*/
Set the time with string in form of hh:mm or hh:mm:ss
Set the time with string in form of hh : mm or hh : mm : ss
void DS1337::setTime(String time) {
	time.trim();
	if (time.length()==5)
	setTime(time.substring(0, 2).toInt(), time.substring(3, 5).toInt());
	else if (time.length()==8)
		setTime(time.substring(0, 2).toInt(), time.substring(3, 5).toInt(), time.substring(6, 8).toInt());
}
void DS1337 :: setTime ( String time ) { time . trim ( ) ; if ( time . length ( ) == 5 ) setTime ( time . substring ( 0 , 2 ) . toInt ( ) , time . substring ( 3 , 5 ) . toInt ( ) ) ; else if ( time . length ( ) == 8 ) setTime ( time . substring ( 0 , 2 ) . toInt ( ) , time . substring ( 3 , 5 ) . toInt ( ) , time . substring ( 6 , 8 ) . toInt ( ) ) ; }
Set the time with string in form of hh:mm or hh:mm:ss
Set the time with string in form of hh : mm or hh : mm : ss