How do I add time to a timestamp?
问题 I need to add 14 minutes and 59 seconds to an unknown time in an array. How do I do this? This is what I have so far: Date duration = df.parse("0000-00-00 00:14:59"); arrayOpportunity[2] = arrayOpportunity[2] + duration; The time is not being changed. Thanks! I have done my research. I cant paste the entire code I have. But mainly I didnt want to make you read it all. Just looking for a simple answer of how to add two timestamps. 回答1: If you are talking about a java.sql.Timestamp , it has a