public String getInternalTimeString ( ColumnInformation columnInfo ) { if ( lastValueWasNull ( ) ) { return null ; } String rawValue = new String ( buf , pos , length , StandardCharsets . UTF_8 ) ; if ( "0000-00-00" . equals ( rawValue ) ) { return null ; } if ( options . maximizeMysqlCompatibility && options . useLegacyDatetimeCode && rawValue . indexOf ( "." ) > 0 ) { return rawValue . substring ( 0 , rawValue . indexOf ( "." ) ) ; } return rawValue ; }
Get Time in string format from raw text format .