Step 1: Go to your tradingview account and copy paste the below code on your pine script.

indicator(title="Time Show", shorttitle="TimeOnly", overlay=true, timeframe="", timeframe_gaps=true)
len = input.int(9, minval=1, title="Length")
src = input(close, title="Source")
offset = input.int(title="Offset", defval=0, minval=-500, maxval=500)
out = ta.ema(src, len)
plot(out, title="EMA", color=color.blue, offset=offset)
plot(series=time, color=color.blue,title="Bar close time")