Help CenterHelp Center
timeseries
Set timeseries times as date character vectors
tsout = setabstime(tsin,timevals)
tsout = setabstime(tsin,timevals,timeformat)
example
tsout = setabstime(tsin,timevals) sets the times in timeseries object tsin to the date character vectors specified in timevals.
tsin
timevals
tsout = setabstime(tsin,timevals,timeformat) explicitly specifies the format of timeformat used in timevals.
timeformat
collapse all
Set date character vectors as the time values in a timeseries object.
tsin = timeseries((1:3)'); tsout = setabstime(tsin,{'12-DEC-2005 12:34:56','12-DEC-2005 13:34:56','12-DEC-2005 14:34:56'});
Input timeseries, specified as a scalar.
Sample times, specified as a cell array of date character vectors. Valid date character vectors can have the following forms:
dd-mmm-yyyy HH:MM:SS
01-Mar-2000 15:45:17
dd-mmm-yyyy
01-Mar-2000
mm/dd/yy
03/01/00
mm/dd
03/01
HH:MM:SS
15:45:17
HH:MM:SS PM
3:45:17 PM
HH:MM
15:45
HH:MM PM
3:45 PM
mmm.dd,yyyy HH:MM:SS
Mar.01,2000 15:45:17
mmm.dd,yyyy
Mar.01,2000
mm/dd/yyyy
03/01/2000
Data Types: cell
cell
Time format, specified as a scalar date format used for the time values.
Introduced before R2006a
getabstime | timeseries
getabstime
You have a modified version of this example. Do you want to open this example with your edits?
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office