Millis to hh:mm:ss

what is the best way to display a value of milli seconds in the form hh:mm:ss
the value will only be small (a couple of minutes max);
I have tried a few different approaches, using Date and Calendar but just cant get it working. any help would be great.
cheers Paul.

Actually I think I misstated it, I believe I am 5 hours ahead of GMT and you are 1 hour behind. Can you create your own class and pass in milliseconds. For example:
import java.text.*;
import java.util.*;
public class TestTime {
   /*=**********
   * constants *
   public static long MS_SECOND = 1000L;
   public static long MS_MINUTE = 60L * MS_SECOND;
   public static long MS_HOUR = 60L * MS_MINUTE;
   public static long DAY = 24L;
   /*=**************
   * formatMilli() *
   public static String formatMilli(long value) {
      //DecimalFormat is used to display at least two digits
      DecimalFormat nf = new DecimalFormat("00");
      //calculate hours, minutes, and seconds
      long remainder = 0;
      long hours = (value / MS_HOUR) % DAY;
      remainder = value % MS_HOUR;
      long minutes = remainder / MS_MINUTE;
      remainder = remainder % MS_MINUTE;
      long seconds = remainder / MS_SECOND;
      //build "hh:mm:ss"
      StringBuffer buffer = new StringBuffer();
      buffer.append(nf.format(hours));
      buffer.append(":");
      buffer.append(nf.format(minutes));
      buffer.append(":");
      buffer.append(nf.format(seconds));
      return buffer.toString();
   }//end formatMilli
   public static void main(String args[]) {
      System.out.println(TestTime.formatMilli(5000));
      System.out.println(TestTime.formatMilli(150099999));
   }//end main
}//end TestTime classtajenkins

Similar Messages

  • What is difference between SAP R3 And SAP IS Mills Product

    HI Friends
    What is difference between SAP R3 And SAP IS Mills Product
    What are the futures are availables in IS MIlls
    Regards

    Hi,
    SAP R/3 is the central enterprise version. It is not specifically designed for any inducstry sectors and it can cater many of the industry types.
    Is is developed for specific industries an for SMB's (small and medium business). It will have components specifically for the industry.
    The SAP Mill Products component adds sector-specific functionality to an ERP system to satisfy the complex requirements of mill industries (e.g. metal, wood, paper, textiles, construction materials, and cable sectors).
    These industry segments differ from others primarily in that the materials used have a large number of characteristics and variants. The materials in the segments listed above are also predominantly area-based (e.g. paper, textiles, plastic film) or length-based (e.g. cables, piping). Account must be taken of these material characteristics throughout the entire supply chain.
    To cater for the particularities of these industry segments, SAP Mill Products features processes and functions that cover the entire supply-chain cycle – from product design and configuration, through planning, order processing, capacity planning and production, to final delivery. Additional functions are available in costing and inventory management. SAP Mill Products are also integrated into Quality Management, Financial Accounting, and Controlling.
    Prase

  • Michael Miller: Removed Cannot log in (old mail on file?) and cannot download Lightroom 5.6 from inside Lightroom.  Get NO DATA RECEIVED error. Need to get back on Chat.

    This was my previous discussion with Adobe Chat, which I CANNOT FIND a link to now.
    It's a catch 22.  I think Adobe still had my old email address, which I have deleted with Comcast.
    Therefore, Adobe cannot send me a change of password form, nor can I update my email.
    I think Chat is my best bet, but cannot find link.
    Note, I may not be able to receive forum responses, if Adobe notifies my old email address.
    If I need to sign in to get responses, I cannot do that either. Adobe reports an error if I use my old address.
    I cannot update my email address, without signing in.
    Adobe, and everyone else needs to have links for: Forgot Your Password? -AND- Forgot Your Email (or changed it).
    Please reach me outside of Adobe at: <Removed by Moderator>
    I am a registered customer with products on file.
    Chat History:
    Sandesh: May I have the email address to  which you have access ?
    you: Correct address is:<Removed by Moderator>
    But, do I have to login to download updates. I got the dialog directly from LR, when I opened it.
    Sandesh: May I have the serial number of the product please ?
    you: LR 5: <serial number removed by moderator>
    Sandesh: Thank you.
    Sandesh: May I know the exact error message you are getting ?
    you: NO DATA RECEIVED. In the meantime, I found another LR ID: <serial number removed by moderator> in case you need it.
    Sandesh: Sure.
    Sandesh: May I know whether you are using the Dvd or the download ?
    my comment (I already said download above).
    you: Trying to download from your Adobe web site.
    Sandesh: Okay.
    Sandesh: Please allow me  a moment.
    Sandesh: Could you please copy paste the URL of the download link you are using on the chat screen so that I can check ?
    Sandesh: Are we still connected?
    Added today: 8/19/2014:
    The link the download button is on, is:
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5823&fileID=5837
    Loading message says: Waiting for download.adobe.com
    The page the error is on, is:
    http://download.adobe.com/pub/adobe/lightroom/win/5.x/Lightroom_5_LS11_win_5_6.exe
    Then, while Sandesh was researching, I had to leave the room for too long and then had to go out.  So,
    Sandesh: Since we have not heard from you for some time, we will now end this chat.

    Michael Miller please try a different web browser.  You may also want to review your host file to ensure the Adobe servers are not being blocked.  You can find details on how to review your host file at Sign in, activation, or connection errors | CC, CS6, CS5.5 - http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html.
    I was able to download the Lightroom 5.6 update without any errors.  If you continue to face difficulties you may want to try a different Internet connection or download the update onto a USB drive on a different computer.

  • What are the solutions offered to handle length based or mill products?

    We are on 11.5.10. Current version treats beams as each, we have 30 feet beams, 20 feet beams etc.
    We do not want to set-up different items for each length of beam.
    We need ability to tell we have 10 pieces of 26 feet beams in inventory.
    Currently we can only tell we have 260 feet of beams.
    Current solution treats it discretley. We need ability to sell length based items, receive length based items, do inventory management based on length based items.
    a) What are the solutions offered by Oracle in latest releases for Length based products or for Mill products.
    b) If there are any solutions offered by Oracle to handle length based or mill products, can these be back ported to Oracle 11.5.10?

    At the time of entering orders, item inquiry, receiving, inventory transfers etc...You can enter the lot attributes during receiving because you create a new lot number.
    On Item onhand inquiry, you can enter lot context and lot attributes to limit your search to specific lots.
    You may have to write personalizations on other screens.
    Hope this helps,
    Sandeep Gandhi

  • Need milli seconds part in XSLT Date Function  current-dateTime()

    Hi All,
    I am calling date function, current-dateTime() in XSL. The output format is 2012-04-05T16:38:01-07:00 (Without milli seconds)
    How to get the milli seconds part...?
    Regards,
    Sudheer

    Hi Arik....
    At last i got it. :)
    Followed the below steps.
    Step1:
    Created a String variable "currentDateTimeValue" in BPEL.
    Step2:
    I have used the below code in JavaEmbedding in BPEL.
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat();
    //Date Pattern looks lil weird. But some Web service accepts only this format.
    sdf.applyPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'-00:00'");//2012-04-14T16:24:00.578-00:00
    String formattedDate = sdf.format(new java.util.Date());
    addAuditTrailEntry("Formatted datetime string is: " + formattedDate);
    setVariableData("currentDateTimeValue", formattedDate);
    Step3:
    Created a Simple XSD with an element "DateElement" of String type.
    Step4:
    Assigned "currentDateTimeValue" value to "DateElement" element, in Assign activity.
    Step5:
    Now added this DateElement in Transformation activity, as a second source variable. Mapped this data to the required target element in my XSL.
    uh-huh I got the output...
    Thanks a ton ARIK :D u r really helpful...
    Regards,
    Sudheer

  • Old html files (done on Page Mill) do not open in latest Dreamweaver

    I have a large website with many html pages, all developed on the old Adobe Page Mill application.  When I try to open any of those html pages onto my new Dreamweaver CS5.5 on my new iMac, those html files are not recognized as "openable" (their titles appear in light gray, and clicking on them does not open them.  I can't even click and drag them into the Dreamweaver window.  How can I open those old html files in Dreamweaver?

    May I recommend you to read this article first to get the basics of "Defining a site" in DW.
    <http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html>
    This article will give you a head start in Working with DW.  Page Mill files are simple text file and they should open readily in DW but who knows what has gone with your system that nothing seems to work.
    Good luck.

  • Frameshifts from Page Mill not displayed same way in DW CS5.5

    I currently have a very large website that I created about 13 years ago with Adobe Page Mill, and have been maintaining ever since with Page Mill.  The site has about 1,121 pages plus 277 images – about 221 MB altogether.  There are lots of inter-page links and links to other websites.
    My home page has a frameset consisting of one full-width top frame, with two column frames below.  In Dreamweaver CS5.5’s Live View and Firefox preview, it looks fine, and all hotlinks seem to be  working.  But in Design display, the lower right frame has shifted to just below the lower left frame, but on the right side.
    I hope I don’t have to completely remake this page (and others with similar framesets).  Is there any way to bring that lower right frame up alongside the lower left frame in the Design view, so it looks more like it’s supposed to?
    Larry

    Tried to shift to Adobe's *InDesign* several years ago
    But that's a print graphics app and wouldn't help you at all with web development.
    The site is very popular with teachers (getting 3k to 6k hits
    every month, with lots of positive feedback, no mention of problems with the
    site.
    Nobody would ever know that the ranking system you have there will not work at all.  It does nothing.  There is no form to submit.  You click the button and nothing gets submitted.
    But I am about to train a teacher colleague about the site and how to
    maintain it so we can share the management of the site.  For this, I felt I
    needed to bite the bullet and learn Dreamweaver, which meant getting a new
    Intel-based iMac.
    What you need to learn is *NOT* DW, it's HTML and CSS.  With a fair understanding of that, you can teach yourself DW in a long weekend.  But for sure, if you are going to try to teach someone else how to maintain the site, you'd better make sure that the code is right, otherwise it'll break constantly and will drive you and your colleague nuts.  I'd say the code status at the moment is "dreadfully close to unacceptable".
    You mentioned that my Home page is not framed.  Page Mill called this a page
    with a frameset – a set of three frames.  Apparently they are called
    something else (or not recognized as such) by the current HTML.  What ARE
    those things that look like frames?
    HTML tables.
    Actually, I was incorrect.  The pages
    with framesets are mostly the index pages, like this one:
    http://www.indiana.edu/~ensiweb/evol.fs.html
    Yes - that's a frameset allright - and it's straight out of the crypt!
    <HTML> 
    <HEAD>
      <META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Mac">
      <TITLE>ENSI/SENSI Lesson List: Evolution</TITLE>
    </HEAD>
    <FRAMESET FRAMEBORDER=1 COLS="129,444">
    <FRAME SRC="inevo.fr.html" NAME="inevo.fr.html" MARGINWIDTH=2>
    <FRAME SRC="evol.f.html" NAME="main.fr.html" MARGINWIDTH=2 MARGINHEIGHT=2>
    <NOFRAMES>
    <BODY>
    Viewing this page requires a browser capable of displaying frames.
    </BODY>
    </NOFRAMES>
    </FRAMESET>
    </HTML>
    (eww - I feel so dirty)
    You asked me if I wanted to see it we can fix it.  I definitely do want to
    bring it up to date, but with the size of the site, it sounds very daunting.
    First of all, are there short cuts that could hasten the process?  Would it
    be possible to transfer content to a CSS format?  The fact that there are so
    many links between different pages makes me think that the job would take
    huge amounts of time.  This is not a money-making site for me – I just
    maintain it for the love of sharing good stuff with teachers.  So would
    there be a charge for helping me through this process?  Or would it better
    to pay a professional to do this, and if so, what would it cost me?  I’m
    happy to see the repaired Home page – but how long did it  take to do this?
    Would links still work (with the page back in the site folder with all the
    other pages and images)?  Is there some sort of program that does this kind
    of “repair work?”  Or does it require going into the code and performing
    corrective surgery manually?  One thing I never bothered with was making
    graphic “buttons” for navigation purposes – so I’d like to include them with
    the revised version.
    * It will be daunting.
    * There are NO shortcuts.
    * It will be possible to transfer the content to a CSS layout - one page at a time.
    * I would have to charge for helping you with this.  But we could negotiate the charge offline.
    * Hiring a professional would be the best idea yet.
    * It took me about 30 minutes to figure out what was wrong with your home page, and then to fix it.  Having done that once, similar pages would go faster.
    * Links would still work - I didn't touch them.
    * There is no such program for "repair work" - corrective surgery is best performed by building a NEW, stable page, and cutting and pasting content into it.
    * Graphic buttons are not necessary - CSS styled text is perfectly adequate.
    I really appreciate your help in this!
    I like what you are doing!

  • Get Time Stamp will milli seconds from string time stamp format

    Hi Guys,
    I am trying to get the time stamp with milli seconds value from string format time data,
    Attached the snippet (Get milli seconds to Time stamp)I  tried.
    Attached Sub VI Convert string to time stamp
    When run,I am not getting the time string indicator with milli seconds value even though the format have <%2u> .
    please guide me on this.
     ..AND Finally i will be converting the date and time string output to time stamp data type
    Attachments:
    Convert_String_to_TimeStamp.vi ‏13 KB
    Get Milli seconds to Time stamp.png ‏25 KB

    You do realize you could have just used a single Scan From String to get the timestamp, right?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Get Timestamp.png ‏43 KB

  • Cant get bill miller radio program to show in Itunes.

    I have downloaded the Bill Miller radio program with Johnny Cash to Itunes but whenever I go into Itunes the one hour program does not show up for me to update it. After updating the podcast I then put it in my playlist and can burm it on a CD. How does one call up the program once in Itunes. The choices showing on my screen does not have the bill miller radio program to select.

    I guess what I shoujld be asking is how do you get The Bill Miller Radio Program into a playlist? I went into the Johnnycashradio.com and at the bottom of the screen it showed it could be downloaded into Itunes. I clicked onto it and I think it took but when I call up Itunes it is not in the choices to update. Do I have to drag something or/and how do i get it to show up in Itunes. Thanks for answering Chris Ted

  • IS Mill  & IS Retail

    Hi IS MIll experts & IS Retail experts,
    We are using ECC 6.0 and have activated IS Retail system.
    And for our specific business, we wanted to use some functions in IS mill, such as double-measure-unit for per meterial with variable convert factors, it is similar to steel.
    Can this two functionalities be used together?
    Does there any implication and dangerous of doing this?
    Request ur kind feed back at the erliest!
    thx!.
    Lei Hailong
    Edited by: Hailong Lei on Jun 30, 2010 4:32 AM

    For double unit of measure for one article, you can use "catch weight management", its not comes under IS_Retail.
    Catch Weight Management applies to the meat/diary industry.
    Refer to the below link to know more about Catch Weight Management
    http://www50.sap.com/businessmaps/4E234767B699476CB8789FBFABDAF280.htm
    Regards,
    Ajay

  • IS Mill functionality in ECC 6.0

    Hi experts,
    I wanted to use an IS mill specific functionality of PRT capacity planning in ECC 6.0. How can I do this?. Is it possible to activate only this functionality of IS Mill in ECC6.0. Is there any implication by doing so?
    Request you please revert back.

    > I wanted to use an IS mill specific functionality of PRT capacity planning in ECC 6.0. How can I do this?. Is it possible to activate only this functionality of IS Mill in ECC6.0. Is there any implication by doing so?
    Start transaction SFW5 and check the dependencies for that specific functionality.
    Markus

  • INTER COMPANY SALES in IS MILLS

    Dear expert
    We have below Scenarios in intercompany sales plz guide me how to configure the by using IS mill functionalities
    Step 1 Company code plant A Procure the roll which manufactures in company code plant B for the same plant A create the STO with the characteristics values with reference the same STO.
    step 2 sales order will be created in the same time all characteristics values will be copied to sales order  
    step 3 MTO production will be carried out and stock will be reserved as sales order stock.
    step 4 Delivery will be done for sales order same time batch of sales order according to truck availability (one truck customer order wise may be multiple sales order and items ) 
    step 5 GR will be done in the plant A with reference sales order delivery by coping all characteristics value
    I need help in the steps 2 to 5 how to achieve the same in standard sap configuration plz guide …
    Thanks in advance
    Mohan       

    Dear expert
    We have below Scenarios in intercompany sales plz guide me how to configure the by using IS mill functionalities
    Step 1 Company code plant A Procure the roll which manufactures in company code plant B for the same plant A create the STO with the characteristics values with reference the same STO.
    step 2 sales order will be created in the same time all characteristics values will be copied to sales order  
    step 3 MTO production will be carried out and stock will be reserved as sales order stock.
    step 4 Delivery will be done for sales order same time batch of sales order according to truck availability (one truck customer order wise may be multiple sales order and items ) 
    step 5 GR will be done in the plant A with reference sales order delivery by coping all characteristics value
    I need help in the steps 2 to 5 how to achieve the same in standard sap configuration plz guide …
    Thanks in advance
    Mohan       

  • Trim optimization in paper mills.

    Dear all,
    i'm trying to understand the trim optimized model in SNO , Can any one provide me with the used nodes and details of the model.
    regards.
    Ahmad

    Dear Bala & Sanil,
    Thanks for the response,
    Here we are using Repetitive manufacturing for both paper mill and power plant.
    Three Paper mills as one plant and two power plants,each a separate plant.So we are generating Power (FG)  and LP steam (FG)
    by using HP steam (SFG) and generating HP steam (SFG) by burning coal in boiler in Power plant.The  LP steam is used in paper
    mill for making paper and power is consumed for running the paper mill.
    In power plants we are considering HP steam as semifinished goods , Power and LP steam as Finished goods.
    So,
    1) How to book production  for Power and LP steam in power plants.If we consider Power and LP steam as finished goods while
    doing backflush we have to give a storage location.Then how to clear the stock.Even if we consider it as non stock item , while
    doing backflush the system will ask for storage location.Same for HP steam (semi finished goods).So how to solve this.
    In paper mill , we are considering Power and LP steam as activities , I believe it the better option than putting it in BOM of paper
    which is produced in paper mill.
    Plz suggest a way to map this.
    Thanks & regards,
      Balaji Patel

  • IS MILL - Customizing of material provision indicators incomplete

    Dear PM Gurus,
                          We are currently implementing SAP IS-MILL. We have completed the basic configurations for Technical objects and BOM. But whenever we try to create a BOM, it throws an error in the ITEM/LONG text screen,
    Customizing of material provision indicators incomplete   Message no. AD_SUBCON141
    Please help me find the solution
    Thanks in advance,
    Sunanth V.Narayan

    Hey Sunanth V.Narayan,
    Well you need to configure the Material Provision Indicators for BOM as it is a requirement for use in the Subcontracting process of IS-MILLs. You can configure the Material Provision Indicators for BOM in transaction OICO. The normal material provision indicators used are 'K' - Material Provided by Customer, 'L' - Material Provided by Vendor, 'S' - Material for Subcontracting/Rework from Vendor.
    Regards,
    Muhammad Usman Kahoot

  • Activation of Discrete Industries and Mill Products in existing IDES system

    Dear Sir,
    I want to activate Discrete Industries and Mill Products in my existing IDES system (EHP4 FOR SAP ERP 6.0 / NW7.01)
    Can some one help me with what steps i need to follow.
    Also does it will effect the existing data in IDES....?
    Thanks in advance .
    Regards

    Hi Sunnny,
    Thanks for your reply.
    as i checked in IDES , facility to activate the addtional packages are there.
    with transaction SFW5, i can select the required package and activate it.
    but during this process system is giving some warning,
    *Note, that not all Business Function Sets or Business Functions provided with SAP ECC 6.0,might be covered by the respective customers' license and maintenance agreement. Use of and access to said software components provided with SAP ECC 6.0 may be subject to additional fees and conditions as stated in SAP's then current list of prices and conditions.
    Caution: When you activate an industry solution, this results on the following restrictions on your system. Note that you cannot generally combine one industry solution with other industry solutions or add-ons. Furthermore, an activated industry solution cannot be deactivated. The release strategy note for the desired industry solution can be found in note 838003. The release strategy note contains a reference to the installation note. Read the note on installing/activating the industry solution before beginning activation*
    so i want to know what will happen if i click I agree for this warning message.
    just by following this process its possible to activate the required bussiness function...?
    Thanks
    Regards

  • Problem loading material master (IS Mill) data from ECC to BI

    Hi Gurus,
    We have a problem loading Material master data from ECC to BI 7.0 SP 18.
    The scenario is :
    The ECC is with IS Mill... due to which the Material field MATNR is of length 40 instead of standard 18 characters.
    That is data element MATNR has 18 chars and its output length is 40 chars.
    When is table MARA browsed using SE16, the material with more than 18 chars.... shows only first 18 characters and are ended with !.
    OMSL setting shows length as 40.
    When the extractor checker runs 0MATERIAL_TEXT or 0MATERIAL_ATTR it gives correct output ..... which is more than 18 characters... not ended with !
    Till here no problem.
    On BI side, after replication of the datasource, i checked data element MATNR ... but it has length as 18 chars and output length as 18 chars.
    OMSL setting cannot be set more than 18.
    Infopackage has pulled data till PSA successfully. I checked the PSA data .... here to the material with more than 18 chars is ended with !.
    When the data is further pushed to 0MATERIAL infoobject, it throws following error for all materials irrespetive of its length (example below):
    0MATERIAL : Data record 768 ('SIT_PL_B01L_10_01!E '): Version 'SIT_PL_B01L_10_01! ' is not valid
    0MATERIAL : Data record 165 ('RLIRS52 E '): Version 'RLIRS52 ' is not valid
    Diagnosis
         Data record 768 & with the key 'SIT_PL_B01L_10_01!E &' is invalid in value 'SIT_PL_B01L_10_01! &' of the attribute/characteristic 0MATERIAL.
    System Response
         The system has recognized that the value mentioned above is invalid, and has processed this general error message. A subsequent message may give  you more information on the error. This message refers to the same value, even though it does not state this explicitly.
    I did search for SAP note related to this... but could not find any.
    There is one SAP note (Note 960868) which mentions about this, but the correction was then shipped with BI SP 9.... we are running on SP 18.
    Requesting you all experts for help.
    Best Regards,
    Deepak

    Hi,
    follow bellow steps:
    1. you need to activate the Datasouce in BI side.
    Goto RSA1>  Datasource> Select Datasource> Double click> Check fileds and Activate.
    2. Replicate the Datasource into BI side.
    3. Check the RFC connections by useing SM59.
    Regards.

Maybe you are looking for