Here you can find the source of isAfterWorkTime(Calendar start)
public static boolean isAfterWorkTime(Calendar start)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**//from w ww. j a v a 2 s . c o m * The default when the workday ends (5PM) */ public static final int END_WORKDAY = 17; /** * Determines whether or not the date is after the start of the work day * * @see #END_WORKDAY */ public static boolean isAfterWorkTime(Calendar start) { final int hourOfDay = start.get(Calendar.HOUR_OF_DAY); return hourOfDay >= END_WORKDAY; } }