Grammar
N4AI-drafted〜とき
when ~
Formation
名詞修飾形 + とき(Nの + とき、な形容詞な + とき、い形容詞い + とき、V辞書形/V-た形 + とき)
Usage
Marks the time at which something happens. The tense before とき is decided by the order of the two actions, not by the tense of the sentence: V-る + とき means the main action happens before the other is completed, while V-た + とき means it happens after. Compare 日本へ行くとき、カメラを買った (bought before leaving) with 日本へ行ったとき、カメラを買った (bought after arriving).
Examples
暇なとき、音楽を聞きます。
ひまなとき、おんがくをききます。
When I'm free, I listen to music.
子どものとき、よくこの公園で遊びました。
こどものとき、よくこのこうえんであそびました。
When I was a child, I often played in this park.
国へ帰ったとき、家族にお土産を渡すつもりです。
くにへかえったとき、かぞくにおみやげをわたすつもりです。
When I get back to my country, I plan to give my family the souvenirs.