A court may order that a sentence of imprisonment be served periodically on particular days, rather than consecutively. The person imprisoned shall be given credit for each day or fraction of a day to the nearest hour actually served.
N.J.S. § 2B:12-22