The dateTimeLib.timeValue() system function returns a TIME value derived from a string. EGL maintains this function for backward compatibility only. New code can simply assign the string to the TIME variable.
For the rules EGL uses to convert the string value to a TIME value, see Converting text to date/time types.