Time-min manipulation

Is there an API for quick manipulation (for example, adding, subtracting) by time (hour, minute).

Below is the pseudo code

Time t1 = "5 PM";
t1.add("5 minutes");
t1.subtract("90 minutes");
+3
source share
3 answers

'of course: http://download.oracle.com/javase/1.4.2/docs/api/java/util/Calendar.html#add%28int,%20int%29

You will need to set the parameter fieldaccordingly using one of the constants defined in the "Field Summary" section on the previous page

+3
source

http://veyder-time.enblom.org - java.util joda-time.

0
source

Source: https://habr.com/ru/post/1778231/


All Articles