aspose file tools
The moose likes Java in General and the fly likes Julien Date and  SQL TimeStamp conversions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Julien Date and  SQL TimeStamp conversions" Watch "Julien Date and  SQL TimeStamp conversions" New topic
Author

Julien Date and SQL TimeStamp conversions

Abhishek Kumar Jha
Greenhorn

Joined: Jul 10, 2007
Posts: 4
Hi All,
I need to convert the Julien date into gregorian which i could do but now i need to convert the SQL TimeStamp which is in nano seconds into the Normal TimeStamp i.e. hh:mm:ss.ssssssss

These date and time stamp is coming straight out of mainframe which my Java programme has to convert into the normal format.

I can also concatenate the above two fields i.e. MF Julien date and Timestampe and convert the entire thing into milliseconds.
I need to do this as i have to find the processing time usign this Main frame date and time stamp as an entry date and then putting a timer at the end in my java programme as an exit time.Finally the diff between these two wud give me the resultant time consumed for processing.

As an exmaple.
One example for Date could be :- 2007184 //this is YYYYDDD format
One example for Timestamp could be :- 0409561239 // this is SQL Timestamp
from Mainframe in nano seconds.

Any pointers on this will be highly appreciated.



Thanks in Advance,
Abhishek
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Julien Date and SQL TimeStamp conversions
 
Similar Threads
Date comparison
Julien Date and SQL TimeStamp conversions
java.sql.Timestamp question
Hundredth of a second, how to format?
string to timestamp