How database functions determine what t number is?

How such functions as as-of and since which API accepts point t distinguish this ‘t’ value to determine whether it is transaction number or transaction id ?