Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11334
| From | sahm <sahm007@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | How can I use Operand (+ , - ) with Time |
| Date | 2012-01-14 23:44 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <34afdd1f-4549-48a9-878c-8678993e97ed@t30g2000vbx.googlegroups.com> (permalink) |
Hi every One
I'm Try to do program to calculate the Over Time, I'm working with 24
hour not A.M. & P.M. and this is my Time format (HH:MM:SS) (00:00:00).
But how can I use operand (+, -) with Time
This is my Code
/////////////////////////////////////////////////////////////////////
import java.sql.Time;
import java.util.Date;
public class OverTimeDetailsDataClass {
String Emp_ID;
String OverTime_Doc_NO;
String OverTime_Date;
Time OverTime_Start_Time;
Time OverTime_End_Time;
Time OverTimeTotalHours;
OverTime_Start_Time =
Time.valueOf(OverTimeFromjTextField.getText());
OverTime_End_Time = Time.valueOf(OverTimeTOjTextField.getText());
OverTimeTotalHours = OverTime_End_Time - OverTime_Start_Time;
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Best
Salim
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
How can I use Operand (+ , - ) with Time sahm <sahm007@gmail.com> - 2012-01-14 23:44 -0800
Re: How can I use Operand (+ , - ) with Time Jeff Higgins <jeff@invalid.invalid> - 2012-01-15 08:32 -0500
Re: How can I use Operand (+ , - ) with Time Jeff Higgins <jeff@invalid.invalid> - 2012-01-15 08:52 -0500
Re: How can I use Operand (+ , - ) with Time Jeff Higgins <jeff@invalid.invalid> - 2012-01-15 10:19 -0500
Re: How can I use Operand (+ , - ) with Time sahm <sahm007@gmail.com> - 2012-01-15 07:55 -0800
Re: How can I use Operand (+ , - ) with Time Lew <noone@lewscanon.com> - 2012-01-15 10:50 -0800
Re: How can I use Operand (+ , - ) with Time Roedy Green <see_website@mindprod.com.invalid> - 2012-01-15 08:35 -0800
Re: How can I use Operand (+ , - ) with Time Lew <noone@lewscanon.com> - 2012-01-15 10:31 -0800
Re: How can I use Operand (+ , - ) with Time Lew <noone@lewscanon.com> - 2012-01-15 10:51 -0800
Re: How can I use Operand (+ , - ) with Time Jeff Higgins <jeff@invalid.invalid> - 2012-01-15 14:45 -0500
Re: How can I use Operand (+ , - ) with Time Jeff Higgins <jeff@invalid.invalid> - 2012-01-15 15:53 -0500
Re: How can I use Operand (+ , - ) with Time Lew <noone@lewscanon.com> - 2012-01-15 15:36 -0800
Re: How can I use Operand (+ , - ) with Time glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-01-15 20:07 +0000
Re: How can I use Operand (+ , - ) with Time Lew <noone@lewscanon.com> - 2012-01-15 15:39 -0800
csiph-web