Skip to content

Consider returning file creation/modification/access time as an Instant. #1756

@MohammadKHC

Description

@MohammadKHC

Since Kotlin 2.3.0, Instant is stable.

By changing FileMetadata.createdAtMillis,
FileMetadata.lastModifiedAtMillis, and
FileMetadata.lastAccessedAtMillis to Instant and renaming them to
createdAt, lastModifiedAt, and lastAccessedAt, we avoid losing
nanosecond precision.

We can still provide deprecated extension properties that return the
millisecond value from the corresponding Instant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions