|
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:The set access is 'protected' and thus it is only possible to assign a value to a property with a set-method.
val = obj.prop(2).prop;
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 |
---|---|---|
utc_epoch_milli |
Unix epoch time in milliseconds. The underlying timezone is UTC |
time |
timezone |
Timezone of the current time |
time |
timeformat |
Time format of the current time |
time |
time_str |
Time string depending on the unix epoch time and time format |
time |
version |
CVS version string of the constructor |
ltpda_obj |
|
Methods | Description | Defined in class |
---|---|---|
MINUS overloads - operator for time objects. |
time |
|
PLUS overloads + operator for time objects. |
time |
Methods | Description | Defined in class |
---|---|---|
TIME time object class constructor. |
time |
Methods | Description | Defined in class |
---|---|---|
ISPROP tests if the given field is one of the object properties. |
ltpda_obj |
|
GETTIMEZONES Get all possible timezones. |
time |
|
STRING writes a command string that can be used to recreate the input time object. |
time |
Methods | Description | Defined in class |
---|---|---|
COPY Make copy of time objects depending of the second input |
time |
|
SETEPOCHTIME Set the property 'utc_epoch_milli'. |
time |
|
SETTIME_STR Set the property 'time_str'. |
time |
|
SETTIMEFORMAT Set the property 'timeformat'. |
time |
|
SETTIMEZONE Set the property 'timezone'. |
time |
Methods | Description | Defined in class |
---|---|---|
CHAR convert a time object into a string. |
time |
|
DISPLAY overloads display functionality for time objects. |
time |
|
FORMAT Returns the time in specified format. |
time |
Methods | Description | Defined in class |
---|---|---|
EQ overloads the == operator for ltpda objects. |
ltpda_obj |
|
NE overloads the ~= operator for ltpda objects. |
ltpda_obj |