Getting the currnet system date

Hello to all. I am trying to figure out how to get the current time of the OS being used. I am using Windows XP Media Center...not like that matters since Java is unicode, but I cannot figure out how to do it. Right now I am asking the user to input the current date and time by the following code:
<CODE>
private String date;
     private String time;
     public void setDateAndTime()
               date = JOptionPane.showInputDialog("Please enter the current date: yyyy/mm/dd");
               time = JOptionPane.showInputDialog("Please enter the current time: hh:mm");
               getDateAndTime(date, time);
     public String getDateAndTime(String arg_date, String arg_time)
               DateFormat dF = new SimpleDateFormat(arg_date + " " + arg_time);
               Date dateLocale = new Date();
               System.out.println(dF.format(dateLocale));//just a test print with no swing
               return dF.format(dateLocale);
</CODE>
I am just wondering how I can do this without having to get the input from the user and get a more precise date and times without having to rely on the user.

You can use System.currentTimeMillis or new Date() to get the current date and time from the OS.
If you want the user to input a String that you will turn into a Date, use SimpleDateFormat.
http://www.javaworld.com/jw-12-2000/jw-1229-dates.html
http://www.javaalmanac.com/egs/java.text/FormatDate.html
http://www.javaalmanac.com/egs/java.text/ParseDate.html

Similar Messages

  • 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.

  • How to get the DB2 system date in the ODI

    Hello,
    I m new to ODI. And I m having some issues.
    I ve a source in DB2. And I ve to load the data from DB2 to Oracle.
    So in the source(DB2) I ve some tables. One Table is ABCD. In that we have nearly 15 columns. In that we have a column called AG2R(Expiration Date).
    The data is displayed as
    1,021,100
    1,031,100
    1,030,500
    1,100,400
    and so on....
    So here my question is I ve to apply a filter. (AG2R)The Expiration Date should be greater than that of System Date(Current Date).
    Can anyone help me in this.
    Waiting for replies.
    Regards,
    Murali.

    You have to understand what is the format of AG2R column and to cast this column with a valide date format...
    To convert a character string to a date or time value, you can use:
    TIMESTAMP ('2002-10-20-12.00.00.000000')
    TIMESTAMP ('2002-10-20 12:00:00')
         DATE ('2002-10-20')
         DATE ('10/20/2002')
         TIME ('12:00:00')
         TIME ('12.00.00')

  • Crystal Reports XI String [255] limit with the File System Data driver...

    I was trying to create a Crystal Reports XI report to return security permissions of files and folders.  I have been able to successfully connect and return data using the File System Data driver as the Data Source; however the String limit on the ACL NT Security Field is 255 characters.  The full string of data to be returned can be much longer than the 255 limit and I cannot find how to manipulate that parameter. 
    I am currently on Crystals XI and Crystal XI R2 and have applied the latest service packs but still see the issue.  My Crystal Reports Database DLL for File System data ( crdb_FileSystem.dll ) is at Product Version 11.5.10.1263.
    Is it possible to change string limits when using the File System Data driver as the Data Source?  If so, how can that be accomplished.  If not, is there another method to retrieve information with the Windows File System Data being the Data Source?  Meaning, could I reach my end game objective of reporting on the Windows ACL's with Crystal through another method?

    Hello,
    This is a known issue. Early versions you could not create folder structures longer than 255 characters. With the updates to the various OS's this is now possible but CR did not allocate the same space required.
    It's been tracked as an enhancement - ADAPT01174519 but set for a future release.
    There are likely other ways of getting the info and then putting it into an Excel file format and using that as the data source.
    I did a Google search and found this option: http://www.tomshardware.com/forum/16772-45-display-explorer-folders-tree-structure-export-excel
    There are tools out there to do this kind of thing....
    Thank you
    Don
    Note the reference to msls.exe appears to be a trojan: http://www.greatis.com/appdata/d/m/msls.exe.htm so don't install it.
    Edited by: Don Williams on Mar 19, 2010 8:45 AM

  • Getting The SAP KM data in a java class

    Hi Everyone
                    I want to get  the SAP KM data to a simple java class......I am able to get this with servlet but i want not a servlet but a simple java class that can get the Documents stored in SAP KM repository..................
    I am thinking of using any java Driver in some code like
    Class.forName ("com.sap.dbtech.jdbc.DriverSapDB");
                        String url = "http://host name :port";
                        Connection con = DriverManager.getConnection (url, "", "");
                        Statement stmt = con.createStatement ();
                   IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
                   ResourceContext c = new ResourceContext(serviceUser);
                   IResource r = ResourceFactory.getInstance().getResource(RID.getRID("/documents/Public Documents/"), c);
                   System.out.println("Current user   "+r.getContext().getUser().getDisplayName());
                   System.out.println("Current user  : "+r.getContext().getUser().getDisplayName());
                   System.out.println("Access RID  : "r.getAccessRID().toString()"<br>");
    But the above code is giving an exception---java.sql.SQLException: No suitable driver
    Can anyone tell me the suotable Lava driver to access SAP KM repository..Or any simple java code that can connect to SAP KM...
    Waiting for Ur reply
    Thanks & Regards
    Rupesh

    Is there a way to find the list of imports that a
    java class file has added.Yes. It's very easy. The answer is [url http://en.wikipedia.org/wiki/Mu_%28negative%29]Mu.

  • Get the file creation date

    hi friends..
    i searched many forums to get file creation date
    i didnt get the solution but i found one program which execute
    dos command and gets the output of that.
    so using that program i developed a program to get the file creation Date & Time also
    //getCreationDate.java
    import java.io.*;
    import java.lang.*;
    public class getCreationDate {
    public static void main (String args[]){
      try {
         // get runtime environment and execute child process
         Runtime systemShell = Runtime.getRuntime();
          BufferedReader br1=new BufferedReader(new InputStreamReader(System.in));
          System.out.println("Enter filename: ");
          String fname=(String)br1.readLine();
         Process output = systemShell.exec("cmd /c dir "+fname);
           // open reader to get output from process
         BufferedReader br = new BufferedReader (new InputStreamReader(output.getInputStream()));
         String out="";
          String line = null;
          int step=1;
          while((line = br.readLine()) != null )
                if(step==6)
               out=line;
                step++;
                }          // display process output
          try{
          out=out.replaceAll(" ","");
          System.out.println("CreationDate: "+out.substring(0,10));
          System.out.println("CreationTime: "+out.substring(10,16)+"m");
          catch(StringIndexOutOfBoundsException se)
               System.out.println("File not found");
       catch (IOException ioe){ System.err.println(ioe); }
       catch (Throwable t) { t.printStackTrace();}
    }

    Following line should be modified to make it work on all platforms:
    Process output = systemShell.exec("cmd /c dir "+fname);

  • Getting the logical system from where RFC is being called

    Hi All,
    How can we get the logical system name from where RFC is being called?
    Regards,
    Akshay

    Hi Akshay,
    If your company follows the SAP recommendations on naming [logical systems|http://help.sap.com/SAPHELP_NW70/helpdata/EN/da/5990df015b5b43a36f6ce7fa1ee8c0/content.htm] <b>&lt;SystemID&gt;"CLNT"&lt;Client&gt;</b> then you should get away with a simple call to RFC_GET_ATTRIBUTES (and even if they don't, the function module might possibly provide other clues required to build the logical system name).
    There might be other ways, but I'm kind of suspecting that the logical system name of the calling system might not be part of the communication data (like other readily available data as IP address etc.). So if this solution doesn't work, it might be helpful to understand how the naming conventions for logical systems used by your company.
    Cheers, harald

  • Getting the last posting date

    Hi everybody,
    I need some help. I want to create a Bex Variable with Customer Exit, and i need to modify the ABAP code in order to get the last posting date of Data in my request. I'll like to create to create with BEx Query Designer a request that allows me to make my report on the most recent data only.
    Eg. Let's say today before leaving the work I launch a routine that provides me during the night data for my R/3 system and I'm wonking in a BW environment. Tomorrow, i'll like to compose any request guiving me informations only on what i loaded yesterday without typing the date. I'm oblige to use a variable, but I need the corresponding Abap code. Can some one help me please ?
    Thanks.

    You want your query to return results from only the most recently loaded request. Is that right? You don't need a variable for that. Just bring in "Request ID" (from Data Package dimension) into Filter area and use "Last Request Loaded" variable delivered by SAP.

  • Difference between the XML for the "Initial System Data" in the module ERM

    Hello,
    I wan to know what's the difference between the XML for the "Initial System Data" in the module ERM of SAP GRC AC 5.3.
    RE_init_clean_and_insert_data.xml
    RE_init_append_data.xml
    RE_init_methodology_data.xml
    And what "Initial System Data" do I have to put?? the rule set?
    I'm new in SAP GRC.
    Thank you very much.
    Pablo Mortera.

    Pablo,
        I am sorry but I am not able to get the question so I will explain as per my understanding. All of these three xml files contain necessary out of the box data which is required for ERM to function. Without this data, your ERM would not work so this is the first thing you want to do in ERM after successful installation.
    After that, you will have to create connector and landscape and then synchronize transaction code, auth objects, fields, values etc by running through each background job one by one.
    Regards,
    Alpesh

  • Help needed in getting the previous Quarter Data

    Hello folks,
    I have this procedure where i have to modify the current procedure in the following manner:
    I need to get rid of the variables p_start and p_end so that i cannot see them in the crystal report and include the Frequency in the procedure to get the Data based on the Dates.
    and Main requirement is" If the Frequency is Quarterly " it should get the previous quarter Data, if "Frequency is monthly" it should return the previous month data.Can anyone please let me know where shud i make changes. Am including the procedure for refernce. Any help is appreciated
    Thanks a millioin,
    CREATE OR REPLACE PROCEDURE hcsc_recovery_report_h(report_record in out cr_return_types.gen_cursor,
    p_start       string,
    p_end         string)
    IS
    v_startdate date;
    v_enddate date;
    BEGIN
    v_startdate := to_date(p_start, 'YYYY/MM');
    v_enddate := last_day(to_date(p_end, 'YYYY/MM'));
    open report_record for
    select --distinct r.recovery_id
    r.event_id,
    r.event_case_id,
    c.client_id,
    c.client_code,
    c.client_name,
    b.branch_group_code,
    b.branch_group_description,
    g.employer_group_code,
    g.employer_group_name,
    e.client_policy_identifier,
    e.date_of_incident,
    e.event_type_code,
    sum(nvl(r.amount, 0)) as amt_received,
    nvl(sum(case
    when r.amount >= 0 then
    rd.fees
    else
    rd.fees * (-1)
    end),
    0) as fees,
    ec.close_date, *001* commented
    (case
    when ec.close_date <= to_date(to_char(v_enddate, 'MMDDRRRR') || '235959',
    'MMDDRRRR HH24MISS') then
    ec.close_date
    else
    null
    end) as close_date, --*001*  added
    get_case_value(ec.event_id, ec.event_case_id, v_enddate) as case_value,
    nvl(etl.fee_percent_flag, 'N') workmans_comp,
    max(to_char(r.recovery_date, 'FMMonthYYYY')) Year_Month,
    max(to_char(r.recovery_date, 'YYYYMM')) Y_M,
    max(to_date(to_char(r.recovery_date, 'MMYYYY'), 'MM/YYYY')) date_MY
    from recovery r,
    recovery_detail rd,
    event e,
    client c,
    branch_group b,
    employer_group g,
    event_case ec,
    event_type_lookup etl
    where r.event_id = e.event_id
    and r.event_case_id = ec.event_case_id
    and ec.event_id = e.event_id
    and rd.recovery_id(+) = r.recovery_id
    and r.recovery_date between v_startdate and
    to_date(to_char(v_enddate, 'MMDDRRRR') || '235959',
    'MMDDRRRR HH24MISS')
    and e.client_id = c.client_id
    and g.client_id = c.client_id
    and b.client_id = c.client_id
    and g.employer_group_id(+) = e.employer_group_id
    and b.branch_group_id(+) = g.branch_group_id
    and e.event_type_code = etl.event_type_code -- SST 130852 04/14/09
    group by r.event_id,
    r.event_case_id,
    c.client_id,
    c.client_code,
    c.client_name,
    b.branch_group_code,
    b.branch_group_description,
    g.employer_group_code,
    g.employer_group_name,
    e.client_policy_identifier,
    e.date_of_incident,
    e.event_type_code,
    ec.close_date,
    get_case_value(ec.event_id, ec.event_case_id, v_enddate),
    nvl(etl.fee_percent_flag, 'N')
    having sum(nvl(r.amount, 0)) <> 0
    order by c.client_code,
    b.branch_group_code,
    g.employer_group_code,
    r.event_case_id;
    Edited by: user11961230 on Oct 20, 2009 9:02 AM

    user11961230 wrote:
    1. I want to get rid of the p_start and p_end. So how do i declare the v_startdate and v_enddate in the following part?
    v_startdate := to_date(p_start, 'YYYY/MM');
    v_enddate := last_day(to_date(p_end, 'YYYY/MM'));I'm not sure what you mean by "declare".
    In PL/SQL, "declare" means state (at the beginning of a block) that there will be a certain variable with a certain name (such as v_startdate) and datatype (such as DATE). You're already declaring the variables v_startdate and v_enddate correctly, right before the BEGIN statement.
    Declaring a variable is not the same as initializing it, that is, giving it a value for the first time. Your next question seems to be about initializing..
    2. where exactly shud i include the logic that u have mentioned. sorry a dumb questionIn place of the two assignment statments that reference p_start and p_end.
    3. This time am gonna use frequency instead of report_type so that i will get rid of the p_start and p_end from the procedure.Do you mean you want to pass an argument (called frequency) that tells if you want a quarterly or a mionthly report, just like the variable report_type in my example?
    If so, replace report_type in my example with frequency.
    I think you want something like this:
    CREATE OR REPLACE PROCEDURE hcsc_recovery_report_h
    (      report_record         in out     cr_return_types.gen_cursor
    ,      frequency         IN           VARCHAR2
    IS
         -- Declare local variables:
         v_startdate     date;
         v_enddate      date;
    BEGIN
         -- Initialize v_startdate and v_enddate, depending on frequency
         IF  frequency = 'QUARTERLY'
         THEN
              v_startdate := TRUNC ( ADD_MONTHS (SYSDATE, -3)
                                           , 'Q'
              v_enddate := TRUNC (SYSDATE, 'Q');
         ELSIF  frequency = 'MONTHLY'
         THEN
              v_startdate := TRUNC ( ADD_MONTHS (SYSDATE, -1)
                             , 'MM'
              v_enddate := TRUNC (SYSDATE, 'MM');
         END IF;
         --   Subtract one second from v_enddate
              v_enddate := v_enddate - ( 1
                                            / (24 * 60 * 60)
         open report_record for
         select --distinct r.recovery_id
                r.event_id,
         and     r.recovery_date  BETWEEN  v_startdate     
                         AND       v_enddate
         ...When you post formatted text on this site (and code should always be formatted), type these 6 characters:
    (small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.
    Edited by: Frank Kulash on Oct 20, 2009 2:37 PM
    Changed query to use BETWEEN                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I've updated my Macbook Pro and my iMac with Maverick, updating the various apps. On my Macbook, everything functions perfectly. On my iMac, I get the Your System has Run out of Application Memory, and it's based our Mail, the only app not updated. Ideas?

    Maverick and Your System message
    I've updated my Macbook Pro and my iMac with Maverick, updating the various apps (Pages, Aperture, iPhoto, Numbers & iMovie, too) in the process.
    On my Macbook, everything functions perfectly. On my iMac, I get the Your System has Run out of Application Memory message. But it's not Calendar, it's Mail that not only won't open, but when it does now, it takes the entire system out with it.
    I open Safari, and it works. I open Firefox, and it works and Safari still works. I open Calendar and it works, Safari and Firefox continue to work. I open Reminders, and everything still works.
    I open Aperture, and it opens Finder instead, showing the 3.5 update that was installed two days ago (and Aperture has functioned), but doesn't seem to update the app; after about 20 seconds the update disappears and I can now open Aperture and it shows I'm now opening the updated Aperture, which it didn't show before.
    I click on Mail, and the cursor spins for ten minutes. The mail window finally opens, but the cursor spins and does not connect to upload new mail, and I finally Force Quit Mail. Since the Maverick update, even though Mail was not updated (and maybe because Mail was not updated), I have been able to receive emails twice, and then the program crashed.
    Besides the Aperture app, Pages didn't fully update on the iMac, and I had to remove the old Pages icon from the dock after the new program loaded up from Applications.
    Any ideas?

    Maverick and Your System message
    I've updated my Macbook Pro and my iMac with Maverick, updating the various apps (Pages, Aperture, iPhoto, Numbers & iMovie, too) in the process.
    On my Macbook, everything functions perfectly. On my iMac, I get the Your System has Run out of Application Memory message. But it's not Calendar, it's Mail that not only won't open, but when it does now, it takes the entire system out with it.
    I open Safari, and it works. I open Firefox, and it works and Safari still works. I open Calendar and it works, Safari and Firefox continue to work. I open Reminders, and everything still works.
    I open Aperture, and it opens Finder instead, showing the 3.5 update that was installed two days ago (and Aperture has functioned), but doesn't seem to update the app; after about 20 seconds the update disappears and I can now open Aperture and it shows I'm now opening the updated Aperture, which it didn't show before.
    I click on Mail, and the cursor spins for ten minutes. The mail window finally opens, but the cursor spins and does not connect to upload new mail, and I finally Force Quit Mail. Since the Maverick update, even though Mail was not updated (and maybe because Mail was not updated), I have been able to receive emails twice, and then the program crashed.
    Besides the Aperture app, Pages didn't fully update on the iMac, and I had to remove the old Pages icon from the dock after the new program loaded up from Applications.
    Any ideas?

  • Unable to get the file system information for: \\****servername\E$\; error = 64 Unable to distribute content to DP

    One of our DPs has stopped loading content. 
    I've research for quite a bit and cannot find a clear cut reason to this.  This server only has a DP role, I verified sharing permissions, all looked good. This DP has been running just fine for the last year or so and all sudden it will no longer load
    packages.  The disk drive is still present I can still reach the hidden share \\servername.com\E$
    Verified that the SMSSIG$ folder is there and the last entry is from 4/23/2015 
    SCCM 2012 R2 
    OS 2008 R2 Standard
    Any help is greatly appreciated!
    Here's a snipit from the distmgr.log
    Start updating the package on server ["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\...
    Attempting to add or update a package on a distribution point.
    Will wait for 1 threads to end.
    Thread Handle = 0000000000001E48
    STATMSG: ID=2342 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=***.com SITE=1AB PID=2472 TID=8252 GMTDATE=Thu Apr 30 19:12:01.972 2015 ISTR0="SYSMGMT Source" ISTR1="["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\"
    ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="CAS00087" AID1=404 AVAL1="["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\"
    SMS_DISTRIBUTION_MANAGER 4/30/2015 2:12:01 PM
    8252 (0x203C)
    The current user context will be used for connecting to ["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\.
    Successfully made a network connection to \\*****.com\ADMIN$.
    Ignoring drive \\*****.com\C$\.  File \\*****.com\C$\NO_SMS_ON_DRIVE.SMS exists.
    Unable to get the file system information for: \\*****.com\E$\; error = 64.
    Failed to find a valid drive on the distribution point ["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\
    Cannot find or create the signature share.
    STATMSG: ID=2324 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=sccmprdpr1sec2.mmm.com SITE=1AB PID=2472 TID=8252 GMTDATE=Thu Apr 30 19:12:55.206 2015 ISTR0="["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\"
    ISTR1="CAS00087" ISTR2="" ISTR3="30" ISTR4="94" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="CAS00087" AID1=404 AVAL1="["Display=\\*****.com\"]MSWNET:["SMS_SITE=1AB"]\\*****.com\"
    Error occurred. Performing error cleanup prior to returning.
    Cancelling network connection to \\*****.com\ADMIN$.

    Error 64 is being returned which is simply "the network name is no longer available".
    There can be a number of reasons for this from SMB compatibility issues (2003 servers wont support SMB2), to the expected and actual computer name of the boxes don't match (tries to authenticate with server.tld.com when the actual name is srv-01.tld.com and
    you just put a C-name in). I'd start from the top:  Try opening said share from the Primary Site server as that's the box doing the work.  Verify the IP and computer name is legit and that no one has played ACL games between the two systems (remember
    RPC only initiates/listens on port 135 but established connections are up in the dynamic port range).
    At the end of the day it's an issues "underneath" SCCM, and not an SCCM problem specifically. 

  • Hi iam getting the alv grid data in excel format but iam facing one problem

    hi iam getting the alv grid data in excel format but iam facing one problem ,
    i.e., i want it read only  but iam getting it in edit mode i use layout default in excel iam getting in xl directly but in edit mode but i need it in read only mode
    what i have to do for that  and bdy knows reply me i need it urgently.

    there's always edit-mode if you choose excel-inplace - but noone can modify/rewrite the data
    A.

  • Get the custom fields data at the time of save

    Hi,
    We have added few fields in the ICWC for the complaint screen.
    At the time of save i am trigering a BADI.
    I would like to check the data that is entered in those fields of complaint screen.
    Is there any FM which can be used to get the data from the buffer ?
    I have the header GUID available to me .
    Thanks.
    R

    Hi,
    Let me elaborate a bit.
    Users would create the complaints in the ICWC.We have addeded few custom fields in the complaint screen.
    CRMT_CUSTOMER_H_WRKT is extended with the custom fields.
    At the save i am trigerring the Partner Determination BAdi.
    Here i have the complaint guid at run time.
    I would like to check the data entered in the custom field in the complaint screen. Based on this i would like to determine one more partner.
    My question is how can i get the custom field data in the complaint screen in this BAdi.
    The FM:  CRM_ORDER_READ is not returning this data.Is there any FM to get this ?
    Thanks.
    R.

  • How do I get the last changed date & time of a file in app server?

    Hi Experts,
    How do I get the last changed date & time of a file in app server?
    Thanks!
    - Anthony -

    Hi,
    that's what I use...
      CALL 'C_DIR_READ_FINISH'.             " just to be sure
      CALL 'C_DIR_READ_START' ID 'DIR' FIELD p_path.
      IF sy-subrc <> 0.
        EXIT. "Error
      ENDIF.
      DO.
        CLEAR l_srvfil.
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD l_srvfil-type
          ID 'NAME'   FIELD l_srvfil-file
          ID 'LEN'    FIELD l_srvfil-size
          ID 'OWNER'  FIELD l_srvfil-owner
          ID 'MTIME'  FIELD l_mtime
          ID 'MODE'   FIELD l_srvfil-attri.
    *    l_srvfil-dir = p_path .
        IF sy-subrc = 1.
          EXIT.
        ENDIF." sy-subrc <> 0.
        PERFORM p_to_date_time_tz
          USING    l_mtime
          CHANGING l_srvfil-mod_time
                   l_srvfil-mod_date.
        TRANSLATE l_srvfil-type TO UPPER CASE.               "#EC TRANSLANG
        PERFORM translate_attribute CHANGING l_srvfil-attri.
        CHECK:
          NOT l_srvfil-file = '.',
          l_srvfil-type = 'D' OR
          l_srvfil-type = 'F' .
        APPEND l_srvfil TO lt_srvfil.
      ENDDO.
      CHECK NOT lt_srvfil IS INITIAL.
      pt_srvfil = lt_srvfil.
    FORM p_to_date_time_tz  USING    p_ptime  TYPE p
                            CHANGING p_time   TYPE syuzeit
                                     p_date   TYPE sydatum.
      DATA:
        l_abaptstamp TYPE timestamp,
        l_time       TYPE int4,
        l_opcode     TYPE x VALUE 3,
        l_abstamp    TYPE abstamp.
      l_time = p_ptime.
      CALL 'RstrDateConv'
        ID 'OPCODE' FIELD l_opcode
        ID 'TIMESTAMP' FIELD l_time
        ID 'ABAPSTAMP' FIELD l_abstamp.
      l_abaptstamp = l_abstamp.
      CONVERT TIME STAMP l_abaptstamp TIME ZONE sy-zonlo INTO DATE p_date
          TIME p_time.
    ENDFORM.                    " p_to_date_time_tz
    Regards,
    Clemens

Maybe you are looking for

  • How to log in as developer

    I am using this tool for the firts time. I installedl it and can get to admin page without problem. But do not know how to create a developer user and log in as that to an assigned workspace. It seems as adminstrator I can can not create developer as

  • I can no longer print tv listings from sign on san diego, but I still can with IE.

    I used to be able to print TV Listings from SignOnSanDiego, but since updating from Adobe Reader 8 to X, I can't just click on the Print tab, but have to click File/Print, which doesn't provide as good a print layout. I find I can still click the Pri

  • Performance issue of simple mapping

    Hi All, We cretated one simple mapping the details are as follows: 01. We had created on public dblink in Oracle 11g pointing to sqlserver 02. By using the publicdblink we create one view at Oracle 11g. This view acts as a source in my mapping. 03. W

  • Hide group labels on a 3D_CUBE_GRAPH

    Is there a way to hide all of the group labels across one of the axis lines on a 3D_CUBE_GRAPH? I tried all of the following and only the values listed on the other axis disappear. set_custom_property('BeanArea',1,'SHOW_LABELS','x=false,y=false'); se

  • My phone wont exit the settings screen and wont lock or turn off

    phone stuck on settings menu wont exit also it wont lock on its own or with lock button wont exit with home button either