Side note: “time” can be any continuous variable but
most often it is indeed time.
If we don’t know the exact time, e.g., because the event
hasn’t happened yet, the observation is censored. It is incomplete but not missing.
Time-to-event data inherently has two aspects: time
and event status. Regression and classification only
cover one aspect each.
Survival analysis is unique because it simultaneously considers if events happened (i.e. a binary outcome) and when events happened (e.g. a continuous outcome).1