Added toString to TimePeriod.