I want to find different time interval btw two times

hi every body,
my question : i ll give start time and end time as input.
i want output ,time interval btw start time and end time
for exp:  i ll give 7 to 11 as input.
    tables have data like   7   to  7.29.59  --->  1 prog
                                       8.00.00 to 9.29.59-----> 2 prog
                                       10.00.00 to 10.29.59--->3 prog
i want to find time gap btw the progs  and want display output as  like  7.30.00 - 7.59.59  --->1 interval
                                                                                9.30.00-9.59.59   ---> 2 interval
                                                                                10.29.59-11.00.00---->3 interval

Hi,
declare some tmp WA as wa_tmp
loop the data.
adding from date.
wa_tmp = data-from + 1 .
read the next line
read table data index sy-tabix + 1
wa_tmp = to date of next line - 1.
then append wa_tmp to final it.
endloop.
Hope it helps.

Similar Messages

  • How to find diff time interval btw two times

    hi every body,
    my question : i ll give
    start date and end date,
    start time and end time as input.
    i want output ,time interval btw start time and end time
    for exp: i ll give 7 to 11 as input.
    tables have data like 7 to 7.29.59 ---> 1 prog
    8.00.00 to 9.29.59-----> 2 prog
    10.00.00 to 10.29.59--->3 prog
    i want to find time gap btw the progs and want display output as like 7.30.00 - 7.59.59 --->1 interval
    9.30.00-9.59.59 ---> 2 interval
    10.29.59-11.00.00---->3 interval

    Hi,
    declare some tmp WA as wa_tmp
    loop the data.
    adding from date.
    wa_tmp = data-from + 1 .
    read the next line
    read table data index sy-tabix + 1
    wa_tmp = to date of next line - 1.
    then append wa_tmp to final it.
    endloop.
    Hope it helps.

  • Finding out time for importing a transport

    Hello,
    I want to find the time taken by a transport to be imported to a system.
    It can be done through the logs, but in this case, I have a huge list of TRs.
    Is there an option in SAP where I can find out the time for importing each TR?
    Thanks,
    Prateek

    Hi,
    U can see this in STMS
    Go to STMS->Overview->Import overview->Select the queue where u want to see->Double click on it u can see the requests->
    Double click on the request u want->there select the request and click on transport  logs icon on top

  • Finding Missing Time Interval in SQL

    All 
     Need help with SQL to find Missing Time Interval. 
    My query returns data as given below  
    Data1
     Column      StartTime    EndTime
    =======   =======   ======= 
    T2               9:00          18:00T3               20:00         23:00 
    Data2
     Column      StartTime    EndTime
    =======   =======   ======= T1               15:00          20:00
    T3               20:00          07:00 
    Take above output, I want to find Time Not on my Data in 24 hours from First StartTime on each Data Set.
    Example: Data1
    First StartTime: 9:00 AM (T2 record)
    Add 24 hours, which will be 9:00AM Next day.
    Expected Result to get missing time interval for Data1
    18:00 - 20:00
    23:00 - 9:00 (next day)
    For Data2 Expected result
    7:00 - 15:00 Next Day
    Database version: 11g
    Anyone come across to calculate missing time interval? Can I use PL/SQL for this like pipeline function?
    Any help/directions/references I highly appreciate.
    Thanks in advance.
    Karth

    One way of finding Missing Intervals:
    alter session set nls_date_format = 'DD-Mon-YYYY HH24:MI:SS';
    with data as
      select to_date('28-Jun-2013 09:00', 'DD-Mon-YYYY HH24:MI') start_time, to_date('28-Jun-2013 18:00', 'DD-Mon-YYYY HH24:MI') end_time from dual union all
      select to_date('28-Jun-2013 20:00', 'DD-Mon-YYYY HH24:MI') start_time, to_date('28-Jun-2013 23:00', 'DD-Mon-YYYY HH24:MI') end_time from dual
    select start_time, end_time,
           case when lead(to_char(start_time, 'HH24'), 1, (select min(to_char(start_time, 'HH24')) from data)) over (order by to_char(start_time, 'HH24')) not between to_char(start_time, 'HH24') and to_char(end_time, 'HH24')
                  then to_char(end_time, 'HH24:MI') || ' - ' || lead(to_char(start_time, 'HH24:MI'), 1, (select min(to_char(start_time, 'HH24:MI')) from data)) over (order by to_char(start_time, 'HH24:MI'))
                else
                  null
           end period
      from data
    START_TIME                END_TIME                  PERIOD      
    28-Jun-2013 09:00:00      28-Jun-2013 18:00:00      18:00 - 20:00
    28-Jun-2013 20:00:00      28-Jun-2013 23:00:00      23:00 - 09:00
    Time information need not be stored in additional Varchar fields, if you have Date Column. You can use Date fields that store Date and time both.
    Another way of approaching this problem is with Connect By Clause or Model Clause. Use the search functionality to find solutions using those methods too. However, in my opinion, this method is the quickest of all.

  • Problem in updating value at different time interval

    Hello,
    Can anyonce suggest me how to update different value at different time interval.
    I want to use only one while loop but I should be able to send data at different rate.
    Eg:- I have 3 input ,10,20,30
    I need to give output 10 at every 5 ms
    20 at every 10th sec
    30th at every 13th sec.
    so my output should be
    10 at 5th sec
    10 at 10 sec
    20 at 10th sec
    30th at 13th sec.
    Please let me know if anyone has solution for it.

    Is this under windows on in a realtime system?
    In the varous posts, you are sometimes talking about milliseconds, sometimes about seconds
    You could run a timed loop at 5ms time and use quotient and remainder for each multiple with three parallel case structures.
    Here's a possible solution for the case:
    output 10 at every 5 ms
    20 at every 10th sec
    30th at every 13th sec.
    as in the original post...
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    VariousTimes.png ‏8 KB

  • I have 2 different MacBooks (owned by 2 people) connected to my Time Capsule. I want to use the Time Capsule to back up both MacBooks separately from each other. Can one person access the hard drive of the other person, on the same Time Capsule?

    I have 2 different MacBooks (owned by 2 people) connected to the same Time Capsule over a wifi network. I want to use the Time Capsule to back up both MacBooks separately from each other. Can one person access the hard drive of the other person, on the same Time Capsule? Is there a way to ensure that the files on the 2 laptops are kept private from each other? Thanks!

    If someone really wants to do something, it won't take them long to find out how to do it. 
    http://pondini.org/TM/17.html
    Security on a Time Capsule is a bit like installing a lock on a tent. It will keep the honest folks out, but probably not the others.

  • Hello find my mac displays offline when I'm using the actual mac I want to find at the time, can anyone help?, Hello find my mac displays offline when I'm using the actual mac I want to find at the time, can anyone help?

    Hello find my mac displays offline when I'm using the actual mac I want to find at the time, can anyone help?, Hello find my mac displays offline when I'm using the actual mac I want to find at the time, can anyone help?

    Welcome to the Apple community.
    Is your Mac connected to the network via ethernet. Mac's thatareI connected via ethernet cannot be located using "find my phone".

  • I want to find the difference(duration) between logon and logoff time?

    i want to find the difference(duration) between logon and logoff time of below table?
    can any one tell the query to find using self join?
    USR     LOGON_TIME     LOGOFF_TIME
    HR     31-AUG-04 03.04.04.000000 AM     -
    HR     - 31-AUG-04 03.04.14.000000 AM
    Edited by: 794244 on Nov 1, 2010 10:47 PM

    No selfjoin, just analytical functions.
    CREATE TABLe log_time
    (username varchar(20),
    LOGON_TIME timestamp,
    LOGOFF_TIME timestamp);
    insert into  log_time (username,LOGON_TIME,LOGOFF_TIME) values ('HR',sysdate,null);
    insert into  log_time (username,LOGON_TIME,LOGOFF_TIME) values ('HR',null,sysdate+1/38);
    insert into  log_time (username,LOGON_TIME,LOGOFF_TIME) values ('HR',sysdate+2,null);
    insert into  log_time (username,LOGON_TIME,LOGOFF_TIME) values ('HR',null,sysdate+2+14/20);
    commit;
    SELECT username,logon_time,logoff_time, my_logoff_time, my_logoff_time -logon_time,
           time_to_sort
    FROM (
            SELECT username,logon_time, logoff_time,
                   LEAD(logoff_time,1,logon_time) OVER (PARTITION BY username ORDER BY time_to_sort) my_logoff_time,
                   time_to_sort
            FROM (SELECT username,logon_time,logoff_time,NVL(logon_time,logoff_time) time_to_sort
                  FROM log_time)
    where LOGON_TIME is not null     
    ORDER BY  time_to_sort; 
    USERNAME     LOGON_TIME     LOGOFF_TIME     MY_LOGOFF_TIME     MY_LOGOFF_TIME-LOGON_TIME     TIME_TO_SORT
    HR     02.11.10 11:34:56.000000000          02.11.10 12:12:50.000000000     0 0:37:54.0     02.11.10 11:34:56.000000000
    HR     04.11.10 11:34:56.000000000          05.11.10 04:22:56.000000000     0 16:48:0.0     04.11.10 11:34:56.000000000But, if that code which fills that table should better UPDATE than INSERT. You can cover much more issues. (e.g the DB crashes and you get 2 logon but no logoff in a sequence and.....)
    -- andy

  • I just replaced my hard drive and restored everything from Time machine. However, I am unable to open iphoto and the following message appears Your photo library was not found. Do you want to find your iPhoto Library?

    I just replaced my hard drive and restored everything from Time machine. However, I am unable to open iphoto and the following message appears Your photo library was not found. Do you want to find your iPhoto Library?
    Where do I find this library?
    thanks
    Shak

    Twas quite a hassle if I am honest which was eventually resolved but I don't feel qualified to help anyone through the process as it required a trip to my local apple store and a genius bar appointment.
    Personally, I would do anything like moving pictures out of folders etc. Certainly not creating a new users. i don't think that is an elegant solution
    Try the following which MAY just about rescue the situation for you but if they don't work you may have to do something more drastic.
    (1) Holding down Cmd & Alt at the same time, start iPhoto by clicking on the iPhoto icon. From the resulting menu choose Rebuild photo library by selecting all available options given to you and then pressing REBUILD!
    If that doesn't work
    (2) Fire up Utilities. Go to migration assistant. Chose 'From another Time machine back-up'. Open the 'Users' option that comes up next and from there select Pictures, then uncheck everything else like Applications etc (you don't want to do a full migration of everything) and click go.
    If that doesn't work, take a deep breath and this step is rather complicated but it worked for me. First of all close iPhoto! Then go to new Finder window.
    From the Finder window choose Pictures, then iPhoto library, press CMD and the letter i. It brings up a new window. Go to Sharing & permissions. From there select the padlock to unlock settings. and then select User account, then press the 'cog' icon next to +/- abd choose Apply to enclosed items.
    This may take a while. Once completed, re-open iPhoto.
    And that should (I stress should) cure it.
    Good luck.

  • I want to download face time on iPad 2 I could not find it a bought it from Dubai and am living in canada

    I want to download face time on iPad 2 I could not find it a bought it from Dubai and am living in canada

    You cannot get it ever.
    Your iPads serial number is blocked because you bought it in a country that does not allow FaceTime.
    No matter where you go, you can not get it.

  • How to read from DAQ in different time intervals

    Hello,
    I am currently using LabVIEW 2010. I am new to LabView.
    I have 9 thermocouples I want to record the temperature from and create a graph.
    For one graph I want to graph the data every second for the duration of about 1.25 hours. For the other I want to record and graph the data every 2 minutes for a duration of 30 minutes. The temperature then would be ramped up in an oven and set to a higher temperature. When it is stabilized, recording of the data again will begin again at intervals of 2 minutes for the duration of 30 minutes.
    The first is only to see the real time temperature variation while the program is recording and running. The second graph and data is what I will use to analyze.
    What I need help in is finding out how you can read from the DAQmx at two different time intervals. I tried two parallel loops with each one graphing the two separate graphs I need with a delay time. Those two parallel loops where then surrounded by another while loop. The result is that the outside loop waits until both loops are finished so I do not get the correct results for the real time data graph.
    Is there a way to call on the DAQ data you need at the time interval you desire? Any suggestions to solve this problem? Thank you for your time and help.

    You are on the right track.  Sample the data at the fastest rate and send it to the 1st graph.  For the slower graph, take a sample from the faster data at your desired time interval.  You could use a timer and a case structure for something quick and easy and still have everything run in the same loop.  You could use two loops running at different speeds, it is just a little more involved and a few other things to consider. 

  • Your photo library was not found. Do you want to find your iPhoto Library?

    Your photo library was not found. Do you want to find your iPhoto Library?
    Do you want to create or find?
    This is the message I get when I try to open iphoto.
    1. this is the first time since I've used iphoto that this has happened.
    2. I would like to know why.
    3. I am not sure which choice to make.
    4. recent changes involving photos would be deleting several photos....I used a program called Grand Perspective and began to delete photos from there
    5. although I'm interested in fixing this problem, I would like to learn more about 'libraries' and the way iphoto works. Previous to owning a Mac, I used Picasa with my pc and I don't remember it using as much space on my hard drive. iphoto has a large number of duplicated photos of which I've been unable to resolve easily and it is approx. 60 G of space. I would like to have access to my images (30,000) through external hard drives but not necessarily have them all on my mac. I believe that is what Picasa does. I'm using the new Picasa for Mac but want to continue to use iphoto as well.
    If I did not form this question well enough, please let me know how to clarify. I'm trying to remedy this while answering a million Why? why? Why? questions from my 4 year old!
    Thank you.
    iphoto 7.1.5

    I would like to learn more about 'libraries'
    Step one is to learn about iPhoto - it is not a photo viewer like Picasa - it is a photo manager and uses an SQL database - the content and structure of this database are critical (as with any database application) to the operation of iPhoto - any changes made to either the content or structure of the database using external programs including (especially) the finder can corrupt the database and cause you to lose data
    recent changes involving photos would be deleting several photos....I used a program called Grand Perspective and began to delete photos from there
    This is how you destroyed your iPhoto library and made it unusable
    As to space - the iPhoto database contains at a minimum a copy of the original photo (in the default and recommended operating environment) and a small thumbnail. When any modification to the photo is made a modified version is created so there might be three versions (no duplicates) of a photo within the iPhoto library - none of them are extraneous and none of them can be removed without corrupting the iPhoto library
    Once a photo is imported into iPhoto (assuming default settings which are strongly recommended) the original source photo outside of iPhoto can be archived, deleted or otherwise handles - iPhoto has no further need for it.
    The iPhoto library can be located on an external hard drive so long as that hard drive is always available when iPhoto is running
    In general it is not advised to run two different photo organizers against the same photos - so if you use both Picasa and iPhoto you are likely to create future problems (although Google claims it is possible - just remember that you can not successfully make any change of any sort to any photo with the iPhoto library using Picasa or any other program - if you only use Picasa to look at photos you may be ok - if you never make any mistakes
    As to your immediate problem - you have destroyed you iPhoto library by deleting files from it. If you want to use iPhoto you will have to start over - find the originals folder within the iPhoto library and launch iPhoto while depressing the option (alt) key and create a new library - import the photos from the originals folder into iPhoto and do not go inside the iPhoto library or modify the contents of the iPhoto library in the future.
    LN
    Message was edited by: LarryHN

  • Can I change what I want synced across different devices on the same Apple ID?

    Good evening everyone,
    I purchased a 13" MacBook Pro with MAC OS X Lion, set up the iCloud function and everything worked well.  I have recently purchased a 17" MacBook Pro MAC OS X Lion also and want to be able to sync my Calendars with my iPhone.  I do however want to find out if it is possible to change the settings on my 13" Laptop so that nothing else but music is stored in my cloud since I use it solely for the purpose of DJing.  I want my 17" only for scheduling and keeping track of my interpreting business information.  Is this possible without screwing up my iCloud too much?
    Thanks,
    Juan

    Figured it out...thanks though ahead of time.

  • How can I save my data and the date,the time into the same file when I run this VI at different times?

    I use a translation stage for the experiment.For each user in the lab the stage position (to start an experiment) is different.I defined one end of the stage as zero. I want to save the position , date and time of the stage with respect to zero.I want all these in one file, nd everytime I run it it should save to the same file, like this:
    2/12/03 16:04 13567
    2/13/03 10:15 35678
    So I will track the position from day to day.If naybody helps, I appreciate it.Thanks.

    evolution wrote in message news:<[email protected]>...
    > How can I save my data and the date,the time into the same file when
    > I run this VI at different times?
    >
    > I use a translation stage for the experiment.For each user in the lab
    > the stage position (to start an experiment) is different.I defined one
    > end of the stage as zero. I want to save the position , date and time
    > of the stage with respect to zero.I want all these in one file, nd
    > everytime I run it it should save to the same file, like this:
    > 2/12/03 16:04 13567
    > 2/13/03 10:15 35678
    >
    > So I will track the position from day to day.If naybody helps, I
    > appreciate it.Thanks.
    Hi,
    I know the function "write to spreadsheet file.vi"
    can append the data
    to file. You can use the "concatenate strings" to display the date,
    time as well as data... Hope this help.
    Regards,
    celery

  • Some, but not all, podcasts existing on the iPod no longer appear in iTunes. Different podcasts have been affected at different times, after changes in the state of the iPod. Only podcasts are affected.

    I have not seen this precise issue addressed anywhere. I don’t know if it’s an iTunes or an iPod problem:
    - Some, but not all, podcasts existing on the iPod no longer appear in iTunes;
      this, after normal behavior for more than a year since purchase of the iPod.
    - Different podcasts have been affected at different times, after changes in the state of the iPod.
    - Only podcasts are affected.
    - This concerns an iPod nano 6th gen. and iTunes 11.0.2 (26) on System 10.6.8
    - The only change to iTunes, the Mac, or the iPod is that just before this condition began
      I’d begun syncing an iPhone via iTunes.
    I sync manually (“manually manage music and videos”). The first time this happened, I wanted to delete seventeen podcast episodes (all belonging to one podcast) existing on the iPod — but they didn’t show up in iTunes. I tried re-downloading them and re-syncing, to see if the new versions would somehow “re-link” to iTunes. They didn’t. Only one — new — episode appeared in iTunes.
    I ultimately reset the iPod and manually resynced all the podcasts I currently had on iTunes. That worked, though I had to painstakingly add in all the other content deleted by the reset.
    So: after that reset and manual sync, all podcasts and episodes on the iPod were visible to iTunes and I was able to delete the podcast and its — now 18 — episodes I’d wanted to get rid of to begin with. But the next time I connected the iPod, only 8 podcast episodes out of 21 episodes total existing on the iPod were visible to iTunes. These are different podcasts; I’d deleted the original “invisible” ones.
    By “visible,” I mean in the “Podcasts” list view under “[name]’s iPod” in the iTunes sidebar. If I select “[name]’s” iPod in the iTunes sidebar and the “Podcasts” tab, all podcasts and episodes are visible, though greyed out because I’m set to sync manually. It’s unclear to me if these are the podcasts on the iPod or those currently in iTunes, as they are currently the same. If I switch to syncing automatically, all content on the iPod will be lost again, so I’m not up to trying it at the moment.
    As I said,  this involves only podcasts. All other content on the iPod does appear in iTunes.

    I have the same problem- i see my movies in the ipod section in itunes and they even show as mpeg4 in the 'kind' section but they dont have that small TV icon next to them. if i play these in itunes, they play fine- but try playing them on the ipod and all you hear is the sound and no picture. All videos that i manually transfer work fine in the beginning- its when i hook up the ipod to the comp again and start itunes- they start showing up without the 'tv' icon!! i have to again transfer them from the itunes library to activate them as videos.
    Need Help!!!

Maybe you are looking for

  • Apple tv patch 6.1.1 extended desktop not working

    My apple tv just upgraded to patch 6.1.1(6698.99.19)  from 6.1(6698.99.19) I have an Ipad Mini2 which I normally use to view movies on my tv. I will select the apple tv, (with air play) and play the movie using Moliplayer on the Ipad mini2. I was abl

  • When DB- open() is called, is File I/O blocked?

    Hello experts, Our customer is asking whether file I/O is blocked or not when multi tasks call DB->open() simultaneously. Best regards, Yuki

  • Slow start up. Sometimes freezes.

    When I shut down my Macbook and then I power it back up some time later the start up is taking twice as long as usual. Sometimes the little circular thing that shows at start up freezes. It usually goes back to normal if I press down the power button

  • Siri on the iPad

    Having a bit of trouble loading Siri on the iPad. Have the new iOS6, but cannot get Siri to load. Must it be purchased or does it come with the new software? Thanks!

  • Unable to run DBServlet/Servlet

    I have successfully created Http servlet as well as Db Servlet, after rebuild when I am trying to run it it doesn't show any output, it is not opening any browser. Pls. Help