on 05-23-2006 8:11 AM
Hi Colleagues,
do you know a method which can be called in a WD application to get a time stamp?
Thanks and regards,
Nada
thanks a lot! I will try it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the java converted type should be BigDecimal. That is the java type generated from ABAP type DEC15.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I have tried it but I get the time stamp in string format not in a DEC15 format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks!
What I would need ist a get-Method which delivers me the system (current) date in UTC format(JJJJMMTThhmmss)
Regards,
Nada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tnanks for your answer!
but how to get the UTC date? Is there an API for this?
Best regards,
Nada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nada,
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html
<i>Although the Date class is intended to reflect coordinated universal time (UTC), it may not do so exactly, depending on the host environment of the Java Virtual Machine. Nearly all modern operating systems assume that 1 day = 24 × 60 × 60 = 86400 seconds in all cases. In UTC, however, about once every year or two there is an extra second, called a "leap second." The leap second is always added as the last second of the day, and always on December 31 or June 30. For example, the last minute of the year 1995 was 61 seconds long, thanks to an added leap second. Most computer clocks are not accurate enough to be able to reflect the leap-second distinction</i>
Best regards, Maksim Rashchynski.
Thanks a lot!
What I would need is exacly the backend value from type TZNTSTMPS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nada,
As TZNTSTMPS is "UTC Time Stamp in Short Form (YYYYMMDDhhmmss)" than you have to use SimpleDateFormat:
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddkkmmss");
String formatedDateToJCo = format.format(new Date());
Check this too:
https://media.sdn.sap.com/javadocs/NW04/SPS15/jc/com/sap/mw/jco/JCO.Field.html
http://help.sap.com/saphelp_nw04/helpdata/en/9a/20e23d44d48e5be10000000a114084/frameset.htm
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
Best regards, Maksim Rashchynski.
Hi Nada,
Check http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Timestamp.html
new Timestamp(System.currentTimeMillis());
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.