/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.time.* ;
import java.time.format.* ;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{

		String inputGood = "2015-07-30T09:32:05.543+02:00" ;
		String inputBad = "2015-07-35T09:32:05.543+02:00" ;

		try{ 
			// Good
			OffsetDateTime odtGood = OffsetDateTime.parse( inputGood ) ;
			System.out.println( "odtGood.toString(): " + odtGood ) ;
	
			// Bad
			OffsetDateTime odtBad = OffsetDateTime.parse( inputBad ) ;
			System.out.println( "odtBad.toString(): " + odtBad ) ;
		} catch ( DateTimeParseException e ) {
			System.out.println( e ) ;
		}



}
}