• 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 ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Julien Date and SQL TimeStamp conversions

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,
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic