ternary time