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