CLAS CL_ABAP_TSTMP
Source Link
Open in ADT
Home
Previous Object: CL_ABAP_TIMEFM
Next Object: CL_ABAP_TYPEDESCR
Public
Type operation_mode TYPE cl_abap_tstmp=>operation_mode
Constant op_mode_next TYPE cl_abap_tstmp=>operation_mode
Constant op_mode_before TYPE cl_abap_tstmp=>operation_mode
Constant op_mode_wallclock TYPE cl_abap_tstmp=>operation_mode
Constant unix_zero TYPE TZNTSTMPS
Static Method make_valid_time
IMPORTING
 date_in TYPE D
 time_in TYPE T
 time_zone TYPE TZNZONE
 mode TYPE cl_abap_tstmp=>operation_mode Optional
EXPORTING
 date_valid TYPE D
 time_valid TYPE T
RAISING cx_parameter_invalid_range
RAISING cx_tstmp_internal_error
Static Method add
IMPORTING
 tstmp TYPE p LENGTH 1 DECIMALS 0
 secs TYPE numeric
RETURNING r_tstmp TYPE TZNTSTMPL
RAISING cx_parameter_invalid_range
RAISING cx_parameter_invalid_type
Static Method add_to_short
IMPORTING
 tstmp TYPE p LENGTH 1 DECIMALS 0
 secs TYPE numeric
RETURNING r_tstmp TYPE TZNTSTMPS
RAISING cx_parameter_invalid_range
RAISING cx_parameter_invalid_type
Static Method subtract
IMPORTING
 tstmp1 TYPE p LENGTH 1 DECIMALS 0
 tstmp2 TYPE p LENGTH 1 DECIMALS 0
RETURNING r_secs TYPE TZNTSTMPL
RAISING cx_parameter_invalid_range
RAISING cx_parameter_invalid_type
Static Method subtractsecs
IMPORTING
 tstmp TYPE p LENGTH 1 DECIMALS 0
 secs TYPE numeric
RETURNING r_tstmp TYPE TZNTSTMPL
RAISING cx_parameter_invalid_range
RAISING cx_parameter_invalid_type
Static Method subtractsecs_to_short
IMPORTING
 tstmp TYPE p LENGTH 1 DECIMALS 0
 secs TYPE numeric
RETURNING r_tstmp TYPE TZNTSTMPS
RAISING cx_parameter_invalid_range
RAISING cx_parameter_invalid_type
Static Method compare
IMPORTING
 tstmp1 TYPE p LENGTH 1 DECIMALS 0
 tstmp2 TYPE p LENGTH 1 DECIMALS 0
RETURNING comp TYPE I
RAISING cx_parameter_invalid_type
RAISING cx_parameter_invalid_range
Static Method td_add
IMPORTING
 date TYPE D
 time TYPE T
 secs TYPE numeric
EXPORTING
 res_date TYPE D
 res_time TYPE T
RAISING cx_parameter_invalid_type
RAISING cx_parameter_invalid_range
Static Method td_subtract
IMPORTING
 date1 TYPE D
 time1 TYPE T
 date2 TYPE D
 time2 TYPE T
EXPORTING
 res_secs TYPE numeric
RAISING cx_parameter_invalid_type
RAISING cx_parameter_invalid_range
Static Method isdoubleinterval
IMPORTING
 date TYPE D
 time TYPE T
RETURNING isdoubleinterval TYPE ABAP_BOOL
RAISING cx_parameter_invalid_type
RAISING cx_parameter_invalid_range
Static Method systemtstmp_syst2loc
IMPORTING
 syst_date TYPE D
 syst_time TYPE T
EXPORTING
 loc_date TYPE D
 loc_time TYPE T
 loc_dst TYPE ABAP_BOOL
RAISING cx_parameter_invalid_range
RAISING cx_parameter_invalid_type
Static Method systemtstmp_loc2syst
IMPORTING
 loc_date TYPE D
 loc_time TYPE T
 loc_dst TYPE ABAP_BOOL
EXPORTING
 syst_date TYPE D
 syst_time TYPE T
RAISING cx_parameter_invalid_range
RAISING cx_parameter_invalid_type
Static Method systemtstmp_utc2syst
IMPORTING
 utc_tstmp TYPE TZNTSTMPS
EXPORTING
 syst_date TYPE D
 syst_time TYPE T
RAISING cx_parameter_invalid_range
Static Method systemtstmp_syst2utc
IMPORTING
 syst_date TYPE D
 syst_time TYPE T
 pendantic_check TYPE ABAP_BOOL Optional
EXPORTING
 utc_tstmp TYPE TZNTSTMPS
RAISING cx_parameter_invalid_range
Static Method td_normalize
IMPORTING
 date_in TYPE D
 time_in TYPE T
EXPORTING
 date_norm TYPE D
 time_norm TYPE T
RAISING cx_parameter_invalid_range
Static Method normalize
IMPORTING
 tstmp_in TYPE p LENGTH 1 DECIMALS 0
RETURNING tstmp_out TYPE TZNTSTMPL
RAISING cx_parameter_invalid_range
RAISING cx_parameter_invalid_type
Static Method move
IMPORTING
 tstmp_src TYPE p LENGTH 1 DECIMALS 0
EXPORTING
 tstmp_tgt TYPE p LENGTH 1 DECIMALS 0
RAISING cx_parameter_invalid_type
RAISING cx_parameter_invalid_range
Static Method move_to_short
IMPORTING
 tstmp_src TYPE TZNTSTMPL
RETURNING tstmp_out TYPE TZNTSTMPS
RAISING cx_parameter_invalid_type
RAISING cx_parameter_invalid_range
Static Method tstmp2utclong
IMPORTING
 timestamp TYPE p LENGTH 1 DECIMALS 0
RETURNING utclong TYPE utclong
RAISING cx_parameter_invalid_type
RAISING cx_sy_conversion_no_date_time
Static Method utclong2tstmp
IMPORTING
 utclong TYPE utclong
RETURNING timestamp TYPE TZNTSTMPL
RAISING cx_sy_conversion_no_date_time
Static Method utclong2tstmp_short
IMPORTING
 utclong TYPE utclong
RETURNING timestamp TYPE TZNTSTMPS
RAISING cx_sy_conversion_no_date_time
Static Method isdoubleinterval_tzone
IMPORTING
 date TYPE D
 time TYPE T
 tzone TYPE TZNZONE
RETURNING isdoubleinterval TYPE ABAP_BOOL
RAISING cx_parameter_invalid_type
RAISING cx_parameter_invalid_range
Static Method get_system_timezone
RETURNING system_timezone TYPE TZNZONE
Static Method timet_to_tstmp
IMPORTING
 time_t TYPE INT8
 flag_local_appserver TYPE ABAP_BOOL Optional
RETURNING r_tstmp TYPE TZNTSTMPS
RAISING cx_parameter_invalid_range
Exists on:
Bug reports and ideas welcome
Made using abaplint.app