lose track of time对时间不知不觉;忘记了时间几点了
这个短语就是汉语里因为太专注某事或场景而忘记了时间或忽视了时间。

She was so engrossed in her book she lost all track of time.
她太专注于书本了,都忘了几点了。
I lose all track of time when I listen to this music.
我一听到这段乐曲,就会忘了时间。
I lost track of time when l was shopping
刚刚购物的时候忘记了时间。

You become so deeply absorbed in an activity that you lose track of time
你会因过于专注某项活动而失去时间概念。
I lost all track of time.
我一点儿也说不准现在是什么时间。

It's hard to keep track of time in here.
在这里很容易忘了时间。《柯林斯高阶英汉双解学习词典》

The lovers roamed around the fields in complete forgetfulness of time.
这对情侣漫步于田野,完全忘记了时间。

忘记时间也可以说:be oblivious to time
oblivious[ˈɒblɪviəs]不注意的,不在意的,忘却的
Amidst the beautiful sunset, they were oblivious to time.
在美丽的日落中,他们忘记了时间。

但是,忘记了做某事的时间,可以说:
forget the time (for sth)
l forgot the time for school.我忘了来上学的时间了。