SAP ABAP Interface IF_TIMEUNIT_CALC (Calculation Functions of a Time Duration)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-TIM-TR (Application Component) Date Rules
     SZTI (Package) Central Basis Development: Time ('Time/Event')
Meta Relationship - Used By
# Relationship type Used by Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  CL_TIMEUNITCALC_DAY Calculation of Unit Day 20000511
2 Interface implementation (CLASS c. INTERFACES i_ref)  CL_TIMEUNITCALC_EXACT Calculation of Unit Exactly (No Extension) 20000810
3 Interface implementation (CLASS c. INTERFACES i_ref)  CL_TIMEUNITCALC_HOUR Calculation of Unit Hour 20000810
4 Interface implementation (CLASS c. INTERFACES i_ref)  CL_TIMEUNITCALC_MINUTE Calculation of Unit Minute 20000810
5 Interface implementation (CLASS c. INTERFACES i_ref)  CL_TIMEUNITCALC_MONTH Calculation of Unit Month 20000512
6 Interface implementation (CLASS c. INTERFACES i_ref)  CL_TIMEUNITCALC_QUARTER Calculation of Unit Quarter 20001005
7 Interface implementation (CLASS c. INTERFACES i_ref)  CL_TIMEUNITCALC_SECOND Calculation of Unit Second 20000731
8 Interface implementation (CLASS c. INTERFACES i_ref)  CL_TIMEUNITCALC_WEEK Calculation of Unit Week 20000512
9 Interface implementation (CLASS c. INTERFACES i_ref)  CL_TIMEUNITCALC_YEAR Calculation of Unit Year 20000515
Properties
Interface IF_TIMEUNIT_CALC  
Short Description Calculation Functions of a Time Duration    
General Data
Package SZTI   Central Basis Development: Time ('Time/Event') 
Created 20000508   SAP 
Last changed 00000000   SAP 
Unicode checks active    
Forward declarations
Interface IF_TIMEUNIT_CALC has no forward declaration.
Interfaces
Interface IF_TIMEUNIT_CALC has no interface.
Friends
Interface IF_TIMEUNIT_CALC has no friend.
Attributes
Interface IF_TIMEUNIT_CALC has no attribute.
Methods
# Method Level Visibility Method type Description Created on
1 ADD_DURA_TO_DURA Instance method Public Method Add Duration to Duration 20000508
2 CONVERT_FROM_BASEUNIT Instance method Public Method Converts duration of base unit into this unit 20000511
3 CONVERT_TO_BASEUNIT Instance method Public Method Converts a duration into its base unit 20000508
4 DIFF_DURA Instance method Public Method Difference between time durations in this unit 20000511
5 DIFF_TIME Instance method Public Method Difference between two times in this unit 20000511
6 GET_BASEUNIT Instance method Public Method Returns the base unit (as name) 20000508
7 GET_TIMESLICE Instance method Public Method Calculates the time slot for a time 20000511
8 GET_UNIT_NUMBER Instance method Public Method Number of time unit in which time falls 20000511
9 MOVE Instance method Public Method Go x units forwards or backwards (relative) 20000511
10 MOVE_TO Instance method Public Method Go to unit with number X 20000511
11 ROUND Instance method Public Method Round to this unit from a time 20000508
Events
Interface IF_TIMEUNIT_CALC has no event.
Types
Interface IF_TIMEUNIT_CALC has no local type.
Method Signatures

Method ADD_DURA_TO_DURA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DURA1 Call by reference Type reference (TYPE) TIMEDURA Zeitdauer 20000508
2 Importing DURA2 Call by reference Type reference (TYPE) TIMEDURA Zeitdauer 20000508
3 Returning RESULT Value transfer Type reference (TYPE) TIMEDURA Zeitdauer 20000508
4 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Referenz auf ein Anwendungsobjekt 20000508
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512

Method CONVERT_FROM_BASEUNIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DURA Call by reference Type reference (TYPE) TIMEDURA Zeitdauer 20000511
2 Returning RESULT Value transfer Type reference (TYPE) TIMEDURA Zeitdauer 20000511
3 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Referenz auf ein Anwendungsobjekt 20000511
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512

Method CONVERT_TO_BASEUNIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DURA Call by reference Type reference (TYPE) TIMEDURA Zeitdauer 20000511
2 Returning RESULT Value transfer Type reference (TYPE) TIMEDURA Zeitdauer 20000511
3 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Referenz auf ein Anwendungsobjekt 20000511
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512

Method DIFF_DURA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DURA_FROM Call by reference Type reference (TYPE) TIMEDURA Zeitdauer 20000511
2 Importing DURA_TO Call by reference Type reference (TYPE) TIMEDURA Zeitdauer 20000511
3 Returning RESULT Value transfer Type reference (TYPE) TIMEDURA Zeitdauer 20000511
4 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Referenz auf ein Anwendungsobjekt 20000511
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512

Method DIFF_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RESULT Value transfer Type reference (TYPE) TIMEDURA UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20000511
2 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Übersteuert timeobject von dest_dura 20000511
3 Importing TIME_FROM Call by reference Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20000511
4 Importing TIME_TO Call by reference Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20000511
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512

Method GET_BASEUNIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RESULT Value transfer Type reference (TYPE) TIMEUNITNA Zeiteinheit 20000511
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512

Method GET_TIMESLICE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DEST_TIMESLICE Call by reference Object reference (TYPE REF TO) CL_TIMESLICE Zeitscheibe, halboffenes Intervall 20000511
2 Importing POSITION Call by reference Type reference (TYPE) TIMEPOS Position bei Zeitberechnungen (Beginn, Mitte, Ende) 20000511
3 Returning RESULT Value transfer Object reference (TYPE REF TO) CL_TIMESLICE Zeitscheibe, halboffenes Intervall 20000511
4 Importing TIME Call by reference Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20000511
5 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Referenz auf ein Anwendungsobjekt 20000511
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512

Method GET_UNIT_NUMBER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RESULT Value transfer Type reference (TYPE) TIMEDURA Zeitdauer 20000512
2 Importing TIME Call by reference Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20000512
3 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Referenz auf ein Anwendungsobjekt 20000512
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512

Method MOVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DIRECTION Call by reference Type reference (TYPE) TIMEDIR Richtung bei Zeitberechnungen 20000511
2 Importing DURA Call by reference Type reference (TYPE) TIMEDURA Zeitdauer 20000511
3 Returning RESULT Value transfer Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20000511
4 Importing TIME Call by reference Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20000511
5 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Referenz auf ein Anwendungsobjekt 20000511

Method MOVE on Interface IF_TIMEUNIT_CALC has no exception.

Method MOVE_TO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DIRECTION Call by reference Type reference (TYPE) TIMEDIR Richtung bei Zeitberechnungen 20000511
2 Importing DURA Call by reference Type reference (TYPE) TIMEDURA Zeitdauer 20000511
3 Returning RESULT Value transfer Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20000511
4 Importing TIME Call by reference Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20000511
5 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Referenz auf ein Anwendungsobjekt 20000511
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512

Method ROUND Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing POSITION Call by reference Type reference (TYPE) TIMEPOS Position 20000508
2 Returning RESULT Value transfer Type reference (TYPE) TIMESTAMP Zeitpunkt 20000508
3 Importing TIME Call by reference Type reference (TYPE) TIMESTAMP Zeitpunkt 20000508
4 Importing TIMEOBJECT Call by reference Object reference (TYPE REF TO) IF_TIMEOBJECT Referenz auf ein Anwendungsobjekt 20000511
# Exception Resumable Description Created on
1 FATAL_ERROR Schwerer Fehler 20000512
History
Last changed by/on SAP  00000000 
SAP Release Created in 12A