src/server/pkg/pretty/pretty.go
func TimeDifference(from *types.Timestamp, to *types.Timestamp) string {
	tFrom, _ := types.TimestampFromProto(from)
	tTo, _ := types.TimestampFromProto(to)
	return units.HumanDuration(tTo.Sub(tFrom))
}
func TimeDifference(from *types.Timestamp, to *types.Timestamp) string {
	tFrom, _ := types.TimestampFromProto(from)
	tTo, _ := types.TimestampFromProto(to)
	return units.HumanDuration(tTo.Sub(tFrom))
}
func TimeDifference ( from * types . Timestamp , to * types . Timestamp ) string { tFrom , _ := types . TimestampFromProto ( from ) tTo , _ := types . TimestampFromProto ( to ) return units . HumanDuration ( tTo . Sub ( tFrom ) ) }
// TimeDifference pretty-prints the duration of time between from
// and to as a human-reabable string.
TimeDifference pretty - prints the duration of time between from and to as a human - reabable string .