added support for setting a value at the specified time