Results 1 to 1 of 1
- 05-19-2011, 07:46 AM #1
Member
- Join Date
- May 2011
- Posts
- 8
- Rep Power
- 0
Discrepancy in timestamp between unix and java client timelog.
Hi,
I am using an application where I am getting 2 log files.
One log file is generated which prints the timestamp using "c" language code.
Another prints the timestamp using following java function:
public static String getCurrentTimeStamp()
{
SimpleDateFormat simpledateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
Date date = new Date();
String s = simpledateformat.format(date);
return s;
}
The issue is there is a difference of around 90 seconds between both the time.
For example:
"c" Log --> Request Sent to java Client : Tue May 18 10:57:30:326
Java Log -->Request Recevived by Java CLIENT : [2011-05-18 10:59:00.303]
Though it is sure that the requests received by java client in just 15-20 miliseconds but still it is showing a time difference of around 90 seconds between both the log.
Is anyone having any idea of experiencing such behaviour.
Thanks,
Similar Threads
-
Discrepancy in timestamp between unix and java client timelog.
By ashishb4 in forum Advanced JavaReplies: 0Last Post: 05-18-2011, 11:37 AM -
To_date function through Java shows timestamp
By mpavithra in forum Enterprise JavaBeans (EJB)Replies: 2Last Post: 07-29-2010, 08:59 AM -
Reading timestamp value from Oracle database using Java Spring
By sm123 in forum New To JavaReplies: 3Last Post: 07-22-2010, 12:28 PM -
Send object via web service, with a java.sql.Timestamp attribute
By diegofsza in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 08-15-2009, 11:40 PM -
java.sql.Date incompatible with java.sql.Timestamp
By nn12 in forum New To JavaReplies: 2Last Post: 12-08-2008, 03:42 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks