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: 

Todays time in format hh:MM:SSSS

Former Member
0 Kudos

Hi,

is there any functions I can use to get time in the format hours minutes seconds to the nearst hundredth of a second or milli seconds eg:

HH:MM:SSS

or more more ?

Regards Sims

5 REPLIES 5

p190355
Active Contributor
0 Kudos

Hi,

Check the FM : RKE_TIMESTAMP_CONVERT_INPUT .

Usage :


DATA: BIS_TIMESTMP LIKE CEST1-TIMESTMP,
      E_DATE LIKE SY-DATUM,
      E_TIME LIKE SY-UZEIT.

  CALL FUNCTION 'RKE_TIMESTAMP_CONVERT_INPUT'
       EXPORTING
            I_DATE     = SY-DATUM
            I_DAYST    = SY-DAYST
            I_TIME     = SY-UZEIT
            I_TZONE    = SY-TZONE
       IMPORTING
            E_TIMESTMP = BIS_TIMESTMP.

  CALL FUNCTION 'RKE_TIMESTAMP_CONVERT_OUTPUT'
       EXPORTING
            I_DAYST    = SY-DAYST
            I_TIMESTMP = BIS_TIMESTMP
            I_TZONE    = SY-TZONE
       IMPORTING
            E_DATE     = E_DATE
            E_TIME     = E_TIME.

  WRITE:/ 'TIME (HH:MM:SS) = ', E_TIME.

Cheers,

Remi

Former Member
0 Kudos

Data : time(10).

concatenate sy-datum6(2) '.' sy-datum4(2) '.' sy-datum+0(4)

into time.

<REMOVED BY MODERATOR>

Regards,

Sankar.

Edited by: Alvaro Tejada Galindo on Apr 21, 2008 3:32 PM

0 Kudos

Hi sankar,

Understand the question da.

0 Kudos

Hi,

I need the seconds component of time in 100 of a second or in milli seconds, so if the time is now 15 21 32

as in 3 21pm and 32 seconds, I want the seconds reflected in greater detail like

3323 for more detail

Thanks

Former Member
0 Kudos

The best way of doing this was using get timestamp.