returns the duration in minutes . concode_field_sep Calendar start concode_elem_sep Calendar end concode_field_sep Calendar getStart concode_elem_sep String toString concode_elem_sep Calendar getEnd concode_elem_sep boolean matches
long function ( ) { if ( start == null || end == null ) { return - 1 ; } if ( start . after ( end ) ) { return 0 ; } long loc0 = end . getTimeInMillis ( ) - start . getTimeInMillis ( ) ; return loc0 / 60000 ; }