Added toString() methods to time and date classes with supporting of formatted output.