How to add 30 minutes to java.sql.Time object? -


i have time object:

time mytime = java.sql.time.valueof("15:33:00"); 

how can add 30 minutes mytime in java? means new time 16:03:00

 java.sql.time mytime = java.sql.time.valueof("15:33:00");  localtime localtime = mytime.tolocaltime();  localtime = localtime.plusminutes(30);  string output = localtime.tostring(); 

you can localtime straight away java.sql.time , can use plusminutes in localtime api add 30 minutes. might check this


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -