matlab datetime定义,关于datetime的问题

properties(GetAccess='public', Hidden, Constant)

% These properties are for internal use only and will change in a

% future release.  Do not use these properties.

UTCZoneID = 'UTC';

UTCLeapSecsZoneID = 'UTCLeapSeconds';

ISO8601Format = 'uuuu-MM-dd''T''HH:mm:ss.SSS''Z''';

epochDN = 719529; % 1-Jan-1970 00:00:00

% Canonicalize the TZ name. This make US/Eastern ->America/New_York, but it will also make EST -> Etc/GMT+5,because EST is an offset, not a time zone.

if supplied.TimeZone, tz = verifyTimeZone(tz); end

if supplied.Locale, locale = verifyLocale(locale); end

if supplied.PivotYear, verifyPivot(pivot); end

isUTCLeapSecs = strcmp(tz,datetime.UTCLeapSecsZoneID);

try

if supplied.InputFormat

verifyFormat(inputFmt,tz,true);

thisData = createFromString(inData,inputFmt,1,tz,locale,pivot);

else

if supplied.Format, tryFmts = {fmt}; end

[thisData,inputFmt] = guessFormat(inData,tryFmts,1,tz,locale,pivot);

end

catch ME

if strcmp(ME.identifier,'MATLAB:datetime:ParseErrs')

handleParseErrors(inData,supplied,fmt,inputFmt,locale);

else

throw(ME)

end

end

报下面的错,恳请大神帮忙解答一下

错误使用 datetime (line 616)

无法识别日期/时间文本的格式。您可以使用 'InputFormat' 参数指定格式字符向量。如果日期/时间文本包含的日期、月份或时区名称所采用的语言不同于 'zh_CN' 区域设置,则可能无法识别这些名

称。您可以使用 'Locale' 参数指定不同的区域设置。

出错 quandl_forecast_fileexchange (line 92)

dates = datetime(tstime);                                                   % Converts dates to datetime format

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值