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.  Convert unix time stamp

    Posted Sat February 20, 2010 11:46 AM

    Tell me how to convert unix time stamp to date and time format using java service r flow service.


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


  • 2.  RE: Convert unix time stamp

    Posted Sat February 20, 2010 01:16 PM


  • 3.  RE: Convert unix time stamp

    Posted Mon February 22, 2010 06:42 AM

    HI Karthik,
    There are couple of things for you to know.

    1. If you have started any thread then post all your replies in the same thread. Do not send any private message for the same thread. As others may be having the same problem and private message replies will not reflect in the thread so there will be no use of opening any new thread on this forum.
    2. Before raising any query, must go through the PDF/documentation, search similar thread if/any on this forum. Also if you want the usage of any service then Built in service PDF is available in WM documentation use them they are quite helpful.

    Anyways reply to you question is :
    Service takes current timestamp (EX: inString=‘20102202111055’), current pattern (Ex: currentPattern=‘yyyyddmmhhMMss’), newPattern (Ex: new Patther=‘dd-mm-yyyy hh:MM:ss’)(new patthern is what the way you want). Run the service and you will get desired result.


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


  • 4.  RE: Convert unix time stamp

    Posted Tue February 23, 2010 11:05 PM

    Extracted from http://www.epochconverter.com/

    Cheers


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


  • 5.  RE: Convert unix time stamp

    Posted Fri September 10, 2010 04:52 PM

    Here is an example using pub.date:dateTimeFormat:

    inString=1282320382
    currentPattern=s
    newPattern=MM/dd/yyyy HH:mm:ss

    Returns

    value=08/20/2010 16:06:22


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