For `tstime`, a list will be returned to the user with two elements: time (observation time) and frequnecy (observation frequency).
For `tsfreq`, R extracts the attribute `seasonal.cycle` from the time series object x.
For `tstimegap`, R calculates the time gap between the time periods stored in the vector t.
So, if x and t are consistent and refer to the data and time of the same time series, the results of `tsfreq` and `tstimegap` as well as the frequnecy element of `tstime` must be identical.
If x.name is NULL, the attribute series.name of x will be returned. Otherwise, the series will be returned with a new value for the attribute series.name specified by x.name.
For tsattrcopy, the function does the same as attributes. However, attributes only works if both x and x.orig share the same length, whereas tsattrcopy does not require this property and returns x with all the attributes originated from the series x.orig.