• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Julien Date and SQL TimeStamp conversions

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic