Calendar Class 日历类
Listing 7 demonstrates code to get a new instance of the Calendar class, obtain the hour of the day (which is returned in a 24-hour format), and then put together a simple greeting based on that hour.
清单7给出了获得calendar类新实例的代码,从而得到一天中的具体时间(以24小时的格式返回),然后根据这个时间组合出一条简单的欢迎词。
Now, you can add a class activity using the Datepicker calendar.
现在,您可以使用Datepicker日历添加一个课堂活动。
This class supports changing the date by different settings via constants in the Calendar class; for example, Calendar.WEEK_OF_MONTH to change the date one week at a time.
该类支持通过将 Calendar 类中的常数设置为不同的值来更改日期;例如, Calendar.WEEK_OF_MONTH 每次将日期更改一周。
应用推荐