Hour:Minute presentation in Oracle

Hi,
I have to create table with every minute time presentation.
There will be three fields
TIME_DESC          Values: 00:00, 00:01,... , 12:32, 12:33,... ,23:58, 23:59 (according to hours and minutes)
Hour          Values: 00-23 (according to hours)
Minute          Values: 00-59 (according to Minutes)
So, single record will look like || 01:05 || 01 || 05 || or || 22:25 || 22 || 25 ||
How can i implement this table creation in single Oracle query?
Thanks.
Edited by: 946618 on Jul 16, 2012 4:42 AM
Edited by: 946618 on Jul 16, 2012 4:44 AM

Welcome to the forum!
Unfortunately you have posted to the SQL Developer forum which, as the forum title says, is not for SQL and PL/SQL questions.
If the below answers your question then mark it ANSWERED. Otherwise
1. Please repost the question in the SQL and PL/SQL forum
PL/SQL
2. Edit this question to provide the link to the new question
3. Mark this question ANSWERED to people will follow up in the other forum.
>
I need all the possable values of hour:minute from 00:00 till 23:59
>
Here is a query that will give you the combinations for a day
with hrs as (select rownum - 1 h from dual connect by rownum < 25),
     min as (select rownum - 1 m from dual connect by rownum < 61)
select lpad(h, 2, '0') || ':' || lpad(m,2, '0') TIME_DESC,
       LPAD(h, 2, '0') TIME_HOURS, LPAD(m, 2, '0') TIME_MIN FROM hrs, min
where rownum < 7
TIME_DESC,TIME_HOURS,TIME_MIN
00:00,00,00
00:01,00,01
00:02,00,02
00:03,00,03
00:04,00,04
00:05,00,05

Similar Messages

  • About year(), month(), date(), hour(), minute(), second() in Oracle

    In DB2, I can get the value of year, month, date, hour, minute, second from current timestamp by year(), month(), date(), hour(), minute(), second(). Like below SQL,
    SELECT current timestamp, year(current timestamp), month(current timestamp), date(current timestamp), hour(current timestamp), minute(current timestamp), second(current timestamp) FROM DUAL
    In Oracle, how can I modify above SQL?
    That is, do we have the corresponding function to each one of them in DB2?
    Thanks,
    JJ

    Hi Turloch,
    Thanks for your help.
    Here, I have another question.
    How about the days caculation?
    For example, in DB2, I have a SQL as below,
    select
    account_no
    from
    lit_transaction
    where
    ( start_date + no_of_days days - exp_days days) <= CURRENT DATE
    How can I modify above days caculation for Oracle?
    Thanks,
    J.

  • How can i bring Hour,Minute, second info in RMAN log ?

    DB version: 11.2.0.3
    Platform : Oracle Enterprise Linux 6.2
    Below is an excerpt from RMAN backup log file.
    As shown with the arrows below, the RMAN backup log doesn't have Hour, Minute and Second information. It just has the date 14-OCT-13
    input archived log thread=1 sequence=10946 RECID=21079 STAMP=828801629
    input archived log thread=2 sequence=10137 RECID=21081 STAMP=828801794
    input archived log thread=1 sequence=10947 RECID=21080 STAMP=828801731
    channel ch01: starting piece 1 at 14-OCT-13 --------------------------------------------> We need Time here like 17:28:43
    channel ch00: finished piece 1 at 14-OCT-13
    piece handle=al_9306_1_828819222 tag=TAG20131014T190816 comment=API Version 2.0,MMS Version 5.0.0.0
    channel ch00: backup set complete, elapsed time: 00:14:55
    channel ch00: deleting archived log(s)
    <snipped>
    How can I implement the equivalent of below statement for RMAN logging ?
    alter session set nls_date_format='DD-MM-YYYY HH24:MI:SS';

    HI,
    Very interesting question. I think there is no difference. I did the test. There is no difference in terms of performance. But I'm always on the way RMAN Strategist
    $  export NLS_DATE_FORMAT=’DD-MON-YY HH24:MI:SS’
    $ echo $NLS_DATE_FORMAT
    DD-MON-YY HH24:MI:SS
    $
    $ rman target / nocatalog
    Recovery Manager: Release 10.2.0.5.0 – Production on Thu Jun 9 14:47:05 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved
    connected to target database: ANARTEST (DBID=1459801106)
    using target database control file instead of recovery catalog
    RMAN> list backup of database completed between ‘sysdate-2′ and ‘sysdate’;
    List of Backup Sets
    ===================
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    1103    Full    591.40M    DISK        00:04:38     08-JUN-11 01:04:43
            BP Key: 1103   Status: AVAILABLE  Compressed: YES  Tag: TAG20110608T010004
            Piece Name: /oracle/rman/dbbak/Daily_bak_1459801106_2mmeb0ol_1_1.bak
      List of Datafiles in backup set 1103
      File LV Type Ckp SCN    Ckp Time           Name
      1       Full 33971595   08-JUN-11 01:00:05 /dba/data/system01.dbf
      2       Full 33971595   08-JUN-11 01:00:05 /dba/data/undotbs01.dbf
      3       Full 33971595   08-JUN-11 01:00:05 /dba/data/sysaux01.dbf
      4       Full 33971595   08-JUN-11 01:00:05 /dba/data/users01.dbf
      5       Full 33971595   08-JUN-11 01:00:05 /dba/data/data_ts01.dbf
      6       Full 33971595   08-JUN-11 01:00:05 /dba/data/index_ts01.dbf
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    1123    Full    593.09M    DISK        00:04:10     09-JUN-11 01:04:15
            BP Key: 1123   Status: AVAILABLE  Compressed: YES  Tag: TAG20110609T010005
            Piece Name: /oracle/rman/dbbak/Daily_bak_1459801106_3amedl4l_1_1.bak
      List of Datafiles in backup set 1123
      File LV Type Ckp SCN    Ckp Time           Name
      1       Full 36502391   09-JUN-11 01:00:05 /dba/data/system01.dbf
      2       Full 36502391   09-JUN-11 01:00:05 /dba/data/undotbs01.dbf
      3       Full 36502391   09-JUN-11 01:00:05 /dba/data/sysaux01.dbf
      4       Full 36502391   09-JUN-11 01:00:05 /dba/data/users01.dbf
      5       Full 36502391   09-JUN-11 01:00:05 /dba/data/data_ts01.dbf
      6       Full 36502391   09-JUN-11 01:00:05 /dba/data/index_ts01.dbf
    RMAN>
    Thank you

  • Displaying the hour, minute, seconds.....

    Hi fellow experts!
    Once again I call upon you for help. I'm strugglng with the formatting of dates...specifically the hour, minute, seconds between two dates.
    Sample data:
    create table test (script_name varchar2(50),run_start date,run_end date, job_id number, parent_job_id number);
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('IMPORTMTM','09-FEB-10','09-FEB-10','2409671','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('INT_EOD_VALUATIONS','09-FEB-10','09-FEB-10','2409673','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('ACC_EOD_FXACCOUNTING','09-FEB-10','09-FEB-10','2409677','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('GLO_EOD_FXUPDATE ','09-FEB-10','09-FEB-10','2409679','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('MX_PREACCOUNTING_BACKUP_RP','09-FEB-10','09-FEB-10','2409683','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('DM_PREACCOUNTING_BACKUP_RP','09-FEB-10','09-FEB-10','2409684','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('IMP_FIXING','09-FEB-10','09-FEB-10','2409688','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('GLO_EOD_FIXINGIRD','09-FEB-10','09-FEB-10','2409690','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('WAIT_5_MINS','09-FEB-10','09-FEB-10','2409692','2409645');
    The output of the time should look like the results from the query below:
    select floor((run_end-run_start)*24) as Hrs ,floor(((run_end-run_start)*1440 - floor((run_end-run_start)*24)*60)) as Mins,
    ceil(((run_end-run_start)*86400 - floor((run_end-run_start)*1440)*60)) as Secs
    from (
    select to_date('10-oct-2003 15:02:23','DD-Mon-YYYY HH24:Mi:SS') as run_start,
    to_date('10-oct-2003 16:20:20','DD-Mon-YYYY HH24:Mi:SS') as run_end
    from dual);
    i.e
    H M S
    1 17 57
    My current sql is:
    select script_name,
    run_start,
    run_end,
    floor((run_end-run_start)*24) as Hrs ,floor(((run_end-run_start)*1440 - floor((run_end-run_start)*24)*60)) as Mins,
    ceil(((run_end-run_start)*86400 - floor((run_end-run_start)*1440)*60)) as Secs
    from (
    select lpad(' ',5*level,' ')||name script_name
    ,to_date(run_start,'dd-mon-yyyy hh24:mi:ss') run_start, to_date(run_end,'dd-mon-yyyy hh24:mi:ss') run_end,
    sys_connect_by_path(to_date(run_start,'dd-mon-yyyy hh24:mi:ss'),'/') root_start
    from jcs_jobs
    connect by prior job_id = parent_job_id
    start with PARENT_JOB_ID IS NULL and job_id = 2409645
    I need a slight tweak somewhere, but can't quite get there!
    Oracle version is 9i
    Many thanks for your help in advance.
    Dev

    Hi,
    Devski Peters wrote:
    ......sorry, I didn't make myself clear.....Sorry, this message made things even less clear.
    Like Bhushan, I don't see any relationship between the data you posted:
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('IMPORTMTM','09-feb-2010 20:00:02','09-feb-2010 20:00:44','2409671','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('INT_EOD_VALUATIONS','09-feb-2010 20:00:44','09-feb-2010 20:01:03','2409673','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('ACC_EOD_FXACCOUNTING','09-feb-2010 20:01:05','09-feb-2010 20:01:24','2409677','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('GLO_EOD_FXUPDATE ','09-feb-2010 20:01:24','09-feb-2010 20:01:43','2409679','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('MX_PREACCOUNTING_BACKUP_RP','09-feb-2010 20:01:45','09-feb-2010 20:01:49','2409683','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('DM_PREACCOUNTING_BACKUP_RP','09-feb-2010 20:01:45','09-feb-2010 20:01:49','2409684','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('IMP_FIXING','09-feb-2010 20:01:51','09-feb-2010 20:02:15','2409688','2409645');and the results you want:
    NORMAL_DAY     09-feb-2010 18:05:00     10-feb-2010 04:22:45     20'681'879.88
    Step 1 of NORMAL_DAY     09-feb-2010 18:05:00     09-feb-2010 18:05:24     575.88
    Step 2 of NORMAL_DAY     09-feb-2010 18:05:24     09-feb-2010 18:05:46     527.88
    EOD_FX_RATE_UPLOAD     09-feb-2010 18:05:24     09-feb-2010 18:05:46     527.88
    Step 1 of EOD_FX_RATE_UPLOAD     09-feb-2010 18:05:24     09-feb-2010 18:05:30     143.88
    FX_FTPS_GET_EOD     09-feb-2010 18:05:26     09-feb-2010 18:05:30     95.88
    Step 2 of EOD_FX_RATE_UPLOAD     09-feb-2010 18:05:30     09-feb-2010 18:05:45     359.88
    FXSPOTS     09-feb-2010 18:05:31     09-feb-2010 18:05:45     335.88
    Step 3 of EOD_FX_RATE_UPLOAD     09-feb-2010 18:05:45     09-feb-2010 18:05:46     23.88
    SEND_MAIL_FXSPOTS     09-feb-2010 18:05:45     09-feb-2010 18:05:46     23.88
    Step 3 of NORMAL_DAY     09-feb-2010 18:05:46     09-feb-2010 18:06:10     1'535.88
    CALENDAR_UPLOAD     09-feb-2010 18:05:47     09-feb-2010 18:06:10     1'511.88
    Step 1 of CALENDAR_UPLOAD     09-feb-2010 18:05:47     09-feb-2010 18:05:53     143.88
    CALENDAR     09-feb-2010 18:05:47     09-feb-2010 18:05:53     143.88
    Step 2 of CALENDAR_UPLOAD     09-feb-2010 18:05:53     09-feb-2010 18:06:00     1'127.88
    MDS_STOP     09-feb-2010 18:05:53     09-feb-2010 18:06:00     1'127.88
    Step 3 of CALENDAR_UPLOAD     09-feb-2010 18:06:00     09-feb-2010 18:06:03     71.88
    MDS_HOLIDAY     09-feb-2010 18:06:00     09-feb-2010 18:06:03     71.88
    Step 4 of CALENDAR_UPLOAD     09-feb-2010 18:06:03     09-feb-2010 18:06:10     167.88Do you really want that data to produce that output?
    If the results are not from that data, then post a consistent set of data and results.
    When you have poted some sample data and the results you want from that data , explain how you get those results. Pick a couple of rows of output, and explain how you got every column in the results from the data. Be specific.
    The table has a 'pig ear' relationship......so job_id can have the same parent_job_id.....What is a "pig ear" relationship? (I like the name.)
    >
    The connect by allows me display the results with indentation, so the results will look like:The results look completely unformatted on my browser.
    When you post any formatted text on this site, type these 6 characters:
    (small letters only, inside curly brackets) before and after each formatted section.
    So for example,the first line shows a time of 20'681'879.88, which works out to 10:18 hours approx. Explain the relationship between 20'681'879.88 and "10:18 hours". (Do you mean 10 hours plus 18 minutes?)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Save date with precision (Hour, Minutes, seconds ) using V.O.

    Hi all,
    I'm using Jdeveloper 11g.
    I have an Entity object with a column called 'createdOn' of type Date and an entity based View Object with the same type.
    I'm trying to save today's Date with precision (day, month, year, hour, minutes, seconds) Using the view Object, but when I look in the Data Base, always appears the date without time.
    Here is my code in the application Module to save the data, I've tried some things but nothing...
    First I've tried using oracle.jbo.domain.Date, and I've tryed using Calendar as well. Nothing with
    ViewObjectImpl voSample = getSamples1View1();
    //Date creation for View Object
    oracle.jbo.domain.Date today = new Date(Date.getCurrentDate());
    //Calendar today = Calendar.getInstance();
    //loop through the list of samples (TESTGROUPTYPES), and create the objects
    while( it.hasNext())
    Row rowSample = voSample.createRow();
    SequenceImpl sequence = new SequenceImpl("SAMPLES_SEQ", voSample.getApplicationModule());
    rowSample.setAttribute("SampleId", sequence.getSequenceNumber());
    rowSample.setAttribute("CollectionId", stCollectionId);
    rowSample.setAttribute("TestgroupType",it.next());
    rowSample.setAttribute("UnitId",stUnitId);
    rowSample.setAttribute("SampleStatus", "ORDERED");
    rowSample.setAttribute("SampleBackup", "false");
    rowSample.setAttribute("CreatedOn", today);
    voSample.insertRow(rowSample);
    voSample.getApplicationModule().getTransaction().commit();
    Any help will be usefull,
    thanks in advance
    XAVI.

    Hello John,
    yes, I changed the date mask using
    alter session set NLS_DATE_FORMAT='DD/MM/YYYY-hh24:mi:ss'
    if i execute to_char(<date_column>, 'YY-MON-DD HH:MI:SS') on that column, the result is:
    09-MAY-27 12:00:00
    09-MAY-27 12:00:00
    09-MAY-27 12:00:00
    To launch the queries and see the results I'm using the JDeveloper's SQL WorkSheet.
    I can update the data and time and the time persists in the DB
    08-FEB-26 08:07:56
    so, i think there's something in hte EO, VO or App Module method that I'm doing wrong...
    The Entity Attribute is confirured:
    name: CreatedOn
    Type: Date
    Value type: literal
    Values checked: Persistent, Precision Rule and Queryable
    database column: CREATED_ON, type: DATE
    The View attribute is configured:
    Name: CreatedOn
    Type: Date
    Value type: Literal
    checked: Mapped to Column or SQL, Selected in query, queryable
    query column: Alias: CREATED_ON, Type: DATE

  • Unable to exract hour,minute,seconds from current_timestamp or systimestamp

    Hi All,
    I am trying to extract hour,minute,seconds from systimestamp/current_timestamp using extract function but unable to get the correct o/p.
    I am getting the correct o/p using the to_char function but i want to know is it not possible to use extract function to achieve the same?
    Following are the queries i tried.
    ALTER SESSION SET time_zone = local;
    SELECT current_timestamp,
    EXTRACT(hour FROM current_timestamp) hour_part,
    EXTRACT(minute FROM current_timestamp) minute_part,
    EXTRACT(second FROM current_timestamp) seconds_part,
    EXTRACT(timezone_hour FROM current_timestamp) TH,
    EXTRACT(timezone_minute FROM current_timestamp) TM
    FROM dual;
    Output:
    25-AUG-10 12.24.43.590000000 PM ASIA/CALCUTTA     6     54     43.59     5     30
    Here hour_part is coming has 6 instead of 12(from current_timestamp), minute has 54 instead of 24.
    Please help me on this.
    Thanks in Advance

    Hi,
    If you whish to use a TZ, you should use the localtimestamp instead:
    ALTER SESSION SET TIME_ZONE = ' ASIA/CALCUTTA';
    select '1',current_timestamp,EXTRACT(hour FROM current_timestamp) hour_part,
    EXTRACT(minute FROM current_timestamp) minute_part,
    EXTRACT(second FROM current_timestamp) seconds_part from dual
    union all
    select '2', LOCALTIMESTAMP,EXTRACT(hour FROM LOCALTIMESTAMP) hour_part,
    EXTRACT(minute FROM LOCALTIMESTAMP) minute_part,
    EXTRACT(second FROM LOCALTIMESTAMP) seconds_part from dual
    '1'     CURRENT_TIMESTAMP     HOUR_PART     MINUTE_PART     SECONDS_PART
    1     8/25/2010 1:06:39.071283 PM +05:30     7     36     39.071283
    2     8/25/2010 1:06:39.071283 PM +05:30     13     6     39.071283http://download.oracle.com/docs/cd/B13789_01/server.101/b10759/functions033.htm
    (your difference comes from the TZ ASIA/CALCULTA) : 05:30
    Edited by: user11268895 on Aug 25, 2010 9:39 AM
    Edited by: user11268895 on Aug 25, 2010 9:39 AM

  • I am looking for a timer that shows elapsed time since a particular date and time.  Showing days, hours, minutes etc.

    I would like to download an application for my desktop and maybe even my iphone that will tell me how many days, hours, minutes, etc have elapsed since a particular date.
    For example, my brother just had a baby and I want to put that date and time into the app and then determine how long it has been since that date and time.
    Hopefully this makes sense, because I have not been able to locate anything.
    Thanks in advance,

    This is fantastic.  Thank you.
    Is there any way to have something like this displayed on my desktop showing the time as it ticks away?

  • How do I log the time in hours, minutes and seconds to a table

    Hi
    I'm a relatively new user of Labview. I am currently writing a program that logs the temperature of an oven and the current time to a table and graph. I am using a GPIB card to communicate with the oven. I have used the Get Date/Time string to get the time and the Decimal String to Number to convert the time to a number which I have then put into an array which goes to a table and graph. My problem at the moment is that the time is being logged in hours only. I need to log the time in hours, minutes and seconds. Can you tell me how I can do this?

    Hi,
    I can see the setup now. The decimal string to number will only ever give the hours, since the ':' character is not part of a number, so won't translate. Use the code I attached previously to get the time as a timestamp, and then go from there.
    I've made some modifications, although you'll need to alter the file save to take into account the double precision number
    for the timestamp is now 3E+9 (since it's seconds since 1904!!), but since you're writing to a comma separated values (or tab deliminated) style file, this shouldn't be a problem. You could always do a textual save from the table instead.
    Thanks
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer
    Attachments:
    temp time program.vi ‏98 KB

  • Adding day/hour/minute/second to a date value

    How does one add a day/hour/minute/second to a date value?

    SQL> select to_char(sysdate, 'DD/MM/YYYY HH24:MI:SS') to_day,
      2         to_char(sysdate+1, 'DD/MM/YYYY HH24:MI:SS') add_day,
      3         to_char(sysdate + 1/24, 'DD/MM/YYYY HH24:MI:SS') add_hour,
      4         to_char(sysdate + 1/(24*60), 'DD/MM/YYYY HH24:MI:SS') add_minute,
      5         to_char(sysdate + 1/(24*60*60), 'DD/MM/YYYY HH24:MI:SS') add_second
      6  from dual
      7  /
    TO_DAY              ADD_DAY             ADD_HOUR            ADD_MINUTE          ADD_SECOND
    10/10/2006 11:54:23 11/10/2006 11:54:23 10/10/2006 12:54:23 10/10/2006 11:55:23 10/10/2006 11:54:24
    SQL>Cheers
    Sarma.

  • Write elapsed time to a spreadsheet in hours:minutes:seconds format

    Hi everyone,
    I've been trying to write an elapsed time to a spreadsheet file in an hours:minutes:seconds format, but the time is displayed in a floating point value of seconds..
    how can I write to a spreadsheet in an hours:minutes:seconds format.
    Thank you,
    James-

    I often use a subVI that converts Seconds to Hours, Minutes and Seconds. Use the Quotient and Remainder function to divide your elapsed time by 3600, 60 and 1. You can then convert those values to a modified string and use the Write to Spreadsheet File.
    As Dennis said, newer versions of LabVIEW's Write to Spreadsheet File.VI can handle arrays of Double, Integer or String automatically, and in older versions, the Write to Spreadsheet File.VI can be modified and copied to handle strings.
    Hope this helps.
    (Written in 8.5)
    Message Edited by LabViewGuruWannabe on 01-18-2008 09:28 PM
    Attachments:
    TimeToSpreadsheet.vi ‏26 KB
    SecondstoHMS.png ‏32 KB

  • Function Module to find the Diff bt Two Times : O/p : Hours:Minutes only

    Hi All,
    Wud you plz let me know the Function Module to find the Difference between two times.
    Input Time1( Hours:Minutes:Seconds) Time2 ( Hours:Minutes:Seconds)
    Need Output in Hours:Minutes only .  ( No seconds Needed )
    Thanks,
    N.L.Narayana

    Hi
    Please use FM
    <b>SD_DATETIME_DIFFERENCE</b>

  • FM for microseconds to  hours : minutes : seconds : microseconds conversion

    Hi Expart ,
                    Is there is any Fm to Convert  microseconds to  hours : minutes : seconds : microseconds. Actually i get the runtime in Micro second and i need to display it in above format .
    Please help me to get the fm or other simple way to do this
    Thanks
    Raju

    Hi,
    Use this link
    FM to converts seconds into HH:MM:SS
    Function Module for converting seconds into hours and minutes
    Hope these will help you.
    Regards,
    Vijay

  • Convert seconds to Days, hours, Minutes, Seconds in Reporting Services

    Hi Guys,
    Im currently reporting of an analysis services cube, however I have value which is in seconds and would like to report on this in reporting services as day:HH:MM:SS.
    Has anyone got any experience reporting in this format?
    Regards
    Dave

    Hi Dave,
    We can use custom code to convert seconds to HH:MM:SS
    Public Function Calculate(ByVal TotalSeconds as Integer) as String
    Dim Hours, Minutes, Seconds As Integer
    Dim Hour, Minute, Second As String
    Hours = floor(TotalSeconds/ 3600)
    IF Hours<10
       Hour="0" & Hours.ToString
    Else
       Hour=Hours.ToString
    End IF
    Seconds = TotalSeconds Mod 3600
    Minutes =floor( Seconds / 60)
    IF Minutes<10
       Minute="0" & Minutes.ToString
    Else
       Minute=Minutes.ToString
    End IF
    Seconds = Seconds Mod 60
    IF Seconds<10
       Second="0" & Seconds.ToString
    Else
       Second=Seconds.ToString
    End IF
    Return Hour & ":" & Minute & ":" & Second
    End Function
    Then we can use the expression to conver it.
    =Code.Calculate(Fields!Column.Value)
    The report looks like below:
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • List of MBeans present in Oracle 10 g 10.1.2 AS.

    Hi All
    Can anyone list MBeans present in Oracle 10 g 10.1.2 AS.(any document url also would be fine)
    And also did any one access the MBeans using the MC4j application.
    If so how did u access.
    Regards
    Siva

    Did you install the db's?
    Anyway, you shouldn't have missed it in the Installation Guide (or Platform Guide for Windows) or in the Administrator's Guide.

  • What is the best way to explain Indesign in a four minute presentation?

    I have to give a four minute presentation on a technology (in this case InDesign) in class. How do you cover such a broad technology in four minutes? Suggestions would be great!

    You could investigate the problems in trying to reconcile "old" technology of creating physical pages, of a fixed size and without any other interactivity than turning the page, with modern variants where page size is non-existent, interactivity is *expected*, and there is no such thing as a fixed font, font size, or page orientation.
    InDesign's original purpose was to create "old" technology books, but recent versions claim to be of use for other media as well. Discuss overlaps and differences.
    (For a good look on one of the problematic areas, you can search this forum for the eternal confusion on "what is a pixel, actually?")

Maybe you are looking for

  • Colour changing

    Hi all. I'm new to photo editing so please be nice to me as I will probably ask questions that have been covered a 1000 times. I'm slowly learning how to use Elements 11 but can't work out how to pick out an item either in colour or black and white.

  • EDI output from SAP SRM

    Hello Experts,    I know that EDI transmission method can be used for PO output from SRM, but not sure how this is achieved, is it done via XML/XI and can some one throw some light on this process and the pain points to achieve this.   My currenct im

  • Novatel HSDPA Modem for Protege M700 and Windows 7 RC

    Hi all, after a lot of searching through the web I am stuck. I did find the current Mobilink Software (v2_02_37) which successfully installs and the new Toshiba Utils (1.1.7). Now I am searching a Novatel driver or the actual 3G modem. The one from T

  • IPTComm 2007 Call for Demos

    Please find enclosed the Call for Demos for a new conference devoted to IP telecommunications to be held in New York, July 2007. You are encouraged to circulate this CFD to interested colleagues, mailing lists, forums and blogs. Greg Bond IPTComm 200

  • Security preferences will not load

    I can't load the Security control panel. I get this as an error dialog: Preferences Error Could not load Security & Privacy preference pane. [OK] When I get into my console logs, I see this: 7/20/11 3:21:04.429 PM System Preferences: com.apple.prefer