Skip to content

Accessor: Replace *_year() with *_date() - #574

Merged
Serial-ATA merged 1 commit into
mainfrom
accessor-date
Nov 12, 2025
Merged

Serial-ATA merged 1 commit into
mainfrom
accessor-date

Conversation

@Serial-ATA

Copy link
Copy Markdown
Owner

Since almost all formats support full dates, the Accessor methods can now accept and return full Timestamps, rather than just a year.

For ID3v1, the timestamp will just be truncated to its year.

This also changes the year field of Id3v1Tag to a u16, rather than a String.

closes #565

Since almost all formats support full dates, the `Accessor` methods can now accept and return full `Timestamp`s, rather than just a year.

For ID3v1, the timestamp will just be truncated to its year.

This also changes the `year` field of `Id3v1Tag` to a `u16`, rather than a `String`.
@Serial-ATA Serial-ATA added this to the 0.23.0 milestone Nov 12, 2025
@Serial-ATA
Serial-ATA merged commit 165fb11 into main Nov 12, 2025
@Serial-ATA
Serial-ATA deleted the accessor-date branch November 12, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reading year returns wrong value

1 participant