Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Time conversion

former_member226519
Active Contributor
0 Likes
491

in structure EMG_FILEINFO (used by fm ISU_M_GET_FILES_OF_DIR, e.g.) the time stamp MTIME is in "seconds since 1970".

Is there any function module / method to convert this time stamp?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
433

Hi,

I don't think so, look at FORM GET_DAT_TIME in include LEMIG_LISTF01 !

Regards,

Klaus

2 REPLIES 2
Read only

Former Member
0 Likes
434

Hi,

I don't think so, look at FORM GET_DAT_TIME in include LEMIG_LISTF01 !

Regards,

Klaus

Read only

Former Member
0 Likes
433

Hi,

you can try this:


DATA: UZEIT             LIKE SY-UZEIT.
DATA: DATUM             LIKE SY-DATUM.
DATA: LF_TIMESTAMP      TYPE TIMESTAMP.
*
  CONVERT TIME STAMP LF_TIMESTAMP
          TIME ZONE  SY-ZONLO
          INTO
          DATE DATUM
          TIME UZEIT.

regards, Dieter

I find this in SCN:

Regards, Dieter

Edited by: Dieter Gröhn on May 10, 2011 10:41 AM