Pretty much...its not extremely elegant but it works. I've never verified this method for leap years and such, so you may want to verify this with a short test.
Type: Posts; User: copeg
Pretty much...its not extremely elegant but it works. I've never verified this method for leap years and such, so you may want to verify this with a short test.
Take a look at Calendar in the java API. It will allow you to set a date, and from there you can add on specified times and recalculate the date.A simple example:
public static void main(String[]...