Check time between 2 times

Hi;
i need to know if time is between two times.for example :
if 01:00 is between 18:00 to 07:00.
How should i do it?is there any function?
the time of the fields is TIMS.
Thank you very much!!!
David

I have a small question..here?
time is depends on the Date, if you don't consider the date you may get wrong results.
if you are working with the same Date then..
you can do some thing like this..
REPORT  ZTEST_TIME.
data: r_time type range of sy-uzeit,
        w_time like line of r_time.
data: current_time type sy-uzeit.
*06:00 is between 01:00 to 07:00.
w_time-low = '010000'.
w_time-high = '070000'.
w_time-sign = 'I'.
w_time-option = 'BT'.
append w_time to r_time.
current_time = '060000'.
if current_time in r_time.
write 'in the range'.
else.
write 'not in the range'.
endif.

Similar Messages

  • Converting time between time zones

    I would like to convert a user input date between 2 time zones, for example between America/Chicago and Europe/Paris. So, when user enters 2005-02-10 13:00 America/Chicago, I need to calculate this time in Paris accounting for any daylight savings time. Could someone point me in the right direction to accomplish this. I believe, java.text.SimpleDateFormat can be used, but I can't get this to work. Thanks

    I would like to convert a user input date between 2
    time zones, for example between America/Chicago and
    Europe/Paris. So, when user enters 2005-02-10 13:00
    America/Chicago, I need to calculate this time in
    Paris accounting for any daylight savings time.
    Could someone point me in the right direction to
    o accomplish this. I believe,
    java.text.SimpleDateFormat can be used, but I can't
    get this to work. Thanks
         try
              String tz=TimeZone.getTimeZone("America/Chicago").getDisplayName();
              java.text.SimpleDateFormat sdf=new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm z");
              Date d=sdf.parse("2005-02-10 13:00 "+tz);
              sdf.setTimeZone(TimeZone.getTimeZone("Europe/Paris"));
              System.out.println("Time in Paris: "+sdf.format(d));
         catch(Exception e){e.printStackTrace();}I dont know whether it is really working. Splitting of date -time and timezone has to be considered

  • "logon time" between USR41 and security audit log

    Dear colleagues,
    I got a following question from customer for security audit reason.
    > 'Logon date' and 'Logon time' values stored in table  USR41 are exactly same as
    > logon history of Security Audit Log(Tr-cd:SM20)?
    Table:USR41 saves 'logon date' and 'logon time' when user logs on to SAP System from SAP GUI.
    And the Security Audit Log(Tr-cd:SM20) can save user's logon history;
    at the time when user logged on, the security audit log is recorded .
    I tried to check SAP GUI logon program:SAPMSYST several ways, however,
    I could not check it because the program is protected even for read access.
    I want to know about specification of "logon time" between USR41 and security audit log,
    or about how to look into the program:SAPMSYST and debug it.
    Thank you.
    Best Regards.

    Hi,
    If you configure Security Audit you can achieve your goals...
    1-Audit the employees how access the screens, tables, data...etc
    Answer : Option 1 & 3
    2-Audit all changes by all users to the data
    Answer : Option 1 & 3
    3-Keep the data up to one month
    Answer: No such settings, but you can define maximum log size.
    4-Log retention period can be defined.
    Answer: No !.. but you can define maximum log size.
    SM19/SM20 Options:
    1-Dialog logon
    You can check how many users logged in and at what time
    2-RFC login/call
    Same as above you can check RFC logins
    3-Transaction/report start
    You can see which report or transaction are executed and at what time
    (It will help you to analyise unauthorized data change. Transactions/report can give you an idea, what data has been changed. So you can see who changed the data)
    4-User master change
    (You can see user master changes log with this option)
    5-System/Other events
    (System error can be logged using this option)
    Hope, it clear the things...
    Regards.
    Rajesh Narkhede

  • How to keep waiting time between processed messages !!

    Hi Folks,
    I have got one scenario required waiting time between processed messages. The problem as follows !!
    File --> Proxy scenario. I receive 15 messages from sender side (same messages structure) so working with one interfaces. File picking and transforming this message and split into 2 messages. messages are receiving to receiver. I am using BPM with 7,8 steps like receiving step, block , message transformation step , internal block 1 for sender 1, internal block 2 for sender 2.
    All things are working fine, messages are going to receiver properly. But customer requirement is , wait step required between processed messages before sender1. I have put wait step still, PI picks all messages in one shot processing and waiting for 2 minutes, after 2 minutes sending all messages at the same time, this process is not working.
    I have tried with wait step in mapping (Sarvesh) given excellent idea, still PI works the same way.
    Can someone please explain a bit why the messages or not waiting message by message. I am using EOIO with Queue name and file process mode "BY NAME" and I have tried "BY TIME" as well. I have given priority to this Queue. On BPM Queue assignment : One Queue.
    Please I am expecting positive answer !!
    Many Thanks in Advance
    San

    Hi Rudolf Yaskorski ,
    Not sure about your PI release and BPM model, do you create separate process instance for each file, or do you process files collecting them in one single instance? Are you using parallelization within your ccBPM ?
    I am using serialization, I don't think bpm can do Parallization until PI 7.0, but PI 7.11 has got has queue assignment. But I am using one queue. This must be serialization.
    To me it looks like your issue is not in ccBPM but rather more in polling files (as per your post file CC polls all 15 files in one shot). So if you wish to poll the files not at the same time some workaround is required. Possible options you could check out:
    A. Either implement "wait" in your mapping based on file name or other criteria (e.g. directory name). Check out if respective BPM instances are really created at different times.
    I have used wait step in mapping. These 15 messages has to go through one interface. So I am using one interface. But I have checked mapping process time in all messages on receiver system. Shows same timing, even though I put 40000 ms waiting time in mapping.
    B. Try polling different files (or use different directories) with different channels and coordinate starting / stopping of your channels by scheduling availability for each CC in RWB. E.g. you poll file 1 with CC 1. You start 2 minutes later CC 2 and poll file 2. And so on.
    I am not clear about this . On BPM waiting step is working and it keeps wait all messages, which are coming through one interface. Then it releases all messages at the same time.
    I don't know how to resolve this. I have tried with Transport acknowledgment, but all messages are going to reciver system waiting at receiver system in priority queue and processing in EOIO, but taking so long. Rather all messages go and sits in queue, I want to stop messages by message with 2 minutes time gap. How please?
    Kind Regards
    San

  • How can I increase time between photos on screensaver slideshow

    is there a way to increase the time between photo changes when using a screen saver slide show?
    Thank you so much for your assistance

    Richard,
    You could try going to iTunes>Preferences>Playback and ticking the radio button "Sound Check" to adjust the volumes globally. See how that works for you.

  • How can I increase the transition time between songs on my IPOD?  I do not want a fade.

    How can I increase transition time between songs on my IPOD?  I do not want a fade.

    If Crossfade is OFF, the fadeout is actually part of the recording, so you won't be able to change how it fades.
    If you want to make the silence (gap) between songs longer, there is only one setting I know of that relates to the gap between songs, and it is in iTunes.
    Do a Get Info on a song in iTunes (File -> Get Info OR Cmd-I from keyboard) and go to the Options tab in the Info window.  There is a setting called Part of gapless album.  If that checkbox is checked, the songs are played with no gap.
    I don't know of any other setting in iTunes or the iPod that makes the gap between songs longer.

  • Time between songs

    My grandson, not particularly noted for his patience, claims his first generation shuffle doesn't work properly. In tolerance only a loving grandfather can exhibit I have played his music (which I neither like nor understand) for several hours in both modes and checked out the forward and back buttons. All seems to be working satisfactorily. THE QUESTION: the time BETWEEN selections varies between three or four seconds to 15 or 20 seconds and can be as much as 90 seconds. Is this normal? If not, is there a remedy? My understanding is that some songs have been downloaded from iTunes and some have been ripped from CDs.
    Dell Dimension 4550   Windows XP  

    I don't think you can crossfade songs on a shuffle--the songs are loaded exactly as they are ripped. (You can crossfade in iTunes to reduce/eliminate silence between tracks.)
    Many songs have extra space at either the beginning or end of them. 90 seconds sounds a bit long--but believe it or not I once discovered a 17 minute song on my playlist. I knew the song didn't go on forever, so I checked it out. It turns out it was the last song on the album and when the album was cut the song was never ended--the track just ran until the end of the CD (the song itself was only about 4 minutes).
    Your grandson should note some of the songs that display these unusual gaps between tracks and then look at the actual song file.
    If you have sound editing software, you can cut off the dead space at the beginning or end of songs. It's pretty easy to do this because the songs display as sound waves--and dead space is just a straight line. You can safely snip off the straight lines, re-save the sound file, re-import into iTunes and the problem will be solved.
    Or, you can live with the space between tracks knowing there's not much you can do to change it within iTunes.
    The only other option is for you or your grandson to burn a CD of songs with no tracks--so it will re-import as one long track. There won't be any spaces, but there won't be any option to shuffle the music either, because it will look like one song to iTunes.

  • Measuring time between activation of two boolean

    Hello 
    I want to measure the time elapsed between activation of two boolean variables/indicators. In my code I have DAQ acquiring 2 digital signals which trigger corresponding 2 boolean indicators. Now I am trying to measure time between the event when my first boolean indicator gets the signal  and the event when my second boolean gets the signal. I am attaching my code. I checked DAQ and my indicators everything works fine, but just when I try running the code with the 'elapsed time' part, its not running. Any help will be appreciated.
    Thank You. 
    Attachments:
    Test Code.vi ‏45 KB

    So, feel free to give more detail. I'll just give you a couple thoughts:
    1) The primary issue with your code is that it probably doesn't do what you think it does. How this VI will run is that it will get one data from the DAQmx routine, then pretty much stay in the inner while loop since the event structure has an indefinite timeout. Worse, I don't think changing the value of the boolean controls would trigger the value changed event anyways. In the end, you don't even need the Event Structure to do what you want to do, nor do you need the inner while loop. Just check the values for each iteration of the outer while loop instead and do what you need to do with those.
    2) You are acquiring only one data point at a time. Which is OK if your events are particularly slow with respect to the effective sampling rate of the of loop (which might be able to pick up signals that change on the order of milliseconds or perhaps a bit less). If your signals are faster, you need to think about reading lots of samples at a time (arrays of booleans) and properly triggering your acquisition close to the event it needs to pick.
    3) If your signal is a pulse, make sure that the pulse width of the signal is much longer than than 1 / sampling rate. If it isn't, you could miss the pulse entirely doing this approach.
    4) The faster signals (as long as your have a quick enough sampling rate), the best thing is always to use a counters approach. In many of the DAQ cards and peripherals that NI offers, there are counters that can be driven with the sample clock (one of the fastest clocks on the device) or even a faster time base, and then the 'events' can be used to trigger acquisitions of the counters. Meaning you get exactly what you want: data points that correspond to times when events occur.

  • How to Calculate the Time Between two days in ABAP

    Hi,
                  I have one scenario like i need to calculate the time between two days please can you suggest me.
    Thanks,
    Harinath

    Hi Peeleti,
                Check this code,
    DATA : DATE1 LIKE SY-DATUM VALUE '19830125',
           DATE2 LIKE SY-DATUM VALUE '20070219',
           DAYS1 TYPE I,
           WEEK1 TYPE I,
           MONTH1 TYPE I,
           YEAR1 TYPE I,
           C_YEARS1 TYPE I.
    CALL FUNCTION 'HR_99S_INTERVAL_BETWEEN_DATES'
    EXPORTING
      BEGDA           = DATE1
       endda           = DATE2
      TAB_MODE        = ' '
    IMPORTING
      DAYS            = DAYS1
      C_WEEKS         =
      C_MONTHS        = C_YEARS1
      C_YEARS         = C_YEARS1
      WEEKS           = WEEK1
      MONTHS          = MONTH1
      YEARS           = YEAR1.
      D_MONTHS        =
      MONTH_TAB       =
    *WRITE : / 'DAYS   = ', DAYS1,
            / 'WEEKS = ',WEEK1,
          /  'MONTHS = ', MONTH1,
          / 'YEARS   = ', YEAR1.
    Using this code you can calculate the No Of Days Between two dates. Based On days you will easily calculate the Hour. [  No of days * 24 ].
    Thanks.
    Reward If helpful.

  • What is the difference in execution time between a program written in C language and the same program made with LabView?

    what is the difference in execution time between a program written in C language and the same program made with LabView?

    Hi Pepe
    You cannot say which is faster, the LV or the C programm. The only way to be sure is to program in both environments and to check than. Check this for some benchmark examples:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/DC9B6DD177D91D6286256C9400733D7F?OpenDocument&node=200059
    Luca
    Regards,
    Luca

  • LabVIEW/SignalExpress: How can I automate measuring the time between two pulses?

    Hi everyone, bit of a newbie here so please bear with me.  
    I'm a student at a university conducting a muon decay experiment with an oscilloscope connected to some photomultipliers.  To summarize, if a muon enters the detector it will create a very small width pulse (a few ns).  Within a period of 10µs it may decay, creating a second pulse.  The oscilloscope triggers on the main pulse 5-15 times per second, and a decay event happens roughly 1-2 times per minute.  I am trying to collect 10 hours of data (roughly 1500-2000 decay events) and measure the time it takes for each decay.
    I've been able to set recording conditions in SignalExpress that starts recording on the first pulse and stops recording on the last.  The Tektronix TDS 1012 oscilloscope however feeds 2500 points of data from this snapshot into a text file (for use in excel or other software).  Even if I perfectly collected the data, I would have 100,000+ data points and it would be too much to handle.  I don't know how (or if it's possible) to reduce the sample size.
    To conclude, using Labview or SignalExpress, I would like to be able to have the software
    1.  Differentiate between the single pulse detections and double pulse decay events
    2.  Record only when two pulses appear on the oscilloscope
    3.  Measure the time between these two pulses and ONLY that to minimize the amount of data recorded.
    Any help would be GREATLY appreciated, thanks!

    Hi wdavis8,
    I am not that familiar with Tektronix, but there should be a place in the dialog that you go through when you create the action step to acquire date to specify a sampling rate. That would allow you to reduce the number of data points you are seeing, but may reduce the quality of the data.
    If it’s just a matter of that much data being hard to dig through when you have that many points, you could do some analysis on the data after the fact, and then create a new file with only the data you want to look at. For example, you could identify the peaks in the data, and based on the distance between them or the difference in magnitude, selectively write data to a new file.  
    Here is some information about peak detection in LabVIEW:
    http://www.ni.com/white-paper/3770/en/
    You could also do some downsampling on the data to get fewer data points:
    https://decibel.ni.com/content/docs/DOC-23952
    https://decibel.ni.com/content/docs/DOC-28976
    Those are just a few quick ideas. 
    Kelsey J
    Applications Engineer

  • TS3297 My 2nd generation ipod touch is giving me the following error when I try accessing Itunes or the app store. "Cannot connect to the Store. A secure connection could not be established. Please check your date & time settings"  I am on a secure networ

    My 2nd generation ipod touch is giving me the following error when I try accessing Itunes or the app store. "Cannot connect to the Store. A secure connection could not be established. Please check your date & time settings"  I am on a secure networkl.

    Can't connect to the iTunes Store
    Make sure that time zone is correct in addition to date and time

  • When I tap the mail icon on my iPhone 4s, the menu of email servers pops up.  I already have a me acct that I check all the time, no problem.  So I choose iCloud, sign in and it tells me that I already have an acct-.so why can't I get to my emails then?

    When I tap the mail icon on my iPhone 4s, the menu of email servers pops up.  I already have a me acct that I check all the time, no problem.  So I choose iCloud, sign in and it tells me that I already have an acct….so why can't I get to my emails then?  I've turned the phone off and on twice....that has fixed it in the past but not this time....

    all fixed ha

  • How can I check how many times or when an app has been re-downloaded on my iphone

    How can I check how many times or when an app has been re-downloaded on my iphone. I know how to check purchases but I am looking for how to check when an app had been re-downloaded on my device whether it's through my device or Apple ID

    You mention "lack of control" several times.  The control is there - you control the Apple ID and password that owns the app.  No other Apple ID can use the app.  You have not shared your Apple ID or password with anyone, so you and only you own the app.
    Therefore, the number of times the app is downloaded or re-downloaded is completely irrelevant.  You might, for example, decide to purchase a new iPhone or iPad and download the app there.  Or the app developer may issue a new version which you download.  None of this matters regarding your "control" of the app.  All that matters is that you own it and nobody else can use it.

  • Connection failure - Itunes tells me to check my date/time. Help?

    Evening, everyone.
    I'm having some trouble connecting to Itunes. I get the following error message when i try -
    "Itunes could not connect to the music store. A secure network connection could not be established.
    Check that your computer's date and time are correct and try again."
    I duly checked the date/time and found that they were wrong, so updated them and tried again and still received the same message.
    I also tried turning off my Norton and trying to connect with it disabled, with no luck. The other things currently running are DVD43, Sonic Cineplayer and MSN messenger. I can't see why any of them would be interfering, but i'm happy to be corrected.
    I've had no luck finding answers on the Itunes support page. I'm not sure what other information i can give to help elucidate, so feel free to ask.
    Any ideas?
    Hallmark Xblade   Windows XP  

    Has anyone figured this out yet - this is the same message I get. I have the newest version of iTunes and just started using it with music I already had. First time trying to buy music, and that's what I got!!
    Please someone!!!!!!!!
    Dell XPS 400   Windows XP  

  • What's the difference between time capsule and time machine?

    What is the difference between time capsule and time machine?

    See Using Time Machine with a Time Capsule.

Maybe you are looking for

  • Forms Server Error

    Hi When I am running a form i am getting the following error: FRM-92101 : There was a failure in th Forms Server during startup.This could happen to be invalid configuration.Please look into the web-server log file for details. I am using Oracle 10g

  • XML dataset stucks in rendering on html page

    Hi When i choose a test.xml file with 'insert - spry dataset', 'datatype xml', the datapreview in the 'set data options' window display the data correctly. In the 'choose insert options' i choose 'insert table'. I don't use the setup button there, le

  • Item Text  in RFQ/ Quotation.

    Hi Experts, when i am creating a RFQ/ Quotation  to vendor   through ME41  i would like to enter the  ITEM TEXT  for the material. but i am trying through  .  me47 -  ITEM -  texts -   Text overview.   i entered there but its not appearing in print p

  • How can I host multiple DNS zones using OS X Server?

    Simply that. I want to host several zones and can't find a UI to do it. Is it a case of hacking at the named config files and never using the UI again? That would seem rather ridiculous. Thanks, Neil.

  • Set isolatedHtmlContainer height when displaying portal page

    Hi, I have a portal application which displays portal pages from the pcd in isolatedHtmlContainer. The page's content is dynamic so the height is not fixed and therefore in the page's properties the height's value set to 'Automatic' However, when wor