Convert number to time Format

Hello

I'm trying to find how to display a number in the format hour, Minute, and second.

I have a data in my table that store the number for example. 145.586956521739

I want to convert in HOUR, Minute Secode report format.

Any help is greatly appreciated.

Thank you
Poojak

Say total = 189,89 minutes

hours = round(total/60)

minutes = round (mod(total,60))

second round = (mod(total,1) * 60)

Sorry if I misinterpreted your question.

Thank you
Jalila

Tags: Business Intelligence

Similar Questions

  • Convert number to date format

    HI team,

    I have a problem, how we can convert number in date format?
    This is the result of the query.

    SQL > col START_TIME for 999999999999999999999999
    SQL > select start_time in qrtz_triggers;

    START_TIME
    -------------------------
    1364243906000
    1364589406000

    So, I have to change the date format niumber rto.

    My date format as for example: "" Mar 25,2013 20:36:45 ""


    Please suggest me...
    Thank you
    Chavigny

    Published by: 939938 on March 14, 2013 06:39

    This is the number of milliseconds since January 1, 1970.

    SQL> SELECT to_char(to_date('01/01/1970','mm/dd/yyyy')+1364243906000/24/60/60/1000
      2  ,'Mon dd, yyyy hh:mi:ss PM') FROM dual;
    
    TO_CHAR(TO_DATE('01/01/1970','
    ------------------------------
    Mar 25, 2013 08:38:26 PM
    

    So in your query instead of start_time use
    TO_CHAR (to_date (' 01/01/1970 ',' mm/DD/yyyy') + start_time/24/60/60/1000,' Mon DD, YYYY HH: mi: ss PM "")

    Published by: kendenny on March 14, 2013 08:31
    Had used mm instead of e for the minutes.

  • Convert number in time?

    Hello
    I need a query that convert number in time. Please provide a solution.

    Thank you

    Hello
    use following code:

    select lpad(trunc(nvl(&number/60,0),0),2,'0')||':'||lpad(mod(&number,60),2,'0') time
      from dual
    

    PS

  • convert string to time format

    I have a channel registered in a MM/DD/YYYY HH: mmS.XXXX format and I would like to convert it into a digital representation.  I read on the forums that it will be the number of seconds since AD 0, which I am fine with.  I just need to convert all of the channel in the number of seconds.

    I'm trying to process data with a funky random sampling rate, and I am trying to use the ChnMapLinCalc function to redistribute data on a sampling frequency that makes sense.

    Thank you!

    Steve

    Hi Steve,.

    If the data channel that you are talking about is already loaded in the data portal, and she already has a clock to the left of this symbol in the data portal, then all you need to do is change the display of the values of the layer.  Tiara time channels are regular DBL channels that have a display property set to display the data differently in DIAdem (such as a date/time string).  If you do not need to convert anything.  Locate the "Display Format" property in the data portal and change of 'Time' to 'digital '.  You may need to force a refresh by clicking in the VIEW, but this channel should display immediately in the form of double values.

    Brad Turpin
    Tiara Product Support Engineer
    National Instruments

  • How to convert number in currency format?

    Hi all

    How to use the transformation of BPEL or entitlement,
    I want to convert the number format to currency foramt. (ex, 2000.00-> 2,000.00)

    How to do this?

    Concerning
    Toven.

    Hi Toven,

    More XSL allows you to convert (123456789.80-> 123,456,789.80)




    Output: 123,456,789.00

    Kind regards
    KanmaniRajan

  • How to convert the number in time

    Hai All

    How to convert number of datetime function

    I have number 0825 in a table t1 and another table, I have a column of type date

    How can I subtract

    0825 respondent

    Concerning

    Srikkanth.M

    Published by: Srikkanth.M on April 3, 2010 01:18

    Try

    SELECT (
             INTIME
             -
                 TO_DATE(TO_CHAR(Intime,'DD-MON-YYYY')||' '||
                 TO_CHAR(0825,'0000'),'DD-MON-YYYY HH24:MI')
            ) * 24*60 time_diff
    FROM   T1;
    

    * 009 *.

  • question of activeX cw graph3D time format

    With regard to the component works / ComponentWorks 3D chart control ActiveX OCX:

    I have a table of LabVIEW timestamp ("the default value is zero seconds since 12:00, Friday, January 1, 1904, universal time [01/01/1904 00:00:00] '") that I convert it to an array of Doubles.

    I would like to pass this array to the OCX (after conversion) as my y-axis. I have configured the OCX to display DD/MM/YYYY HH: mmusing the property editor. In addition, if you dig into the documentation of OCX, in the section that details the formatting strings, it is said:

    "The ActiveX control, the date is implemented as a floating-point value, measuring days from midnight, 30 December 1899. Thus, midnight, 31 December 1899, is represented by 1.0. Similarly, 06:00, January 1, 1900, is represented by 2.25, and midnight, 29 December 1899, is - 1.0. 06:00, 29 December 1899 is however - 1.25. To interpret the time portion, take the absolute value of the fractional part of the number. Thus, a second is equal to 1 / 24 hours / 60 minutes / 60 seconds, which is 1/86400 or about 1.157407e - 5. »

    Maybe my coffee is not strong enough today, but I don't see an easy way to convert the format of LabVIEW in the "ActiveX format" while properly accounting for leap years etc...

    My first hope is that someone already has, my backup plan is to have a good brainstorming on the forum on how to do this?

    Thanks for any input on this!

    I made a few changes that might be useful for others, or in the forum.

    In my case, I have an array of strings, which gives the date and time for when the data has been captured.

    The date and time strings were captured in another time zone of the computer where I run the analysis and visualization. Therefore, you must take care so that you don't end up adjust your time incorrectly based on your analysis computer-time zone schedules vs. where the data has been captured.

    I don't know if there may be a more smooth way and more optimized to do this, but I compared it and for data sets that I'm loading, the time required to perform this conversion is fairly trivial.

    I guess the point key to looking people should take away the format "chain" and "format of the string" VI is extremely powerful and his is worth the effort of learning of the March bump in the way to create the format specifier strings...

    The code in the image shows how to convert a string to the time format format OLE/ActiveX without changing time I have in the original string array. I can then feed what (in my case) table of axis y for the CW 3-d chart where my axis has been configured to display 'time' (container, right-click ActiveX, "CWGRAPH 3D--> properties", go to "format" tab, select your axis and choose the display format of your choice.)

    as by chance, doing the same use the xControl turns into a nightmare when the only solution I found was to use pairs of value and a lot of code to manage the positioning and the decimation of the value pairs to work correctly... Overall, my treatment has now passed a lot for next to nothing... and as a bonus, the CW graphic cursors use the same formatting settings, so that my date/times on the slider too, on the xControl, the use of cursors the part number of a pair value, so your cursor does not match your axis...

  • Date/time format and different regions

    I'm developing an application in this case to the United States on the English LV2009 software.  This application will be installed in many parts of the world, and I just discovered a problem with the date and time that I try to understand.  A screenshot of the application running on a Chinese computer is attached.  At the top right there is a 'results save location' which has a month and year added file name.  I use the date/time format with modifiers for the name of the month and the year in 4 digits (%B %Y).  On my PC, it displays in July 2010, but on Chinese computer it 7 01.  In addition, the reason that it says wrong serial number is that I compare the SN 2-digit year, and it seems to enter it correctly.

    On my PC, I tried to change my date settings in Windows and it doesn't seem to affect the production, as it does on Chinese computer.  I know there is a UTC Boolean selector which can be activated.  That will make a difference in the way that the date is displayed by this function?

    This is one of the few issues I encountered when developing a program for several regions, but it is currently the only one, I have not yet solved.

    I would expect month name to be specific langauge.

    For example, the word April in French is April and is abbreviated Apr. I would use a number instead of the name.

    The thai calendar + 543 years compared to the Western calendar, so a PC Thai could show a specific locale of 2553-07-13 date. Your computer may display 13/07/2010. I'm sure that the year of the Chinese calendar is different from that of the Western calendar.

    Using UTC should force LabVIEW to use the Gregorian calendar, based on the ISO-8601standard.

    Because your users work with technology and would probably recognize a Gregorian day/month/year combo I would stick with % Y_ m_ % d. % and UTC = TRUE.

    I contributed a VI to the community OR that you could use if you wish. It has many options and is based on ISO-8601

    .

    http://decibel.NI.com/content/docs/doc-7199

  • When the value to display in the time format double digital indicator... Changes in value.

    Hi all

    I can't display the values that I want. I have a value double say 320 sent to a digital indicator where I edited the properties of it to display in a time format that contains only minutes and seconds as Yes, 3:20 '. Unfortunately, it takes the value and change it to another value and display that. I don't know what is the issue. If anyone knows the solution... Please post!

    There is an image attatched!

    Thank you.

    I believe only then due to the fact that when I convert a timestamp value to double as 03:20, he gave me 320. So I thought that the reverse can be trying. Should I just enter the total amount of seconds and that will show the Minuteseconds I want?

    Thanks for the quick response.

  • How to convert the Minutes (digital format) to hh: mm in SQL

    I have a column of data (Duration_Min_Amount) that displays the number of minutes used. I need to convert it to the format hh: mm and can't seem to figure out how.

    I need the data to show 930 = 15:30.

    Someone knows how to do this? I searched google and tried using CAST but cannot get the syntax works.

    ((A.DURATION_MIN_AM) / 60) |': ' | TO_CHAR (mod (SUM (A.DURATION_MIN_AM), 60), 'FM00') AS DURATION_MIN_AM,

    First display, sum the latter.

    or

    RTrim)

    LTrim)

    RTrim)

    NUMTODSINTERVAL (SUM (A.DURATION_MIN_AM), "OTHER")

    ,'+0: ')

    ,'+0: ')

    ,'.') AS DURATION_MIN_AM_I,

  • changing dynamic date/time format

    How can I set a Date/time format) of a textbox (behave like a phone number format, where the user enters only numbers, but it shows another way of my choice.)

    Download the new Date object
    var a = event.target.value;

    Kai var = util.scand ("YYYYMMDD", a);


    dd/mm/yyyy format
    xDate var = util.printd ("yyyy/mm/dd", anyway);

    Event.Target.Value = xDate;

    It does not work.

    Text type fields have scripts that control the key sequence, validation and formatting. You only play with the formatting.

    You could create a script to strike to allow the entry of the date with or without the "/" but you then have to write a script of presentation and validation. Posting date is not just month 1-12 and day 1-31, because some months have 28, 29, 30 or 31 days depending on the month and year combinations.

  • type conversion of numeric value in the time format

    Hi guys,.
    I have the column called need .i (time in seconds) to convert the numeric value of a column in time format HH. for example 3012 = 00: 50.12.
    How can I proceed even in the front.


    Thank you and best regards,
    Nandu

    Hi Nelly,

    Pls go through the below formula:
    This deffenitely will help you resolve the issue.

    Concat (concat (concat (concat (cast (floor ((COLUMN_NAME) / 3600) as char), ':'), cast (floor (mod ((COLUMN_NAME), 3600) / 60) as char)),': '), cast (floor (mod (mod ((COLUMN_NAME), 3600), 60)) as char))

    Thank you
    Cognet

  • Convert number of dayes per year

    Please I need help to convert many dayes so far

    I have ID as id

    FT * 09025 * 0000000001 date = 20090125

    FT * date 01171 * 0000000002 = 20100620


    therefore must convert number five after FT as from the
    example * 09025 *.

    map 09-2009
    025 dayes annually number card to 25 jan

    example * 01171 *.
    01 card for 2010
    map number 171 of dayes annually to 20 jun
    (jan + Feb + March + April May) (31 + 28 + 31 + 30 + 31) = plus 151

    171-151 = 20 for next month


    Please need help will be so added filter to informatica card with date

    Published by: user8929623 on July 4, 2010 19:04

    Well, I'm not why when 09 maps to 2009, 01 maps to 2010, not in 2001. Assuming that it should be 2001, use YYDDD format:

    SQL> with t as (
      2             select 'FT*09025*0000000001' id from dual union all
      3             select 'FT*01171*0000000002' from dual
      4            )
      5  select  to_date(substr(id,4,5),'yyddd') dt
      6    from  t
      7  /
    
    DT
    --------
    20090125
    20010620
    
    SQL> 
    

    SY.

  • Date/time format not work server

    Hello


    I guess there is a lot of excitement with the recent release of Adobe Dreamweaver CS3 and I like many others have chosen this way to upgrade


    My problem - I don't seem to be able to use dynamic data successfully selectable formatting in CS3 (not fully) some of the formats as currency and number work very well formatted...


    Function DoDateTime (str, nNamedFormat, nLCID) function code is not transferred on the web page, with that I work or is the dynamic element encapsulated when I select a Date/time format.


    After having spent the last 6 months, build a planning (ASP VBScript Application) I came across many issues locale date, date of shaped and calculations etc. but for the life of me, I can't give a sense questions that I now have.

    I realized this problem on my two desktop Vista and XP - new own websites (for testing)
    I might add CS2 not presented no problems in this area - which indicates the problem persists with cs3 (Bug?)

    I would be very grateful for any input or advice help...

    Well Yes...

    ASPvb script

    Thanks for the control of Mr Adobe - it seems that someone in the development of the production misnamed the file source DateTime in the Formats.xml file.

    The formats.xml file is a reference to the source file as DateTime Date/time NOT

    Remove the slash in the file reference name and everything works fine...

    See the path of file-
    C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\ServerFormats\ASP_Vbs\Formats.xml

    Now to return to developing countries... What Date/time/Frustration!

  • Date & time format to_timestamp

    Hello

    I struggled for a while now with the time format. It seems to be interpreted as a date as well. I just want it to be like in the original (with the difference
    that date should be dd/mm/yyyy.


    -original format 0307 10/14/2009

    Select to_timestamp (substr (ALLTEXT, 84.14), ' YYYY/MM/DDHH24MI') AS DATEOFCRE
    of csv_euro
    WHERE
    substr (ALLTEXT, 6.2) = "HH." -HEADER

    -result 14 October 09 03.07.00.000000000

    You can see that the time becomes something weird like 03.07.00.000000000. that is not really what I'm looking for. I'm looking for 0307.

    can someone help me with this problem?

    If you want to insert it in a date field, you must convert it to a date

    INSERT INTO EUROHEADER(
    DATEOFCRE
    )
    select to_date(substr(ALLTEXT, 84,14) , 'YYYY/MM/DDHH24MI')
    from csv_euro
    WHERE
    substr(ALLTEXT, 6,2) = 'HH'; 
    

    You get errors in your example, because your database's default date format does not match the string that extract you from your csv_euro.

    Concerning
    Marcus

    Edited by: Marwim the 03.12.2009 13:50

Maybe you are looking for