How Do I Have my Program Accept a Negative Year as Valid
조회 수: 3 (최근 30일)
이전 댓글 표시
I am creating a time calculator game to learn how to code and am running into trouble when I input a negative year. How can I program a time calculator that recognizes this negative year as BCE while not displaying an invalid message? I
댓글 수: 0
답변 (1개)
Alexander
2024년 2월 16일
datetime(-1,1,1) answeres 01-Jan--0001 which is correct.
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!