Problem with datevec: It returns the same vector for two different dates

I'm trying to get the vector for two different date strings but I get the same answer for different inputs:
datevec('2012060100','yyyymmddhh') ans =
2012 6 1 0 0 0
datevec('2012060112','yyyymmddhh') ans =
2012 6 1 0 0 0

 채택된 답변

Jan
Jan 2013년 7월 16일
편집: Jan 2013년 7월 16일
Try it with uppercase HH:
datevec('2012060112','yyyymmddHH')

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

질문:

2013년 7월 16일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by