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

Find time zone

Former Member
0 Likes
3,683

Hi,

can anyone tell me how to find the time zone?

thanks,

Vikram

Hi,

can anyone tell me how to find the time zone?

thanks,

Vikram

5 REPLIES 5
Read only

Former Member
0 Likes
2,211

Hi,

If you need to convert date and time into a local time zone, the function TZ_SYSTEM_TO_LOCAL can be used.

Cheers

VJ

Read only

Former Member
0 Likes
2,211

SY-TZONE

Read only

Former Member
0 Likes
2,211

the Function module: GET_SYSTEM_TIMEZONE will get the system's time zone.

The fm: TZ_LOCATION_TIMEZONE will get the timezone for a location.

Regards,

Ravi

Read only

sachin_mathapati
Contributor
0 Likes
2,211

From TTZCU table..

  • fetch the zone.

CLEAR wf_tzone.

SELECT SINGLE tzonedef

INTO wf_tzone

FROM ttzcu.

Regards,

Sachin M M

Read only

Former Member
0 Likes
2,211

The function module IB_CONVERT_INTO_TIMESTAMP is used to convert the time to the GMT.

The input parameters are DATE, TIME and the TIMEZONE(user's timezone, default value SY-ZONLO).

The output parameter is the timestamp in GMT.

The function module IB_CONVERT_FROM_TIMESTAMP is used to get the time in required timezone.

The input parameters for this are the timestamp obtained from the above function module and the timezone,

to which the time needs to be converted.