Back to project page EnterpriseShow.
The source code is released under:
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...
If you think the Android project EnterpriseShow listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ruixinyuan.producttrainingfinal.utils; /*w w w . j av a2 s. c o m*/ import java.util.Calendar; import java.util.Locale; /* *@user vicentliu *@time 2013-6-26????3:54:11 *@package com.ruixinyuan.producttrainingfinal.utils */ public class TimeUtils { /** * ?????????????????????????????????? * @return */ public static boolean isEightOClockNow () { Calendar calendar = Calendar.getInstance(Locale.CHINA); int hour = calendar.get(Calendar.HOUR_OF_DAY); int minute = calendar.get(Calendar.MINUTE); int minuteOfDay = hour * 60 + minute; int startTime = 8 * 60 + 00; //????8? int endTime = 8 * 60 + 40; //??????8???? if (minuteOfDay > startTime && minuteOfDay < endTime) return true; else return false; } }