How to check if time in day is between two times?

前端 未结 5 783
说谎
说谎 2021-01-27 16:24

In my app I create an object that represents a high school class. This object holds 2 Calendar objects that represents the class\'s start and stop time each day. When a user c

5条回答
  •  误落风尘
    2021-01-27 16:26

    The Calendar class has a get method where you can get different fields

    e.g.

    int hr = time.get(Calendar.HOUR_OF_DAY)
    

提交回复
热议问题