timespan Class


Properties Properties of the class
Methods All Methods of the class ordered by category.
Examples Some constructor examples

Back to Class descriptions Back to Class descriptions

Properties

The LTPDA toolbox restrict access of the properties.

The get access is 'public' and thus it is possible to get the values with the dot-command (similar to structures).

For example:

val = obj.prop(2).prop;
The set access is 'protected' and thus it is only possible to assign a value to a property with a set-method.
For example:
obj2 = obj1.setName('my name') % This command creates a copy of obj1 (obj1 ~= obj2)
obj.setName('my name');        % This command applies to obj    

Properties Description Defined in class

startT

TIME object of the start time

timespan

endT

TIME object of the end time

timespan

timeformat

Time format of the start/end time objects

timespan

timezone

Timezone of the start/end time objects

timespan

interval

Interval string of the start/end time

timespan

hist

History object associated with this object

ltpda_uoh

name

Name of the object

ltpda_uo

created

Time object which stores the creation time of the object

ltpda_uo

creator

Creator of the object

ltpda_uo

version

CVS version string of the constructor

ltpda_obj

Back to Top Back to Top

Methods

Constructor Constructor of this class
Helper Helper methods only for internal usage
Internal Internal methods only for internal usage
Output Output methods
Relational Operator Relational operator methods

Back to Top Back to Top

Constructor

Methods Description Defined in class

timespan

TIMESPAN timespan object class constructor.

timespan

Back to Top of Section Back to Top of Section

Helper

Methods Description Defined in class

isprop

ISPROP tests if the given field is one of the object properties.

ltpda_obj

setName

SETNAME Set the property 'name'.

ltpda_uoh

setEndT

SETENDT Set the property 'endT'.

timespan

setStartT

SETSTARTT Set the property 'startT'.

timespan

setTimeformat

SETTIMEFORMAT Set the property 'timeformat'.

timespan

setTimezone

SETTIMEZONE Set the property 'timezone'.

timespan

Back to Top of Section Back to Top of Section

Internal

Methods Description Defined in class

addHistory

ADDHISTORY Add a history-object to the ltpda_uo object.

ltpda_uoh

copy

COPY Make copy of time objects depending of the second input

timespan

Back to Top of Section Back to Top of Section

Output

Methods Description Defined in class

save

SAVE overloads save operator for ltpda objects.

ltpda_uo

type

TYPE converts the input objects to MATLAB functions.

ltpda_uoh

char

CHAR convert a timespan object into a string.

timespan

display

DISPLAY overloads display functionality for timespan objects.

timespan

string

STRING writes a command string that can be used to recreate the input timespan object.

timespan

Back to Top of Section Back to Top of Section

Relational Operator

Methods Description Defined in class

eq

EQ overloads the == operator for ltpda objects.

ltpda_obj

ne

NE overloads the ~= operator for ltpda objects.

ltpda_obj

Back to Top of Section Back to Top of Section




©LTP Team