# Custom

## class nominal.ts.Custom(format, default_year=None, default_day_of_year=None)

Bases: `_ConjureTimestampType`

A custom timestamp format. The custom timestamps are expected to be absolute timestamps.

The format string should be in the format of the `DateTimeFormatter` class in Java.
Ref: <https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/format/DateTimeFormatter.html#patterns>

### format: str

Must be in the format of the `DateTimeFormatter` class in Java.

### default_year: int | None = None

Accepted as an optional field for cases like IRIG time codes, where the year is not present.

### default_day_of_year: int | None = None

Accepted as an optional field for cases where the day of the year is not present.
