TimePeriod Library By Scala