How Do I Have my Program Accept a Negative Year as Valid
1 回表示 (過去 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.
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!