tsOut = setabstime(ts, startDate)
| Parameter | Description |
|---|---|
| ts | Input timeseries object. |
| startDate | Date string used as the absolute time origin. |
| Parameter | Description |
|---|---|
| tsOut | Output timeseries object with the absolute start date set. |
setabstime Stores an absolute start date in TimeInfo. Numeric sample times remain relative to that start date.
ts = timeseries([1; 2], [0; 1]);
ts = setabstime(ts, '01-Jan-2024');
ts.TimeInfo.StartDate
| Version | Description |
|---|---|
| 2.0.0 | initial version |