Time constructor and generateTimes added-JP