Unlooping a loop whilst needing a loop

can't you read the saved timestamp value from rtc only at start into a variable and use the variable in comparisons until the restart?