Skip to content

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

Description

@MohammedKHC

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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