Skip to content

[DOC] Doc for Pathname#atime#16495

Merged
peterzhu2118 merged 1 commit intoruby:masterfrom
BurdetteLamar:pathname_atime_doc
Mar 24, 2026
Merged

[DOC] Doc for Pathname#atime#16495
peterzhu2118 merged 1 commit intoruby:masterfrom
BurdetteLamar:pathname_atime_doc

Conversation

@BurdetteLamar
Copy link
Copy Markdown
Member

No description provided.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label Mar 22, 2026
@github-actions
Copy link
Copy Markdown

The following files are maintained in the following upstream repositories:

Please file a pull request to the above instead. Thank you!

# atime -> new_time
#
# Returns a new Time object containing the time of the most recent
# access (read or write) to the entry;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This timestamp is only updated on file writes, not reads.

Copy link
Copy Markdown
Member Author

@BurdetteLamar BurdetteLamar Mar 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the example contradicted that. Are the two atimes not different?

Or is this OS-dependent? I wondered about that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Atime modified by read also on Ubuntu. Still, possibly not on all OS.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I misunderstood atime. You're right.

@peterzhu2118 peterzhu2118 merged commit d4e3d70 into ruby:master Mar 24, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants