Useful on pine scripts which need to identify the start of the previous trading day i.e. from the perspective of today's date - not the previous day on each bar calculation.
Works on any timeframe - which is the whole point as on a daily chart you can simply do time[1].