You can remember the meaning of 有时 with this easy mnemonic:
Sometimes if you have (有) time (时), it's nice to go hiking in the woods and experience Mother Nature.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.