abstracted timestamp creation and normalization with generateTimestamp() and normalizeDigit()