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 format in scripts

Former Member
0 Likes
311

hi friends,

i have a small requirement. i have to print the time format as

03: 11 <b>PM</b> or <b>AM</b> . i am using SET TIME MASK = 'HH: MM'

but i need to print <b>AM OR PM</b> at the same time . which i am unable to do so.

please help me if you know .

Thanks and Regards

srinivas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
292

Hi Use this FM

HRVE_CONVERT_TIME

in that you need to specify

TYPE_TIME 'A'

INPUT TIME

INPUT_AM_PM 'AM' or 'PM'

-


TYPE_TIME A

INPUT_TIME 13:00:00

INPUT_AM_PM AM

Export parameters Value

OUTPUT_TIME 01:00:00

OUTPUT_AM_PM PM

Regards,

Ramesh.

1 REPLY 1
Read only

Former Member
0 Likes
293

Hi Use this FM

HRVE_CONVERT_TIME

in that you need to specify

TYPE_TIME 'A'

INPUT TIME

INPUT_AM_PM 'AM' or 'PM'

-


TYPE_TIME A

INPUT_TIME 13:00:00

INPUT_AM_PM AM

Export parameters Value

OUTPUT_TIME 01:00:00

OUTPUT_AM_PM PM

Regards,

Ramesh.