Skip to content
Novus Examples
csv421 B

CSV with Mixed Timestamp Formats

A CSV listing timestamps in eleven formats — ISO 8601 with Z and numeric offsets, millisecond precision, naive local, date-only, Unix epoch in seconds and milliseconds, US AM/PM, and RFC 1123. A fixture for testing date parsing and timezone normalisation.

Preview — first 13 linescsv
id,event,timestamp
1,iso_utc_z,2026-01-15T12:00:00Z
2,iso_offset,2026-01-15T07:00:00-05:00
3,iso_offset_plus,2026-01-15T21:00:00+09:00
4,iso_millis,2026-01-15T12:00:00.250Z
5,naive_local,2026-01-15 12:00:00
6,date_only,2026-01-15
7,epoch_seconds,1768478400
8,epoch_millis,1768478400000
9,us_ampm,01/15/2026 12:00 PM
10,rfc_1123,"Thu, 15 Jan 2026 12:00:00 GMT"
11,rfc_with_tz,"Thu, 15 Jan 2026 07:00:00 -0500"

Specifications

Rows
11
Note
the same instant in 11 timestamp formats (ISO, offsets, epoch s/ms, US, RFC 1123)

What is a .csv file?

CSV (Comma-Separated Values) is a plain-text tabular format where rows are lines and fields are separated by commas, with quoting rules for values that contain delimiters, quotes, or newlines. It has no formal type system and depends on encoding and dialect conventions. It is the most portable format for tabular data exchange.

How to use this file

Use an example CSV to test parsers against quoting and embedded-delimiter edge cases, header handling, encoding detection, and import pipelines into databases or spreadsheets.

Code examples

import pandas as pd

df = pd.read_csv("timezone-timestamps.csv")
print(df.head())
print(df.dtypes)

Generated by generation/data_edgecases.py. Free for any use, no attribution required — license.