mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
2bd9c4327b
Added complete call-seq documentation for all 39 public methods in the Time class, improving documentation coverage from 0% to 100%. Documentation added includes: Class methods (6): - Time.now: Get current system time - Time.at: Create time from epoch seconds - Time.gm/utc: Create UTC time from components - Time.local/mktime: Create local time from components Instance methods (33): - Arithmetic: +, -, <=> for time calculations and comparisons - Accessors: year, month, day, hour, min, sec, usec, wday, yday - Timezone: zone, utc, localtime, getutc, getlocal, utc?, gmt?, dst? - Conversion: to_i, to_f, to_s, inspect, asctime, ctime, hash - Initialization: new, initialize_copy - Weekday helpers: sunday?, monday?, tuesday?, wednesday?, thursday?, friday?, saturday? Each method now includes: - Clear method signatures with parameter and return types - Detailed descriptions of time handling behavior - Practical examples showing common usage patterns - Notes about timezone handling and precision - Consistent formatting following mruby documentation standards This represents a major improvement in maintainability and usability of time functionality for developers working with date/time operations in embedded Ruby environments. The Time class is now fully documented with comprehensive examples covering all aspects of time manipulation. Co-authored-by: Atlassian Rovo Dev