Application Development 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: 

time stamp conversion

Former Member
0 Kudos
209

Hi,

Whether there is any FM to convert local time to GMT and vice versa.

Thanks in advance,

Message was edited by:

Srinath Srinivasan

1 ACCEPTED SOLUTION

Former Member
0 Kudos
96

Hello,

The function module <b>IB_CONVERT_INTO_TIMESTAMP</b> is used to convert the time to the GMT. The input parameters are DATE, TIME and the TIMEZONE(user's time zone, default value SY-ZONLO). The output parameter is the timestamp in GMT.

Check out this link for a complete program on time zone conversion:

http://saptechnical.com/Tips/ABAP/ConvertTime.htm

Regards,

Deepu.K

3 REPLIES 3

Former Member
0 Kudos
97

Hello,

The function module <b>IB_CONVERT_INTO_TIMESTAMP</b> is used to convert the time to the GMT. The input parameters are DATE, TIME and the TIMEZONE(user's time zone, default value SY-ZONLO). The output parameter is the timestamp in GMT.

Check out this link for a complete program on time zone conversion:

http://saptechnical.com/Tips/ABAP/ConvertTime.htm

Regards,

Deepu.K

former_member386202
Active Contributor
0 Kudos
96

Hi,

use fm FITP_CONVERT_LOCAL_TIME_GMT

Regards,

Prashant

Former Member
0 Kudos
96

Hi Srinath,

Try these FM

RKE_TIMESTAMP_CONVERT_INPUT - to convert local time /date to GMT]

RKE_TIMESTAMP_CONVERT_OUTPUT - to convert GMT to local

To get the timestamp , use the fm "TZON_GET_OFFSET"

Reward if Useful.

Regards,

Chitra