You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Because the size of datetime is 8 bytes, and the size of int is 4 bytes. That is, not every datetime value will "fit" into the int type.
You can easily verify this:
That is, not every datetime value will "fit" into the int type.
This is also easy to verify. Even an unsigned int cannot fit 900 years (almost 900) of the datetime range.
By the way, if you want to print time using PrintFormat as an integer (number of seconds), then “%i” is not suitable for this: