¶1This cause is affirmed but is remanded for resentencing.
¶2There can be no doubt that the trial judge properly intended to give credit for time served and he said so in open court. However the actual sentence did not specify the amount of time to be credited. Section 921.161, Florida Statutes (1977) specifically requires that “[t]he credit must be for a specified period of time and shall be provided for in the sentence.”
¶3AFFIRMED AND REMANDED IN ACCORDANCE HEREWITH.