Refactor: extracts class Snippet.TimestampFormat to format and parse timestamp.