Since the date and time are padded out with leading zeros, I'm betting the tails are all a fixed length so just need to count backwards.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.