Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Using UNDEF_P macro | S-H-GAMELINKS | 2022-11-16 | 1 | -8/+8 |
| | |||||
* | Re-order checks for colons in UTC offset | Nobuyoshi Nakada | 2022-11-15 | 1 | -8/+8 |
| | |||||
* | [Bug #19106] Normalize time at 24:00:00 with a timezone object | Nobuyoshi Nakada | 2022-11-07 | 1 | -8/+16 |
| | |||||
* | [DOC] use the local rdoc reference than the external URI | Nobuyoshi Nakada | 2022-10-11 | 1 | -1/+1 |
| | |||||
* | [DOC] Remove extra page-dir prefix to fix broken link | Nobuyoshi Nakada | 2022-09-03 | 1 | -1/+1 |
| | |||||
* | [DOC] Enhanced RDoc for Time (#6320) | Burdette Lamar | 2022-09-03 | 1 | -231/+36 |
| | | | | | | | | | Treats: #yday #dst? #zone #to_a #strftime | ||||
* | Enhanced RDoc for Tim[DOC] (#6319) | Burdette Lamar | 2022-09-02 | 1 | -158/+200 |
| | |||||
* | [DOC] Enhanced RDoc for Time (#6308) | Burdette Lamar | 2022-08-31 | 1 | -2/+2 |
| | | | More on timezones. | ||||
* | [DOC] Enhanced RDoc for Time (#6294) | Burdette Lamar | 2022-08-28 | 1 | -16/+21 |
| | |||||
* | [DOC] Enhanced RDoc for Time (#6277) | Burdette Lamar | 2022-08-25 | 1 | -47/+98 |
| | | | | | | | | | | 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 | ||||
* | [DOC] Tell RDoc aliases of singleton class | Nobuyoshi Nakada | 2022-08-26 | 1 | -3/+4 |
| | | | | | | Since RDoc C parser cannot capture aliases which are using an expression other than a single variable as the class, use an intermediate variable for the singleton class. | ||||
* | [DOC] Remove extra page-dir prefix | Nobuyoshi Nakada | 2022-08-23 | 1 | -1/+1 |
| | |||||
* | [DOC] Enhanced RDoc for Time (#6267) | Burdette Lamar | 2022-08-22 | 1 | -61/+63 |
| | | | | | | | | | | Treats: #utc #getlocal #getutc #ctime #to_s #inspect | ||||
* | [DOC] Remove extra page-dir prefix | Nobuyoshi Nakada | 2022-08-22 | 1 | -1/+1 |
| | |||||
* | [DOC] Enhanced RDoc for Time (#6255) | Burdette Lamar | 2022-08-21 | 1 | -29/+31 |
| | | | | | | | Treats: #utc #hash #localtime | ||||
* | Expand tabs [ci skip] | Takashi Kokubun | 2022-07-21 | 1 | -264/+264 |
| | | | | [Misc #18891] | ||||
* | [Bug #18922] Normalize time at 24:00:00 UTC | Nobuyoshi Nakada | 2022-07-18 | 1 | -0/+14 |
| | |||||
* | [DOC] Enhanced RDoc for Time (#6118) | Burdette Lamar | 2022-07-12 | 1 | -98/+82 |
| | | | | | | | | | | | | | | Treats: ::utc ::local #to_i #to_f #to_r #usec #nsec #subsec #<=> #eql? | ||||
* | Using TZMODE_SET_LOCALTIME macro | S-H-GAMELINKS | 2022-05-26 | 1 | -6/+6 |
| | |||||
* | [DOC]Some link prefix replace | S-H-GAMELINKS | 2022-04-09 | 1 | -1/+1 |
| | |||||
* | Fix a typo of macro name | Nobuyoshi Nakada | 2022-02-28 | 1 | -1/+1 |
| | | | | | | When the date is 28 Feb in the local timezone and 27 in the UTC, the leap second info is wrongly calculated, and the Time for 1 Mar created with a timezone resulted in an invalid date, 30 Feb. | ||||
* | Speed up and avoid kwarg hash alloc in Time.now | John Hawthorn | 2022-01-12 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | Raise proper exception when month argument is not a name | Nobuyoshi Nakada | 2021-12-25 | 1 | -9/+3 |
| | | | | https://bugs.ruby-lang.org/issues/17485#change-89871 | ||||
* | Check month overflow when marshal | Nobuyoshi Nakada | 2021-12-09 | 1 | -1/+6 |
| | | | | https://hackerone.com/reports/1244185 | ||||
* | Use `Primitive.mandatory_only?` for `Time.at` | Koichi Sasada | 2021-11-15 | 1 | -0/+6 |
| | |||||
* | Tentative fix of subsec to `Time.at` [Bug #18293] | Nobuyoshi Nakada | 2021-11-10 | 1 | -1/+1 |
| | |||||
* | Simplify default values of `Time.at` [Bug #18293] | Nobuyoshi Nakada | 2021-11-10 | 1 | -3/+3 |
| | |||||
* | Fix leap day with UTC offset [Bug #18274] | Nobuyoshi Nakada | 2021-10-28 | 1 | -1/+2 |
| | | | | | `struct vtm::year` is a Ruby integer instance, but not a C integer type. | ||||
* | Prefer the reentrant versions of gmtime and localtime | Nobuyoshi Nakada | 2021-10-14 | 1 | -0/+4 |
| | |||||
* | Include the invalid value in invalid_utc_offset error | Nobuyoshi Nakada | 2021-09-18 | 1 | -15/+17 |
| | |||||
* | Remove unneeded ruby_reset_leap_second_info function declaration (#4824) | S.H | 2021-09-16 | 1 | -1/+0 |
| | |||||
* | Using RB_BIGNUM_TYPE_P macro | S-H-GAMELINKS | 2021-09-11 | 1 | -8/+8 |
| | |||||
* | include/ruby/internal/intern/time.h: add doxygen | 卜部昌平 | 2021-09-10 | 1 | -5/+0 |
| | | | | Must not be a bad idea to improve documents. [ci skip] | ||||
* | Replace RBOOL macro | S-H-GAMELINKS | 2021-09-05 | 1 | -1/+1 |
| | |||||
* | Using RBOOL macro | S.H | 2021-08-02 | 1 | -4/+3 |
| | |||||
* | Added macros for days in month | Nobuyoshi Nakada | 2021-06-27 | 1 | -13/+8 |
| | |||||
* | Shrink monthly tables | Nobuyoshi Nakada | 2021-06-27 | 1 | -6/+6 |
| | |||||
* | [Documentation] Fix typo, formatting in `time.c` | Anton Rieder | 2021-06-22 | 1 | -2/+2 |
| | | | Backticks do not result in code formatting. | ||||
* | Make frozen Time Ractor-shareable | Nobuyoshi Nakada | 2021-06-18 | 1 | -1/+2 |
| | |||||
* | time.c: Check if defined(RUBY_MSVCRT_VERSION) to build on Solaris | Yusuke Endoh | 2021-06-14 | 1 | -1/+1 |
| | | | | Fixes [Bug #17947] | ||||
* | timev.rb: moved class rdoc from time.c | Nobuyoshi Nakada | 2021-06-07 | 1 | -211/+1 |
| | |||||
* | Update Time documentation | Burdette Lamar | 2021-04-29 | 1 | -62/+158 |
| | |||||
* | Refactored sub-seconds normalizations | Nobuyoshi Nakada | 2021-04-01 | 1 | -40/+21 |
| | | | | | | * separated argument to `timespec2timew` from `timespec` to seconds and nano-seconds. * unified nano-seconds and micro-seconds normalizations. | ||||
* | Remove mentions of Bignum in time.c | Jeremy Evans | 2021-02-19 | 1 | -8/+11 |
| | | | | | | | | Move section on internal details out of the class-level documentation, since users do not need to know that. Update it to use Integer(T_BIGNUM) instead of Bignum. Fixes [Misc #17580] | ||||
* | Parse "-00:00" as UTC for the round-trip [Feature #17544] | Nobuyoshi Nakada | 2021-02-16 | 1 | -1/+3 |
| | |||||
* | Fixed time_t conversion modifiers for debug | Nobuyoshi Nakada | 2021-02-11 | 1 | -6/+19 |
| | |||||
* | Compile debugging code for time always | Nobuyoshi Nakada | 2021-02-10 | 1 | -14/+26 |
| | |||||
* | Fixed the signature of find_time_numguess_getter | Nobuyoshi Nakada | 2021-02-10 | 1 | -1/+2 |
| | |||||
* | Added `in:` timezone option to `Time.new` [Feature #17485] | Nobuyoshi Nakada | 2021-01-13 | 1 | -86/+15 |
| | |||||
* | Allow UTC offset without colons per ISO-8601 [Bug #17504] | Nobuyoshi Nakada | 2021-01-13 | 1 | -15/+29 |
| |