Added classes and methods to handle time instant.