Can we calculate the breakdown time only using for notification?

Hello,
I want know can we calculate the breakdown time only using for notification?
Regards,
Ram Rathode

hi
The breakdown time is calculated based on notification malfunction date and time only
regards
thyagarajan

Similar Messages

  • How can I calculate the total time in java?

    Hello!
    I need to calculate the total time!
    For example I have start time:
              Format formatter1;
              Date date1 = new Date();
              formatter1 = new SimpleDateFormat("hh:mm:ss");
              String startTime = formatter1.format(date1);
              //startTime = "14:20:40";
    And I have finish time:
              Format formatter2;
              Date date2 = new Date();
              formatter2 = new SimpleDateFormat("hh:mm:ss");
              String finishTime = formatter2.format(date2);
              //finishTime = "08:30:55";
    So, after manually calculating, I get total time: "18:10:15"
    How can I calculate the total time in java? (Using formatter1 and formatter2 I suppose)
    What I need is to print "total 18:10:15"
    Thanks!

    800512 wrote:
    I did the following but, I think something is wrong here:
    I defined before: Date date1 = new Date(); Date date2 = new Date();
    And it should be exactly 5 seconds between them.
    I found delta between date1 and date2:
    Format formatter = new SimpleDateFormat("HH:mm:ss");
              long timeInMilliFromStart = date1.getTime() - date2.getTime() ;
              Date date3 = new Date(timeInMilliFromStart);
              String timeInSecFromStart = formatter.format(date3);
    and I get always
    //timeInSecFromStart = 02:00:05
    But it should be exactly 00:00:05.
    What can be a problem?Because, like I said, a Date measure an instant in time, not a duration. So when you have 5000 ms, and you turn that into a Date, that means 5 sec. after the epoch, which works out to 1/1/1970 00:00:05.000 GMT.
    As I mentioned, if you're not currently in GMT, then you have to set the TZ of the DateFormat to GMT. Right now, it's showing you the time in your TZ. If you included the date in your SimpleDateFormat, you'd see either 1/1/1970 or 12/31/1969, depending on which TZ you're in.
    Bottom line: You're trying to use these classes in a way they're not meant for, and while you can get the results you want for a limited set of inputs if you understand what these classes do and how to work with that, it's a brittle approach and comes with all kinds of caveats.

  • My apple-ID is blocked, and I can't access the e-mail I use for my apple-ID so I can't restore the account. What should I do?

    My apple-ID is blocked, and I can't access the e-mail I use for my apple-ID so I can't restore the account. What should I do?
    I can't remeber my security questions, and I can't ask for a new password because I can't log in to the email because it got hacked...

    Have you tried logging out of your account on your iPod by tapping on your id in Settings > iTunes & App Store and then logging back in to see if that 'refreshes' the account on it and if it then works ?

  • How can I calculate the request time ?

    Hello,
    How can I calculate the total consume time in each request ?
    For example, I want to start calculating the time when I click on a Link or a button and the end time when it completed load the page !
    Eric

    You could use a filter like this one:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    public class TimeFilter implements Filter {
        // The filter configuration object we are associated with.  If
        // this value is null, this filter instance is not currently
        // configured.
        private FilterConfig filterConfig = null;
        private static final boolean debug = false;
        private long start = 0;
        private long end = 0;
        public TimeFilter() {
        private void doBeforeProcessing(ServletRequest request, ServletResponse response)
        throws IOException, ServletException {
            if (debug) log("CalendarFilter:DoBeforeProcessing");
            System.out.print("In Filter  ");
            this.start = System.currentTimeMillis();
            System.out.println((new java.util.Date()).toString() +
                               " start request ");
        private void doAfterProcessing(ServletRequest request, ServletResponse response)
        throws IOException, ServletException {
            if (debug) log("TimeFilter:DoAfterProcessing");
            System.out.println("Completion Time = " + (System.currentTimeMillis() - start));
         * @param request The servlet request we are processing
         * @param result The servlet response we are creating
         * @param chain The filter chain we are processing
         * @exception IOException if an input/output error occurs
         * @exception ServletException if a servlet error occurs
        public void doFilter(ServletRequest request, ServletResponse response,
        FilterChain chain)
        throws IOException, ServletException {
            if (debug) log("TimeFilter:doFilter()");
            doBeforeProcessing(request, response);
            Throwable problem = null;
            try {
                chain.doFilter(request, response);
            catch(Throwable t) {
                problem = t;
                t.printStackTrace();
            doAfterProcessing(request, response);
            // If there was a problem, we want to rethrow it if it is
            // a known type, otherwise log it.
            if (problem != null) {
                if (problem instanceof ServletException) throw (ServletException)problem;
                if (problem instanceof IOException) throw (IOException)problem;
                sendProcessingError(problem, response);
         * Return the filter configuration object for this filter.
        public FilterConfig getFilterConfig() {
            return (this.filterConfig);
         * Set the filter configuration object for this filter.
         * @param filterConfig The filter configuration object
        public void setFilterConfig(FilterConfig filterConfig) {
            this.filterConfig = filterConfig;
         * Destroy method for this filter
        public void destroy() {
         * Init method for this filter
        public void init(FilterConfig filterConfig) {
            this.filterConfig = filterConfig;
            if (filterConfig != null) {
                if (debug) {
                    log("TimeFilter:Initializing filter");
         * Return a String representation of this object.
        public String toString() {
            if (filterConfig == null) return ("TimeFilter()");
            StringBuffer sb = new StringBuffer("TimeFilter(");
            sb.append(filterConfig);
            sb.append(")");
            return (sb.toString());
        private void sendProcessingError(Throwable t, ServletResponse response) {
            String stackTrace = getStackTrace(t);
            if(stackTrace != null && !stackTrace.equals("")) {
                try {
                    response.setContentType("text/html");
                    PrintStream ps = new PrintStream(response.getOutputStream());
                    PrintWriter pw = new PrintWriter(ps);
                    pw.print("<html>\n<head>\n</head>\n<body>\n"); //NOI18N
                    // PENDING! Localize this for next official release
                    pw.print("<h1>The resource did not process correctly</h1>\n<pre>\n");
                    pw.print(stackTrace);
                    pw.print("</pre></body>\n</html>"); //NOI18N
                    pw.close();
                    ps.close();
                    response.getOutputStream().close();;
                catch(Exception ex){ }
            else {
                try {
                    PrintStream ps = new PrintStream(response.getOutputStream());
                    t.printStackTrace(ps);
                    ps.close();
                    response.getOutputStream().close();;
                catch(Exception ex){ }
        public static String getStackTrace(Throwable t) {
            String stackTrace = null;
            try {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
                t.printStackTrace(pw);
                pw.close();
                sw.close();
                stackTrace = sw.getBuffer().toString();
            catch(Exception ex) {}
            return stackTrace;
        public void log(String msg) {
            filterConfig.getServletContext().log(msg);
    }and in the web.xml :
       <filter>
            <filter-name>TimeFilter</filter-name>
            <filter-class>
                com.filter.TimeFilter
            </filter>
        <filter-mapping>
            <filter-name>TimeFilter</filter-name>
            <url-pattern>/services/*</url-pattern>
        </filter-mapping > 

  • How do i sweep two voltage at the same time by using for loop ?

    Hello, Can anyone help me on this topic ?
    My problem is to sweep Vds and Vgs as same time vs Id in MOSFET by using for loop. I also use the Agilent power supply source. Let me tell a litle bit about what i'm doing. For different value of Vds, i will get Vgs vs Id curve. (The x axis is Vgs, the y-axis is Id).
    I started to create two for-loop, the inner to sweep Vgs, and the outer one to sweep Vds. My problem is don't know how to connect all the wire in  the for loop.
    In the for loop i saw N, i icon. Suppose I have the two variable for Vgs such as Vgs start and Vgs_stop. Should the Vgs_start( or Vgs_stop) be connected to N or leave it in the for_loop ?
     for example: I want to sweep Vgs from 0(for Vgs_start)  to  5(Vgs_strop) V, and the step increment is .5V how do i connect these variables in the for loop ?
    Thank you for your time
    Ti Nguyen

    It is easier to use a while loop.  Dennis beat me to the punch.  Here is my solution:
    You can remove the flat sequence structure if you use Error In and Error Out to ensure the execution flow will occur in the proper order.  Be sure to include the delay time in the loop so that your vi doesn't hog all the CPU time.
    Message Edited by tbob on 10-17-2005 01:00 PM
    - tbob
    Inventor of the WORM Global
    Attachments:
    RampVoltage.PNG ‏8 KB

  • How can I see the exact font being used for rendering ?

    When I use firebug to watch the style of any object, I see the CSS input. For the textarea I'm writing this text into, for instance, it displays "13px/1.231 Georgia,freeserif,serif".
    What I want to see is the result of the rendering process, in other words the output of the rendering engine, which is not only dependent on the styles defined with the web page displayed, but also depends on the system fonts being installed, my settings in about:config and something more:
    I just pressed ctrl-+ what increased the displayed font size, but the element style displayed remains the same as above. I want to look elsewhere to see an increased font size in this event. Where do I have to go ?

    The rendering speed is entirely limited by the CPU's speed and the software's ability to utilize the processor's capabilities. If you need faster rendering speed then you simply need a faster computer or better rendering software.

  • How can I change the phone number I used for for Apple ID?

    Hi
    I had 2 iphones with 2 different phone numbers and 2 different apple id.
    now i switched the phone numbers - but on the apple id i have the old number i no longer use.
    What can I do so i'll have the correct phone number?

    Go into your settings>phone tap on the phone number and input the new number. 

  • Can't find the folder ATV is using for screensaver pics?

    This is kind of weird...I am seeing all my pictures perfectly and it always works...BUT ever since I got my new Macbook & our Timecapsule crapped out, I haven't been able to find the folder that ATV says it's reading my pics from.  I want to add some newer pics to it but it doesn't seem to be on my macbook.  I don't have anything selected in itunes for pics to share & the old Macbook is powered off with a cracked screen so I know it's not reading them from there.  I don't have any folders on my iphone either.  We now use Airport so there is no storage within it...
    I looked thru iphoto & I checked the "name" that ATV has under screensavers/photos & then scanned my macbook for that exact folder too & it just ain't coming up anywhere. 
    Any ideas?

    Wow.  I didn't know it cached anything.  Thx a bunch for solving that mystery!!

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • My ibook keeps shutting down completely with the date to reverting back to 1969.  i restart only after i plug in charger it lets me, then change date and save.  the next time i use same thing happens, safari, iphoto, email are the only ones i have used.

    my ibook keeps shutting down completely with the date to reverting back to 1969.  i restart only after i plug in charger it lets me, then change date and save.  the next time i use same thing happens, safari, iphoto, email are the only ones i have used.
    please help!  i am at a loss here.
    thank you, movie lady
    ibook g4

    The iBook does not have a backup (PRAM) battery. It only has the main battery and a small capacitor which maintains the settings long enough to do a battery swap. If the battery is dead, what you are seeing can happen.
    If the battery is not a problem (or even if it is), you could try resetting the PMU and see if that helps.

  • I choose to restore from a safety backup in iTunes. It works ok, but iTunes is still asking to restore the iPhone. Why can't I get to syncronise the phone? I can't get the menue I am used to in iTunes. It only states "Klargjør iPhone" (Norwegian). Somethi

    I choose to restore from a safety backup in iTunes. It works ok, but iTunes is still asking to restore the iPhone. Why can't I get to syncronise the phone?
    I can't get the menue I am used to in iTunes. It only states "Klargjør iPhone" (Norwegian). Something like "Start up your iPhone". I've done this several times, restarted the iPhone and my computer, but I can't get ready to sync... The phone is working ok and my backup data is restored into the phone.

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iOS: Troubleshooting backup issues in iTunes
    http://support.apple.com/kb/ts2529
    -Griff W.

  • Can I use the harddisk that I used for Time Machine on my previous computer on my new computer without deleting the old back-ups?

    Can I use the harddisk that I used for Time Machine on my previous computer on my new computer without deleting the old back-ups?

    Yes.  See:
    http://pondini.org/TM/4.html
    My only concern is that you may not have enough free space on the drive.

  • Does the iPod touch only use wi-fi or if it's plugged in to a PC can it use the internet?

    Does the iPod touch only use wi-fi or if it's plugged in to a PC can it use the internet?

    I have never done this myself,  however I know you can use some computer as the WiFi hotspots.  Macs do, and some PCs do. 
    There is not a way to physically connect the iPod to use the computers Internet connection.
    If you use Windows - look here for help and instructions.
    Internet sharing in Windows
    For Mac - look here.
    Internet Sharing in OS X

  • Using Numbers, can I calculate the date that will be eg 45 days ahead of a given date?

    Using Numbers, can I calculate the date that will be eg 45 days ahead of a given date?

    MWB,
    Certainly. Let's say that your given date is in B2. The date 45 days earlier can be found with:
    =B2 – 45.
    Almost seems too simple.
    Jerry

  • How can I calculate the waveform integral in a defined time interval?

    Hi:
    I need your help. How can I calculate the waveform integral in a defined time interval? For example: from "0" to "2pi"?!
    Thanks.

    Hello Clecio,
    You might want to try the Integral x(t) VI.  The documentation for this VI notes:
    Performs the discrete integration of the sampled signal X. Integral x(t) calculates a definite integral. The value of the output array at any value x is the area under the curve of the input array between 0 and x.
    You would pass the samples of the waveform that fall between your particular window, then pass 1/number of samples for the d(t) parameter.
    Hope that helps.
    Wendy L
    LabWindows/CVI Developer Newsletter - ni.com/cvinews

Maybe you are looking for

  • Re: [iPlanet-JATO] Re: using begin childName Display method

    Steve, It sounds like you have your display fields in a container view, and that container view is inside of a view bean. I haven't tested whether the fireChildDisplayEvents has a "deep" effect on its container view children. Meaning that you may hav

  • Appalling customer service. Problem with Infinity ...

    Placed order for upgrade from Bt Broadband to Infinity 1 on Tuesday 19th March. Was given installation date of Tuesday 26th March (Today). All started well when engineer arrived at 9am. He had already done the necessarys in the cabinet up the road so

  • Firmware 1.1.2 doesn't work?

    I've updated my iphone to 1.1.2 today... but when I restarted it...It showed that I needed activation.. and Itunes said that activation was unavailable now... Damt... I will go to NYC tommorow...and I need...A CELLPHONE!

  • Outlook syncclient stopped responding - again!

    Hi Everyone, Here we go again... I have a 3GS and all was working perfectly. I was able to sync my calendar great via the usb but then I upgraded to the new iTunes 9.0.3 and the iPhone OS 3.1.3. The dreaded "Outlook Syncclient has stopped responding"

  • JSPM Error unable to update SP16

    Hi all this is the error i am getting when i start JSPM to update SP16 Please any help will be appreciated The execution ended in error. Cannot initialize application data. Could not extract value with key SAPSYSTEM from file /usr/sap/NW1/SYS/profile