Subtract minutes from system time

Hi Experts,
I want to subtract 5 min from the system time.
Is there any function module.
Regards,
Chandu

Hi Chandu,
Use the below statment to subtract 5 minutes:
data: v_time type sy-uzeit.
v_time = sy-uzeit.
v_time  = v_time - 300.
This might solve your problem.
Thanks,
Chidanand

Similar Messages

  • Add or subtract minutes from any time of day

    Hello!
    The problem I'm having is that add or subtract minutes related
    to a time stamp like e.g.
    + (plus)
    17:21 timestamp
    minutes to add +80
    result -> 18:41
    - (minus)
    17:21 timestamp
    minutes to subtract -20
    result -> 17:01
    Is any function module existing for such
    cases. What would you recommend to me to
    solve the problem to get really reliable
    time.
    THX
    ilhan ertas

    Hi Ilhan,
    as long as you don't leave the limits of a day (i.e. time getting below zero or above 24 hours), ABAP time calculations will get correct results. Type t (time) fields in expressions involving numeric data types are internally converted into the amount of seconds.
    So you can  add minutes by multiplying by 60 (second per minute) first.
    In a type T field 17:21 is represented internally as 172100. Add 4800 (80 minutes times 60 seconds) will result (internally) to 17 * 60 * 60 + 21 * 60 + 4800 = 67260. And this will be converted to time format 184100.
    See also this SAP online help:
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/fc/eb334a358411d1829f0000e829fbfe/content.htm">Date and Time Calculations</a>
    Regards,
    Clemens

  • Shopping cart Creation Time is different from system time

    Hi ,
    Shopping Cart Creation Time is Different from System time.
    Could you tell me,        to which time it is refering to.
    How to change it.
    Create By is      webseruser
    Where can I find the required settings for the same
    Thanks In advance

    Hello,
    Are you checking this in BBP_PD?
    If you go to SU01 and check parameter "Personal Time Zone" -> "of the user", this time will appear to end user when creating document (document header in web).
                                                                                    If you do not have informed any value, it will be populated the pattern system timezone, defined in SU01 as well.
                                                                                    - I created a RFX in my test system with a user who's timezone (in tx SU01) is set as:
    Sys. Time Zone     CET                                                                 
    of the User        INDIA                                                                               
    - CET time  was 20:01:55                                                              
    - GMT time was 18:01:55                                                              
    - India time was 23:31:55                                                                               
    Looking at this RFX in BBP_PD I see the following:                                     
    Same user (India timezone and CET as "Sys. Time Zone"):                                
    Created_At: 20:01:55                                                                   
    Changed_at: 20:01:55                                                                   
    DETAILS (header):
    Created at: 18:01:55                                                                   
    Changed at: 18:01:55                                                                   
    RFX header (description): 23:31:55                                                     
    So, for end users, you should populate field "of the user" in SU01.
    In BBP_PD header details, you will have the GMT time (which is stored in internal tables).
    In BBP_PD created_at and changed_at you will have the system time zone, as defined in SU01.
    Regards,
    Ricardo

  • Subtracting Minutes from SYSDATE

    Hi there,
    I am trying to create SQL that selects/inserts data that is equal to the sysdate minus 15 minutes.
    I have tried to do a statement as follows:
    SYSDATE - 1
    Although this takes off a day.
    Does anybody know how to subtract a date by minutes?
    Cheers,
    CJ

    Anupama was showing you how to look at the results of your query to prove that the minutes were being subtracted. Inside another qurey, you'll wand something like
    (<date_variable> - (<num_minutes>/ 24/ 60))
    In other words
    select *
    from someTabe
    where data_column > (sysdate - (10/ 24/ 60))
    Would give you all records in the last 10 minutes.
    Justin

  • Is there any method in Java to convert from system time to variant time?

    From MSDN:
    A variant time is stored as an 8-byte real value (double), representing a date between January 1, 100 and December 31, 9999, inclusive. The value 2.0 represents January 1, 1900; 3.0 represents January 2, 1900, and so on. Adding 1 to the value increments the date by a day. The fractional part of the value represents the time of day. Therefore, 2.5 represents noon on January 1, 1900; 3.25 represents 6:00 A.M. on January 2, 1900, and so on. Negative numbers represent dates prior to December 30, 1899.
    Is there any method in Java to do this or do I need to write it?

    do I need to write it?yes

  • CALCULATE 6 MINS FROM THE CURRENT SYSTEM TIME....................?

    Hi
    I want to subtract few mins (say 5 min , 10 min ,15 mins , max to 55 mins) from the current system time,
    ex-current time 00:40:00
    Subtract 5 mins(means 5 mins backward)
    Final time 00:35:00
    ex-current time 01:20:00
    Subtract 30 mins(means 30 mins backward)
    Final time 00:50:00
    Pls help me with this with a appropriate logic or FM..
    Thanks a lot in advance
    Basic Date and Time questions are not allowed. They have been answered umpteen times. Please search for them.
    Edited by: kishan P on Sep 1, 2010 12:05 PM
    Edited by: Matt on Sep 1, 2010 9:01 AM - And please do not post in ALL CAPITALS

    May be you can do something like this!
    data: l_time like sy-uzeit.
    data: l_time1 like sy-uzeit value '06'. "6 hrs to be deducted from system time
    move sy-uzeit to l_time. "this is system time
    "write l_time.
    "write:/ l_time1.
    SUBTRACT l_time1 from l_time.
    write:/ l_time. "This is 6 hrs behind system time
    Rajasekhar

  • CALCULATE 6 HOURS FROM THE CURRENT SYSTEM TIME....................?

    hi
    good
    i want to subtract 6 hours from the current system time,
    ex-current time 17.07
    Subtract 6 hours(means 6 hours backward)
    Final time 11.07
    Pls help me with this with a appropriate logic.
    Thanks a lot in advance
    mrutyun^

    May be you can do something like this!
    data: l_time like sy-uzeit.
    data: l_time1 like sy-uzeit value '06'. "6 hrs to be deducted from system time
    move sy-uzeit to l_time. "this is system time
    "write l_time.
    "write:/ l_time1.
    SUBTRACT l_time1 from l_time.
    write:/ l_time. "This is 6 hrs behind system time
    Rajasekhar

  • Change system time in SAP.

    Dear Expertise,
    Our system time SAP is behind from system time in our Active Directory about 30 minutes. Can our SAP system time be accelerated so our SAP system time is same with system time in AD?
    what should we note?
    Our OS is HP-UX 11.31, SAP R/3 4.7 and Oracle 10g.
    Thanks in advance,
    Ros

    Our system time SAP is behind from system time in our Active Directory about 30 minutes
    Why ? Do you have a system in different time zones? If system's are in one time zone and network you must always
    synchronize time in your network for all server's and PC's ...
    Now you need to check the time on server are +30min from AD or -30 ? In any case before you do some ntpdate
    in your situation you need stop SAP and database application, after do it.
    In the future you need to set up automatic synchronization. Regards.

  • Since the last updating of the system, my Ipad 2, it won't connect to wifi more than 5 minutes at a time unt

    Since the last updating of the system, my Ipad (model MC769C), it won't connect to wifi more than 5 minutes at a time until I reset the router.  Anyone can help ?

    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting
    http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet
    http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Adding two time periods together, summing it up and misusing 30 minutes from it HELP!

    SUPer tricky questions and brownie points for who can solve it!
    Column B6 has 11:00 am, Column C6 has 1:00 pm, column D6 has the total hours calculated (i.e. work from 11:00 am to 1:00 pm = 2 hours) and i want column e6 to minus half an hour (.30 hours) and display -.30 OR minus .30 minutes from Colulmn D6... however, only if the total hours/time in column D6 is greater than 5 hours. PLEASE FOR THE LOVE OF GOD TELL ME THE FORMULA FOR THIS!!

    Hi Chris,
    No need to shout.
    Formula in column C (calculates the Duration (time elapsed) between two Date and Time values:
    =B-A
    Formula in column D (Calculates the same Duration as above, but subtracts 30 minutes if the total Duration is greater than 5 hours):
    =IF(DUR2HOURS(B-A)>5,B-A-DURATION(,,,30,,),B-A)
    Note that any cell displaying a Date or a Time (of day) or both contains a Date and Time value.
    If only the Date has been entered, the time part is set to 00:00:00 (midnight, at the beginning of that day).
    If only the Time has been entered, the date part is set to the date the entry was made.
    In the table above, the values in Row 18, the bottom row of the table are as follows:
    A18: March 1, 2012 11:00:00 AM
    B18: March 1, 2012 5:00:00 PM
    C18: 6h
    D18: 5h 30m
    The first two are Date and Time values, the second two are Duration values.
    Regards,
    Barry

  • How can i get the System Time from the other host

    I want to get the System Time from the other host in the LAN,How can I get the Time using Java.
    Such as I am in WIN 2000 and I have a Unix host in LAN, I want to get unix host System time, How can I do it.

    Open a socket to port 13 and read a string with the time.
    -or-
    Open a socket to port 27 and read 4 bytes that are a network order timestamp
    Assuming that your UNIX machine has those services running, most do

  • How to change system time from Java

    Could someone tell me if there is possibility to change the system time, from within a Java program. And how to do it.

    In general, no.
    You could do it using JNI if you're running your JVM
    with sufficient system privileges.
    It seems a highly questionable thing to want to do.
    Why do you have a requirement for this?
    Sylvia.Now there's an idea (thread now has a 'watch'), I think I'll drop the the idea of being a hacker and learn how to write viruses instead - happy days ahead ...

  • How to get system time from cRIO?

    Hello,
    I have an NI cRIO-9076 chassis with an NI-9467 GPS module and an NI-9234 module.
    I've downloaded the FPGA Timekeeper application which synchronises the FPGA clock to the 1PPS GPS, this works well.  What I want to do is create a trigger that at a pre-defined HH:MMS the system will start to acquire and log data from the Accelerometers connected to the NI-9234 module.
    I have added the controls for the entry of the HH:MMS and calculated the time in seconds.  I would like to compare the system clock once it is locked to the entered timestamp and then trigger.
    As I only have a value that represents seconds in the day I need to calculate the offset from EPOCH to compare against the GPS time reference.  I have read that the NI system clock runs from 01/01/1904 instead of the EPOCH 01/01/1970.
    The question is how do I get the current system time so that I can compare it against the entered time?  I only need seconds in the day = (HH * 3600) + (MM * 60) + (SS)
    Thank you,
    Kind Regards,
    Simon

    You should use the Get Date/Time in Seconds VI which will return a timestamp. You can then format this timestamp using the Format Date/Time String to give you exactly the time format that you need. Then you can extract the numbers you need and do your math.
    www.movimed.com - Custom Imaging Solutions
    Attachments:
    Get Seconds in Day.vi ‏9 KB

  • How to set system time from Terminal while booted from 10.6.3 server install disk?

    I'm installing from a 10.6.3 server install disc onto a Mac Mini.  However, the battery on this Mac Mini is pretty much dead, forcing the system time back to 1/1/2001.  Through some research, this has created a problem in that I cannot move beyond the Welcome screen during setup of OS X server.  It looks like the binary has issues with the system time being older. 
    But I'm stuck in that I don't know how to adjust the system time from the Terminal Utility on the boot CD.  Can anyone help? 

    Hey, i just run in to something similar, tonight while trying to fix a computer.
    The user set the time and date on his computer to 1998 and computer locked everything including time and date in system preferences, and his user account basicly making him from administrator to guest. he could not almost any program properly that required administrator privilages.
    to fix this we used this comand in terminal " sudo date 201703162014 "    todays time and date
    20:17 03/16 2014
    we tryed everything and this fixed in 2 seconds
    ps: when you type sudo in terminal it whil give you a warning the improper use of this command is bad.... click continue.otherwhise you will not be able to execute the command.
    thanks again for this post and have a great day

  • How do I recover files from a Time Machine backup after a clean system reinstall?

    I had a really funky problem with my Japanese input that is too weird (and irrelevant at this point) to go into here. The gist is that I took my 13-inch, Mid-2012 MacBook Air to the Apple Store in Osaka, and one of their geniuses told me he couldn't isolate the cause and that the only solution was to do a complete reinstall. Of course, I had backed up my whole disk to my Time Capsule before going to the store. The problem is, I cannot do a straight backup, because that will simply bring back the unsolvable problem.
    I got the MacBook Air home and used the moving assistant utlity (sorry, I don't know the English name for it since my system's in Japanese) to resinstall all my applications. So far so good. The problem is, I have no idea how to get my files, photos, music, and movies from the Time Capsule into my new account. I didn't see any option for that when I ran the moving assistant utility, and I absolutely do not want to resinstall anything from the old Library Folder.
    When I go into Time Machine mode, pinks lines on the right side of the screen indicate that Time Machine has all my old backups there, but when I try to navigate to them, I get only an empty black window. I assume that's because Time Machine does not recognize my old account and new account as the same account (and indeed there is no reason at this point that it should, since I don't know how to link them).
    Any help would be very much appreciated.

    While in Time Machine, press the key combination shift-command-C. The front window will show all mounted volumes. All snapshots should now be accessible. Select the one you want and navigate to the files you want to restore.

Maybe you are looking for