Skip to content

Conversation

@henrahmagix
Copy link

@henrahmagix henrahmagix commented Sep 26, 2025

%m is the month; %M is the minutes.

image image
$ irb
irb(main):001> Time.now
=> 2025-09-26 12:33:28.310967 +0100
irb(main):002> Time.now.strftime("%Y-%m-%d at %I:%m %P")
=> "2025-09-26 at 12:09 pm"
irb(main):003> Time.now.strftime("%Y-%m-%d at %I:%M %P")
=> "2025-09-26 at 12:33 pm"
irb(main):004> RUBY_ENGINE
=> "ruby"
irb(main):005> RUBY_ENGINE_VERSION
=> "3.4.5"

`%m` is the month; `%M` is the minutes.
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.

1 participant