Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Date and Time Processing →  Time Stamps →  Time Stamp Field with Time Stamp Type →  Time Stamp Functions 

utclong_current - Time Stamp Function

Other versions: 7.31 | 7.40 | 7.54

Syntax


... utclong_current( ) ...

Effect

This function takes the system time and system date in AS ABAP and uses them to produce a UTC time stamp in accordance with POSIX. The return value has the data type utclong.


Note

The precision of the decimal places of the new time stamp depends on the hardware (processor) of the current AS Instance host computer. A resolution of a single-figure or two-figure number of microseconds is realistic.


Example

Creates a table of time stamps. Unlike the example GET TIME STAMP, the time stamps do not need to be formatted differently in the output to make them visible as time stamps.

DATA time_stamps TYPE TABLE OF utclong WITH EMPTY KEY. 

time_stamps = VALUE #( FOR i = 1 UNTIL i > 100 
                         ( utclong_current( ) ) ). 

cl_demo_output=>display( time_stamps ).