You can get the current frame with something like:
curFrame = timeToFrames(time);
What is it that you're trying to do?
I can't tell if you're aware of this (apologies if you are), but nothing that happens in an expression survives from one frame to the next. An expression has no way to reference past variable values or past results. You can re-calculate everything, but it won't just be waiting there.