简体   繁体   English

CTime未知异常C ++

[英]CTime unknown exception c++

I had initialized a Ctime object using its constructor as shown below: 我已经使用其构造函数初始化了Ctime对象,如下所示:

CTime myTime = CTime( 1956, 12, 12, 4,40,12 );

But on running the application an unknown exception is thrown. 但是在运行应用程序时,会引发未知异常。 What is wrong in this case? 在这种情况下怎么了? Please help. 请帮忙。

“number of seconds after January 1, 1970” is incompatible with a 1956 date. “ 1970年1月1日之后的秒数”与1956年的日期不兼容。

It's often a good idea to check the documentation before posting. 在发布之前检查文档通常是个好主意。

Other readers, or googlers who end up here, can/may benefit if you explain why you didn't check the documentation, or even inspect the exception? 如果您解释了为什么不检查文档甚至检查例外情况,其他读者或最终到达这里的Google员工可以/可以从中受益。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM