There are essentially three calling conventions for the constructor of pd.Timestamp
, the one you are using in both case is the first one.
It takes either a datetime-like string (t1) or a float representing a Unix epoch (number of seconds since 1970-01-01) in units of seconds (t2).
You can read more here (pandas documentation)