Displaying seconds as hh:mi:ss.

Hi,
I know this has been discussed with pros and cons. But, for my requirement, the following formula is fine as data is deleted and re-loaded daily.
To display the seconds in hour, minute and second format, I am using the following formula.
TIMESTAMPADD(SQL_TSI_SECOND, Seconds."Active (s)", TIMESTAMP '1999-01-01 00:00:00')
The format used is Date Custom format as HH:mm:ss.
There are other measures similar to the above that I need to display in the same way. All is okay.
I have another measure which gives me total of the measures in seconds which is "Total (s)". However, the TIMESTAMPADD(SQL_TSI_SECOND, Seconds."Active (s)"+Seconds"Idle (s)", TIMESTAMP '1999-01-01 00:00:00') simply is not working.
I am not able to understand why it's not showing the total of all the measures in HH:mm:ss format. There is no error, but it looks like it does not like the way addition is done in TIMESTAMPADD(SQL_TSI_SECOND, meas1 + meas2 + meas3 + meas4, TIMESTAMP '1999-01-01 00:00:00')
If you are aware of any limitations related to it, please let me know.
Thanks,
Manoj.

Try doing something to the addition that causes it to evaluate first, eg casting as an integer:
TIMESTAMPADD(SQL_TSI_SECOND, cast(Seconds."Active (s)"+Seconds"Idle (s)" as integer), TIMESTAMP '1999-01-01 00:00:00')

Similar Messages

  • How to Display Seconds in a JSP file

    I want Display seconds in a SP page ,i need to alert the user that this page will be forwarded in 10 secs , so i need to display that on the page ..how can i make this happen ...can anyone throw some light on this issue ...
    Thanks
    Shyam

    Hello,
    Not sure to understand clearly what you want to do. So here some lights based on my understanding.
    So you want to see the page redirects to another location after 10sec, so in my opinion it has nothing specific to do with JSP but pure HTML development.
    1- Do the redirect
    Option 1
    On easy way is simply to put a meta-tag in the header of your page, something like
    <HEAD>
    <META HTTP-EQUIV="refresh" content="10;URL=http://blog.grallandco.com">
    </HEAD>
    Option 2
    You can also do it using Javascript:
    <script>
    function redirect()
    window.location="http://grallandco.com"
    function loadPage()
    var timer = window.setInterval("redirect()", 10000);
    </script>
    <body onLoad="loadPage();">
    2- Print the countdown
    Maybe you also want to print the countdown on the page. For this you have lot of solutions based on Javascript. I did a quick Google search on "javascript Countdowns redirect"
    Here one that looks good and easy to integrate to any page:
    Cool Redirect
    Regards
    Tugdual Grall

  • Apple TV display second desktop only??

    hey i'm trying to figure out how to only use airplay to show second desktop and still use my computer? Basically i want to know how to make it either display second screen only on tv or accomplish exactly same thing as when you plug in display port and it seperates as dual screen?

    I just downloaded airparrot and after adjusting some settings I was able to set my television up as a dual screen through Apple TV.  I use Propresenter as a Youth Minister at my church and this setup allows me to do that.  Thank for the info.

  • Displaying second parameter based on first parameter

    Dear Developers,
    In the parameter form or reports, I want to pass value selected
    in the first parameter to the second parameter
    ie. based on the first parameter selected, I would like the
    query written in the second parameter for
    displaying list to display only those values that are associated
    with the first parameter.
    How can I do this?
    I do not want to call report from form with preselected
    parameters.
    Awaiting speedy reply
    Gaurav

    You can't do this in Reports. You need to do it in Forms

  • Problems in displaying second page

    Hi Experts,
    In my smartform the second page is being displayed in the output but nothing is being displayed on it. Can any body please suggest what the problem might be.
    Regards,
    Abdullah

    hi
    as u r posts the second Page is not getting triggered.. because when you put abreak point in the PAGE2 it shoud stop there.
    Now i have created 2 PAGEs for the PAGE1 next page is PAGE1 only , and  iam printing some data in PAGE1, in the PAGE2 i have created a window to print some static text.
    now i have created a COMMAND node in PAGE1 to call the PAGE2 explicitily(by chcking the GOTo NEW PAGE option -->PAGE2.
    it is working fine.
    u r also doing in this same way or someother?...
    where exactly u r using the COMMAND NODE... i thiknk it is not triggering.
    wht is next page for u r PAGE1,
    in ur command node have u given goto newpage-->PAGE2 ..
    chck onca again.

  • Rollover image not displaying second image, please help me

    Hello,
    I am trying to get 4 buttons on my page to display one image and then when a mouse rollsover to display a second image.  I have created 8 images.  2 for each of the 4 buttons.
    http://caliberproductsinc.com/Caliber%20Marine/boatrollers.htm
    Here is my page.  The 4 buttons I am concerend with are the "questions, manuels brochure, news" at the bottom.  The image displayed is the first image the second "rollover" image is the same except our logo turns red.
    I placed them by using insert, image objects, rollover image.  I pointed the first to the image that you are seeing and the "rollover image" to the red version.  The first image shows up fine.  The second never shows up?  Can anyone tell me why?  What am I doing wrong?
    Thanks

    "...dry roted...."  - I assume you mean "dry rotted"?
    Anyhow, on line 35 of your code, change this -
    function MM_swapImgRestore() { //v3.0
    to this -
    function MM_swapImgRestore() { //v3.0
    That slash doesn't belong there.

  • Duplicate Songs Displayed (Second Shown Hidden or in Phantom, and is not selectable)

    How do I remove duplicate song listings from my iPod 4?  I have several hundred Music Video songs installed but 6 of them have double listings.  The second listing is dimmed (phanton outlined) and is unselectable and can not be deleted.   My collection on my host computer does not show these duplcated songs, under iTunes.  Re syncing with iTunes does not fix this issue.  The other displayed Music Video song plays fine.  I have the latest software installed on the iPod from iTunes.  And the latest iTunes software installed.   Sincerely,  David

    Hi, I have the same issue. I purchased a song from iTunes then synced on the iPod. There were 2 copies of the same song - one with artwork, one without. Neither would play so I tried to remove them but could not redone the one without artwork. This track will not play and causes a delay before subsequent songs. There is no option to delete it from the iPod directly by swiping as can do to other songs. Basically I can't get it off the iPod by any means! Please help!!!  

  • Dynadock doesn't display second monitor

    Just received my dynadock and can't get my 2nd monitor to clone my laptop. It only displays my screen saver.
    Any suggestions?

    Hi
    Can you also tell us what notebook you are using on the Dynadock?
    Normally you can switch between the monitors if you press FN+F5. Check also the display properties. Therefore make a right click on the desktop and check the display properties. Make sure that the picture on second monitor will be cloned and its not set to extend the desktop there.

  • Macbook pro wont display seconds in the clock

    i am using the digital clock for my comp and when i click "show day of week" it shows up and when i click "flash time separators" they start flashing....but when i click "display time with seconds" nothing happens...any ideas why it's not working?

    oh and i meant that AM/PM wasn't working....not the seconds.....just don't listen to me.....im retarrded

  • Displaying seconds updation on graph

    Hi
    all , i would like to display x-axis (time)in seconds.since my programme while loop is repetaing at a duration of 10msec ,but how to show updation in seconds on graph(x-axis).
    Regards
    labview boy
    code attached
    Attachments:
    sine.vi ‏92 KB

    I couldn't open your VI, but to display a graph as time, right click the axis and select "Format & Presicion", then change the format to Absolute Time or Relative Time. That's it. If you're using Absolute Time, you should use Get Date\time in seconds and To DBL and wire the result into the property X-Scale>>Offset & Multiplier>>Offset to set the t0 of your axis to the current time.
    Try to take over the world!

  • Late 2008 model - Not Displaying Second Monitor

    My logic board broke recently and I took it to Apple to get it fixed. Once it got out of repair, I picked it up and brought it home. Plugged in the DVI cable and it did not turn on. Turns out the display is there. I can move windows over to the second monitor, but it's not actually showing anything.
    I have a Samsung HDTV and a DVI cable. It's worked before, so I know it's compatible.
    The reboot did not work. "Detect Display" did not work. Adjusted brightness. Haven't tried using the cable on someone else's monitor, nor have I tried to use another DVI cable. I still have to look into these things.
    I'm figuring that somewhere there is something I have to restart, but Google and the forums have failed me.

    Haven't tried using the cable on someone else's monitor, nor have I tried to use another DVI cable. I still have to look into these things.
    You know what you need to do. Go ahead and do it.

  • Problem in displaying second page in smartform

    hi,
    I m trying to display two pages (page 1 and page 2) in the smartform.
    I m using command (of flow logic) in the main window of first page to achieve this.
    While i m able to see the output by running the Smartform FM stand-alone, i cant see the same while i run it through driver program.
    Does it require any special conditions ? any config issues??
    Pl help...

    On the first page have you given the next page in "General Attributes" Tab and in the command also.,
    Check there must be the probelm wiht either of these two.
    assign points if it helps.
    -Gaurang

  • How do I display seconds throughout the entirety of the song?

    Hi. I teach excercise classes and que the class at various second counts during the song.  At the last iphone Spotify update, my seconds only appear briefly and then disappear unless I tap the screen.  Is there a setting that will allow the seconds to appear throughout the whole song? Thank you.

    Hello there & welcome to the community!
    This feature was added on the last update.
    Many people want to see always the seconds, so it was said that they will be staying there for the whole song on a coming update.
    Hope this helps! ♫

  • Thumbnail date & time - how to display seconds?

    Also, in our previous version of Bridge we had our preview settings so that we could view the date & time below the filename. The time format was H:M:S. Now in Bridge CS4, the seconds do not appear. Please advise on this setting.
    Thank you.

    I can see the seconds in all files in CS4 when the Content panel is set to view as Details or as List in the View menu, but not when set to view as Thumbnails, where only some files show them.  A possible bug?
    Never paid attention to seconds in earlier versions.
    Message was edited by: Ramón G Castañeda

  • Accordion labels won't display - SECOND POST

    Hi All,
    When I create a swf with an accordion component it works just
    fine. When I import that swf into another movie the labels won't
    display. I have also tried resetting the label using
    myAccordion.getHeaderAt(index).label = "Blah"; or createChild();
    with no success.
    Am I missing something fundamental?
    Dave

    Laverda668 wrote:
    > Hi All,
    >
    > When I create a swf with an accordion component it works
    just fine. When I
    > import that swf into another movie the labels won't
    display. I have also tried
    > resetting the label using
    myAccordion.getHeaderAt(index).label = "Blah"; or
    > createChild(); with no success.
    >
    > Am I missing something fundamental?
    The component is build in run time once the file is running.
    By putting it into movie clip you automatically mess up all
    the paths in the file
    as by loading in clip the file will share root with the host
    movie.
    You can either load it in level or try to lock root.
    Check help files for "_lockroot" for details on the usage.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

Maybe you are looking for

  • Help Needed in Spry Inclusion

    Once I tried Insert Spry Table and the attempt succeeded. I took the example from a book. When I came to apply the same thing on a new page, the content items of the Odd row class and Even row class in the drop dwon list dis appeared. I would appreci

  • Lightroom to Premiere Pro

    In Bridge and Elements Organizer 4.0 I can simply select a photo and drag and drop the image into Premiere Pro 2.0. It is a very handy feature when having to work with a lot of photos in videos. In Lightroom this functionality seems to be lost. Is th

  • My Check Out and Open is creating a new document!

    Hi there, As the subject say, my Check Out and Open is creating a new document with a new ID instead of making a new revision of the document. It creates a new document starting the revision with the number 2! And if I make Check Out and Open of this

  • Two Camera Problem

    Recently a friend and I filmed a talent show for an elementary school with a Canon XL1 and a Canon XL2. Both were filmed on LP and the same types of tapes were used. We captured the tapes and when we lined them up to edit it I noticed something. The

  • MacBookPro with unsupported Superdrive for iDVD?

    Q. Why would a MacBookPro have an unsupported Superdrive for iDVD? A. If it's a MacBookPro, it shouldn't. Yet that's the error message that comes up when iDVD is opened. We've only used the burner for CDs so far . . . Q. What do you see about your di