2 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto fec629309f mruby-strftime: prevent crash on msvc with unsupported %- flag
add validation to detect gnu extension %- flag and raise argumenterror
on msvc instead of crashing. update test to use portable %m format.

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-19 07:33:45 +09:00
Yukihiro "Matz" Matsumoto b31e22f0bc mruby-strftime: implement time#strftime method
add new mruby-strftime gem providing time#strftime for formatting
time objects using standard format specifiers.

implementation features:
- uses mrb_time_get_tm() api for accessing time components
- handles nul bytes in format strings correctly
- dynamic buffer allocation for variable-length output
- comprehensive test coverage including edge cases

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-12 20:05:08 +09:00