Skip to content

formatDateTime

formatDateTime(date, offsetMinutes): string

Defined in: src/format.ts:130

Formats FechaHoraHusoGenRegistro as YYYY-MM-DDThh:mm:ss±hh:mm.

Always a numeric offset, never Z; always whole seconds. Both are policy choices — the schema permits the alternatives, no AEAT example uses them, and the hash is over the literal, so the form must be fixed once.

Date

number

string