39 ms·
> 1st month, 2nd day, 3rd hour, 4th minute, 5th second, 6th year, 7th timezone Which, would be intuitive and easy to remember if month-day-hour-minute-second-y
by dragonwriter 4y ago
> 1st month, 2nd day, 3rd hour, 4th minute, 5th second, 6th year, 7th timezone
Which, would be intuitive and easy to remember if month-day-hour-minute-second-year-timezone was a sane logical ordering.
> Format string "D m y", for example, produces:
> - '05/31/22 05 22' in Ruby and Rust
How are you doing that in Ruby? The standard Ruby DateTime formatting method is DateTime#strftime() which uses approximately (mostly, fixing the locale-dependent options because the method is not locale sensitive) POSIX strftime format strings, which that is not.
Did you mean “%D %m %y”? Then that's right for Ruby/Rust. But that doesn't seem to produce the results you list for other languages (some of which also have a POSIX-ish strftime, though, e.g., it is deprecated in PHP.)