IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  microseconds format in timestamp

    Posted Tue August 19, 2008 12:04 PM

    Hi

    I need the timestamp format as [SIZE=2]
    1900-01-01-00.00.00.000000. Last 6 digits are micro seconds.

    To have the microseconds do i need to go for a java service or it can be achieved through flowservice?
    Please suggest.

    Thanks
    Shyam
    [/size]


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: microseconds format in timestamp

    Posted Tue August 19, 2008 03:37 PM

    Please refer to the pub.date services in the IS built-in services reference. You can also search for “Pattern String Symbols” in that document.

    Mark


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: microseconds format in timestamp

    Posted Wed August 20, 2008 12:23 AM

    Use the pattern as “yyyy-MM-dd-hh.mm.ss.SSSSSS” to get your expected result.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 4.  RE: microseconds format in timestamp

    Posted Wed August 20, 2008 08:27 AM

    I don’t think you can get microsecond using the built-in services. S represents milliseconds so if you use a pattern with SSSSSS, you will just end up with 3 zeroes and then your 3-digit milliseconds.

    If you trully need that much precision in your timestamp, you’ll probably have to do some coding.

    • Percio

    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: microseconds format in timestamp

    Posted Wed August 20, 2008 10:06 AM

    S stands for milliseconds and if i use the above format i will get the coverted milliseconds to microsecond but not actual microseconds…

    i mean for 210 milliseconds i will get 000210 microseconds…mathematically which is correct but the requirment here is i need the actual microseconds starting from 0.

    Hope u understand the problem…
    Please suggest

    Thanks
    Shyam


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: microseconds format in timestamp

    Posted Wed August 20, 2008 06:04 PM

    Where is the time reading coming from? You’re not going to get a microseconds reading from any of today’s OS/hardware combinations. Milliseconds is likely the highest resolution you’ll be able to achieve and most likely the best accuracy will be something like 20 milliseconds, depending on hardware, OS and JVM.

    [URL]Categories

    While Java 1.5 introduced the nanoTime() method, it can be used to measure elapsed time, not determine current time of day.

    I imagine it was a typo but 210 milliseconds is not 000210 microseconds. It is 210000.

    What sort of integration are you working on? It seems odd to me that time accuracy to the microsecond is a necessary for a business integration.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 7.  RE: microseconds format in timestamp

    Posted Thu August 21, 2008 11:41 AM

    Thanks all for ur valuable suggestions… may be will stick for milliseconds precision.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services