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

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

import java.time.* ;
import java.time.temporal.* ;

/* 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
	{

        OffsetDateTime odt = OffsetDateTime.parse( "2018-07-27T13:18:26.452+02:00" ) ;
        OffsetDateTime odtTrunc = odt.truncatedTo( ChronoUnit.SECONDS ) ;
        
        System.out.println( "odt.toString(): " + odt ) ;
        System.out.println( "odtTrunc.toString(): " + odtTrunc ) ;

	}
}