Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-02-23 | [doc] update Time document. | Tanaka Akira | |
2025-02-22 | [DOC] Fix a typo | Nobuyoshi Nakada | |
2025-02-22 | [doc] Time class document updated. | Tanaka Akira | |
2025-01-02 | [DOC] Exclude 'Class' and 'Module' from RDoc's autolinking | Nobuyoshi Nakada | |
Notes: Merged: https://github.com/ruby/ruby/pull/12496 | |||
2024-10-11 | [DOC] Tweak "Time Internal Representation" | Nobuyoshi Nakada | |
- Remove `T_BIGNUM` word - Mark up function names and type names as code - Mark up struct member names as variables Notes: Merged: https://github.com/ruby/ruby/pull/11869 | |||
2024-10-11 | [DOC] Link labels cannot contain attributes for now | Nobuyoshi Nakada | |
Notes: Merged: https://github.com/ruby/ruby/pull/11869 | |||
2024-06-07 | [DOC] Time uses the proleptic Gregorian calendar. | Tanaka Akira | |
2024-06-02 | Time internal representation described. | Tanaka Akira | |
2023-12-02 | [DOC] Markup class name `Time` as code | Nobuyoshi Nakada | |
2023-12-02 | [DOC] Include timezones document in timev.rb | Nobuyoshi Nakada | |
So that it can be referred as a part of the document of `Time`. | |||
2023-11-26 | [DOC] Remove extra `+` which is not a part of keyword argument name | Nobuyoshi Nakada | |
2023-11-24 | [DOC] State timezone info in the string wins `in:` keyword | Nobuyoshi Nakada | |
2023-11-24 | [DOC] Simplify signature of `Time.new` | Nobuyoshi Nakada | |
2023-11-24 | [DOC] Add links about timezones | Nobuyoshi Nakada | |
2023-08-15 | [DOC] Improve doc guide compliance (#8221) | Burdette Lamar | |
2022-12-16 | [Feature #18033] Add `precision:` option | Nobuyoshi Nakada | |
Which limits the precision of subsecond. Defaulted to 9, that means nanosecond. Notes: Merged: https://github.com/ruby/ruby/pull/4825 | |||
2022-12-16 | [Feature #18033] Make Time.new parse time strings | Nobuyoshi Nakada | |
`Time.new` now parses strings such as the result of `Time#inspect` and restricted ISO-8601 formats. Notes: Merged: https://github.com/ruby/ruby/pull/4825 | |||
2022-11-22 | Add Time#deconstruct_keys | zverok | |
Notes: Merged: https://github.com/ruby/ruby/pull/6594 | |||
2022-11-17 | [DOC] Update about `sec` argument of `Time.new` | Nobuyoshi Nakada | |
2022-08-31 | [DOC] Enhanced RDoc for Time (#6308) | Burdette Lamar | |
More on timezones. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com> | |||
2022-08-28 | Fix comment in timev.rb | Jeremy Evans | |
2022-08-28 | [DOC] Enhanced RDoc for Time (#6294) | Burdette Lamar | |
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com> | |||
2022-08-25 | [DOC] Enhanced RDoc for Time (#6277) | Burdette Lamar | |
Deletes the :include: files in doc/time, which became no longer workable when @nobu pointed out that some (but not all) creator methods accept string values as well as integer-like values. Changes to methods: Time.utc Time.local Time.at Time.new Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com> | |||
2022-08-22 | [DOC] Remove extra page-dir prefix | Nobuyoshi Nakada | |
2022-08-21 | [DOC] Enhanced RDoc for Time (#6255) | Burdette Lamar | |
Treats: #utc #hash #localtime Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com> | |||
2022-02-19 | [DOC] prefer rdoc references over generated URLs | Nobuyoshi Nakada | |
2022-02-12 | [DOC] Simplify operator method references | Nobuyoshi Nakada | |
2022-01-12 | Speed up and avoid kwarg hash alloc in Time.now | John Hawthorn | |
Previously Time.now was switched to use Time.new as it added support for the in: argument. Unfortunately because Class#new is a cfunc this requires always allocating a Hash. This commit switches Time.now back to using a builtin time_s_now. This avoids the extra Hash allocation and is about 3x faster. $ benchmark-driver -e './ruby;3.1::~/.rubies/ruby-3.1.0/bin/ruby;3.0::~/.rubies/ruby-3.0.2/bin/ruby' benchmark/time_now.yml Warming up -------------------------------------- Time.now 6.704M i/s - 6.710M times in 1.000814s (149.16ns/i, 328clocks/i) Time.now(in: "+09:00") 2.003M i/s - 2.112M times in 1.054330s (499.31ns/i) Calculating ------------------------------------- ./ruby 3.1 3.0 Time.now 7.693M 2.763M 6.394M i/s - 20.113M times in 2.614428s 7.278710s 3.145572s Time.now(in: "+09:00") 2.030M 1.260M 1.617M i/s - 6.008M times in 2.960132s 4.769378s 3.716537s Comparison: Time.now ./ruby: 7693129.7 i/s 3.0: 6394109.2 i/s - 1.20x slower 3.1: 2763282.5 i/s - 2.78x slower Time.now(in: "+09:00") ./ruby: 2029757.4 i/s 3.0: 1616652.3 i/s - 1.26x slower 3.1: 1259776.2 i/s - 1.61x slower Notes: Merged: https://github.com/ruby/ruby/pull/5429 | |||
2021-12-03 | [DOC] Fix Time.new description [ci skip] | Nobuyoshi Nakada | |
2021-11-15 | Use `Primitive.mandatory_only?` for `Time.at` | Koichi Sasada | |
Notes: Merged: https://github.com/ruby/ruby/pull/5112 | |||
2021-11-10 | Use Primitive. in timev.rb for consistency with all other .rb files | Benoit Daloze | |
2021-11-10 | Tentative fix of subsec to `Time.at` [Bug #18293] | Nobuyoshi Nakada | |
2021-11-10 | Simplify default values of `Time.at` [Bug #18293] | Nobuyoshi Nakada | |
2021-09-13 | Links for What's Here sections (#4827) | Burdette Lamar | |
Makes What's Here sections in Time and Dir link to What's Here for super and included modules (like all the others). Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com> | |||
2021-08-23 | [DOC] Match each `Time.now` for comparison [ci skip] | Nobuyoshi Nakada | |
2021-06-07 | timev.rb: moved class rdoc from time.c | Nobuyoshi Nakada | |
2021-05-08 | Shrink timev.rb iseq size | Nobuyoshi Nakada | |
2021-05-07 | What's Here for class Dir (#4472) | Burdette Lamar | |
What's Here for class Dir Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com> | |||
2021-04-29 | Update Time documentation | Burdette Lamar | |
2021-01-13 | Positional and keyword arguments for timezone are exclusive | Nobuyoshi Nakada | |
[Feature #17485] Notes: Merged: https://github.com/ruby/ruby/pull/4010 | |||
2021-01-13 | Added `in:` timezone option to `Time.new` [Feature #17485] | Nobuyoshi Nakada | |
Notes: Merged: https://github.com/ruby/ruby/pull/4010 | |||
2021-01-05 | [DOC] Fix grammar: "is same as" -> "is the same as" | Marcus Stollsteimer | |
2020-12-31 | Moved Time.at to builtin | Nobuyoshi Nakada | |
2020-12-31 | Moved Time.now to builtin | Nobuyoshi Nakada | |
2020-12-31 | Moved time.rb to timev.rb | Nobuyoshi Nakada | |