Java Code Examples for ims.framework.utils.Time.getHour()

The following are Jave code examples for showing how to use getHour() of the ims.framework.utils.Time class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private int calculateDuration(Time startTm, Time endTm)
{
	if(startTm == null || endTm == null)
		return 0;
		
	int fromValue = (startTm.getHour() * 60) + startTm.getMinute();
	int toValue = (endTm.getHour() * 60) + endTm.getMinute();
	return toValue - fromValue;
}