Fixed day calculation, and now support date/time detection with the 'STDCPP' target (Thanks to 'mojoemulator').