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
Similar Messages
-
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 -
How to compare the current system time with two timing?
want to get the current system time and compare with the two different timing example startwindow time as 2:00:00AM and endWindowTime as 6:00:00AM. if my current system time falls between these window i have to execute my rest of the code.
my below code works for fine for JAVA 1.6 version when i do the same code with JAVA 1.4 i am getting different date and time
String starTime=(String) NightlyvendorStatus[0].getPropertyValue("startTime");
String endTime=(String) NightlyvendorStatus[0].getPropertyValue("endTime");
Date windowStarttime = new SimpleDateFormat("HH:mm:ss").parse(starTime);
Date windowEndtime = new SimpleDateFormat("HH:mm:ss").parse(endTime);
Date systemdate = new Date();
SimpleDateFormat parser = new SimpleDateFormat("HH:mm:ss");
String systemTime=parser.format(systemdate);
Date currentTime = new SimpleDateFormat("HH:mm:ss").parse(systemTime);
if (currentTime.after(windowStarttime) && currentTime.before(windowEndtime)){
--- rest logic here---}
the output from JAVA 1.4 IS Thu Jan 01 02:00:00 GMT 1970 Thu Jan 01 06:00:00 GMT 1970 Thu Jan 01 03:23:00 GMT 1970
HOW TO DO this logic..Hi,
You can try converting dates into timestamp and compare just like as comparing two integers variables.
Regards,
Anshul -
How cost;ly it is to get the current system time
I am using this call "System.currentTimeMillis()" to get the current system time. I need to now how costly it is to get the current system time.
Why don't you time it -:) Run it 10000 times and print the first and last result. The difference is the time it took.
-
Urgent ---calculate version from the current week number
hi,
i have an requrenment to modify the charasteric routines
i have xxx table with parameter i have to read this paramater n if this parameter contains value 'D' then calculate version(eg:- A00,A01 ...) from the current week number.
pls advice me which FM i have to call or provide me with some sample codeing.
points wil be rewarded
raviThere is a FM "WEEKNR_GET".
This will give you the week no. You need to read the param value from the table that you mentioned and call this FM and updat the version.
You will need a ABAP person to do this.
Ravi Thothadri -
Re: incrementing the current system time with 30 minutes
hi
in JSPinner i need to display the time but that time should be 30 min greater than system time
is that possible
reg
vino1. Create a GregorianCalendar instance
2. Use roll() to add 30 minutes
3. Use getTime() to convert to a Date instance -
Calculate previous Sunday from the current day
Hi Gurus,
Can anybody tell what is the name of the function module which caluclates the previous Sunday from the Current system date. or any other idea how to calculate previous sunday from the current system date in Query.
Thanks
LizaHello,
See my previous thread to you for a similar Re: Find out previous Monday based on 0CALDAY
Thanks
Chandran -
Howto Current System Time in the format YYYYMMDDHHMMSS
Hi, Is there a way to calculate current system time in java so the output will be in the format YYYYMMDDHHMMSS?
Create a Date object from the system time:
long now = System.currentTimeMillis();
java.util.Date date = new java.util.Date(now);
System.out.println(date);
You can then use the SimpleDateFormat class to format the Date however you want. -
Hi,
When trying to initiate hyper-v replication from the main server i'm getting this error in the event logs.
Hyper-V failed to enable replication for virtual machine 'RECADemo': A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file. (0x800B0101). (Virtual Machine ID 561591B6-567C-...)--I'm using certificate based auth and cert is installed/recognized on both machines.Please help.Thanks,Jaffer
JafHi,
This error occurs because the Microsoft Certificate Trust List Publisher certificate expired. A copy of the CTL with an expired signing certificate exists in the CryptnetUrlCache
folder. Please try to renew the Trust List Publisher certificate.
The related KB:
Event ID 4107 or Event ID 11 is logged in the Application log in Windows and in Windows Server
http://support.microsoft.com/kb/2328240
How to Renew the Site Server Signing Certificate (Microsoft Certificate Services)
http://blogs.technet.com/b/configmgrteam/archive/2009/02/11/how-to-renew-the-site-server-signing-certificate-microsoft-certificate-services.aspx
Manage Trusted Publishers
http://technet.microsoft.com/en-us/library/cc733026.aspx
Hope this helps.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
My Time capsule did a backup yesterday in the morning without any problem. All of a sudden, it disconnected from the wireles system last night and the little indicator lamp turned off. It still makes a noice, as if a disc was turning inside. The Time Capsule was bought last year in June. Any suggestiom what to do? What happens if I press the little buttom (reset?), will I loose af my backup?
Do a reset.. power off the TC..
Hold in reset and power on.. keep holding in reset until it flashes rapidly.. if it turns on at all.
If you bought it in June.. take it back today.. it is broken.. at a guess.
Some Gen4 are failing this way.. get Apple to replace it.. even if it is a few days out of warranty it won't be much. -
How to pass Current System time in the target field?
Hi Experts
kindly help me in mapping a field in which I have to map current system time.
I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
Thanks
AprajitaHi Mathur,
kindly help me in mapping a field in which I have to map current system time.
I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
Mathur no need to write UDF for that..
Use standard function Current date-------> In that (Target Format) u have to specify the time i.e: HHmmss
Thats it..... Noe use this function as u like...
Satya Kumar -
I need to get the Current System Date and time in the format
I need to get the Current System Date and time in the format
*6/24/2009 11:30:29 AM*
How do i do it ?I seem to be saying this a lot lately.
Google is your friend.
I googled "java current date format" and SimpleDateFormat featured prominently in the results. -
QUERRY FOR LAST 20 MINUTES FROM THE CURRENT TIME
hi i need to query one database table for the last 20 minutes from the current time, please let me know how to write the logic for this...
thanks for your helpHi Sudhir,
You will have to consider couple of cases here.. for example you execute the report at 00:10 am of a day.. The date is already changed and if you will only code for the logic, then you will get wrong results..
Do as below:
MOVE sy-uzeit TO w_time.
IF w_time LT '002000'.
w_time1 = '235959' - w_time.
w_date1 = sy-datum - 1.
SELECT xxx
FROM yyy
INTO zzz
WHERE ( time GT w_time1
AND date EQ w_date1 )
OR ( time LT w_time
AND date EQ sy-datum ).
ELSE.
w_time1 = sy-uzeit - '002000'.
SELECT xxx
FROM yyy
INTO zzz
WHERE time GT w_time1
AND date EQ sy-datum.
ENDIF.
Thanks and Best Regards,
Vikas Bittera.
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo -
How can I make the current date/time be sent when emailing as XML?
I'm creating a form for a customer to use for submitting print jobs. This customer will be emailing the XML form data, which will in turn be converted into a production order. I'd like to make the PDF form capture my customer's system time, so that I know when they filled out the form. I COULD just leave that up up the customer and use required current date and time fields, but that provides the ability for the customer to falsify that information.
Is there any good way to capture the current date/time in the XML data, so that the customer doesn't need to nor has the ability to?
Any suggestions would be great!You can use the following methods getHours(),getMinutes(), and getSeconds() from the date object to obtain the values for hour,minute,and second.
Click here to see an example:
http://66.34.186.88/LiveCycleSamples/.3bbc2f4b.pdf -
Creating a field or workflow that responds to the Current System Date.
In our activities/tasks we have a field that is the Expected Completion Date or Required Completion Date. Based on that date, and the current date, I want a workflow to trigger when the required completion date is less than 30 days away, sending daily reminders to the owner/manager that they have a activity/task due.
The way I see it I have two options.
1. Customize a field to be the system date. Create a workflow that says every time that field changes, and the date is within 30 days of required completion date, send out an email.
2. Create a workflow that somehow incorporates the current/system date, and do the same thing as above, substituting the field with the actual date.
I don't know how to make either of those options happen. Does anyone either have other options or advice on how to make this work?
Thank you in advance!Hello Cyril,
Here is an idea that could be done:
You could create a dynamic step by having a step that holds all the properties for both configurations (the superset of the necessary variables) and an extra one that indicates which 'mode' the step is in. Then you create the main Edit substep in whichever language you desire. That substep window will then have a box/dropdown/etc. at the top you can use to choose between modes A & B. When the user changes the value, you would dynamically change the rest of the window to contain the appropriate properties for mode A or B. You then copy the property values in that window to the Step properties, and copy the mode to your variable and you can run the step in that mode. When the step then runs, it checks the mode variable, and depending on its value, it will run the step in mode A or B.
Now we could add a dialog that allows us to choose when we put a step down but we should still allow the user to change later via the Edit substep we create.
I don't think we can create something that inserts a completely different step, but we can have one step that has the ability to do both and we can pick which one we execute. Also note we still don't have the ability to edit the Panels for a step, so we have to use a new window that we call from our Edit substep to complete the step.
Hope this helps.
Regards,
Olivier L. | Certified LabVIEW Developer
Maybe you are looking for
-
Cannot load shared 'project' in Windows Universal app after upgrading to Azure SDK 2.6
I've just installed the April 2015 release of the Azure SDK. It is version 2.6 and previously I was on 2.5. Now one of my projects will not load. It is the shared project in a Windows Universal application. When I right-click the project and choose '
-
Sorry. The crash report actually said that Quick Time had crashed, not Flash, but at the time the crash actually happened, the message said that "Silverlight" had crashed. I just want to know how I can tell where the problem is so that I can try to f
-
Hi all, I'm a newbie of SMP and SCN. I sincerely respect SMP leaders who posted nice blog. I'd like to know how can I process the request (the number of customers) from client application to SOAP request. My requirement is to connect SOAP WebService
-
Bonjour, comment mettre une alerte sonore dans iphone 5 à chaque réception de mail ?
Bonjour, J'ai Iphone 5 s et je sais qu'on peut mettre une alerte sonore à chaque réception de mail, mais je ne trouve pas cette action dans les réglages. Pourriez-vous m'aider ? Merci
-
OC-12 POS blades in GSR routers and DWDM Add Drop Mux's
I have several GSR routers with OC-12 POS blades using OSPF connected to a DWDM ring using Nortel's Optera 5200. It appears that whenever a line side protection switch takes place, that the POS blades react to this, and reconverge OSPF even though th