The usage of time Calendar Class in java
This article mainly introduces "the usage of time Calendar class in java". In daily operation, I believe that many people have doubts about the usage of time Calendar class in java. The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "the use of time Calendar class in java". Next, please follow the editor to study!
Calendar calendar = Calendar.getInstance (); int y = calendar.get (Calendar.YEAR); int m = calendar.get (Calendar.MONTH); int d = calendar.get (Calendar.DATE); int h = calendar.get (Calendar.HOUR_OF_DAY); int mi = calendar.get (Calendar.MINUTE); int s = calendar.get (Calendar.SECOND). At this point, the study of "the use of time Calendar in java" is over, hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!