I seem to include a lot of unnecessary headers, or they are already included via other ones.
The way I was getting the date and time was obsolete. Use new method.