Skip to Content
0
Apr 17, 2008 at 08:41 AM

Time conversion from UNIX timestamp (Epoch) - seconds since 19700101

5176 Views

Are there any standart FM for conversion between UNIX timestamp and ABAP date/time formats?

Is there something shorter than this code?

data: i(20) type n.

data: d type sy-datum.
data: t type sy-uzeit.

i = 2177452123.
d = '19700101'.
d = d + i div 86400.
t = i mod 86400.

write: d, t.