Jesus is speaking about himself in the third person. Alternate translation: "the time for me to come is near" (See: [[rc://en/ta/man/translate/figs-123person]])
"close to the gates." Jesus uses the imagery of a king or important official getting close to the gates of a walled city. It is a metaphor meaning the time for Jesus to come is soon. (See: [[rc://en/ta/man/translate/figs-metaphor]])