Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Convert time component strings to integers more strictly | Nobuyoshi Nakada | 2021-01-12 | 1 | -4/+4 |
| | | | | https://bugs.ruby-lang.org/issues/17485#change-89871 | ||||
* | Show seconds of utc_offset if not zero | Nobuyoshi Nakada | 2021-01-12 | 1 | -1/+8 |
| | |||||
* | get_tmopt is no longer used | Nobuyoshi Nakada | 2020-12-31 | 1 | -17/+0 |
| | |||||
* | Moved Time.at to builtin | Nobuyoshi Nakada | 2020-12-31 | 1 | -61/+6 |
| | |||||
* | Moved Time.now to builtin | Nobuyoshi Nakada | 2020-12-31 | 1 | -16/+3 |
| | |||||
* | Moved time.rb to timev.rb | Nobuyoshi Nakada | 2020-12-31 | 1 | -1/+1 |
| | |||||
* | Add time.rb as builtin | Nobuyoshi Nakada | 2020-12-31 | 1 | -0/+5 |
| | |||||
* | Removed deprecated Time#succ | Nobuyoshi Nakada | 2020-12-07 | 1 | -35/+0 |
| | |||||
* | Subsecond of Time::tm should be 0 | Nobuyoshi Nakada | 2020-11-28 | 1 | -0/+1 |
| | |||||
* | Use rb_intern_const instead of rb_intern in Init functions | Nobuyoshi Nakada | 2020-10-21 | 1 | -1/+1 |
| | | | | | | | | | ``` find . -name \*.o -exec nm {} + |& sed '/Init_.*\.rbimpl_id/!d;s/^.* b //;s/\.[1-9][0-9]*$//;s/\.rbimpl_id$//' | uniq ``` should be empty. | ||||
* | Don't redefine #rb_intern over and over again | Stefan Stüben | 2020-10-21 | 1 | -23/+20 |
| | |||||
* | Fix Time#ceil when result should be the same as the receiver | Jeremy Evans | 2020-07-28 | 1 | -1/+4 |
| | | | | Fixes [Bug #17025] | ||||
* | Use https instead of http | Kazuhiro NISHIYAMA | 2020-07-28 | 1 | -2/+2 |
| | |||||
* | Fix Time#to_a behavior with timezone [Bug #17046] | S.H | 2020-07-24 | 1 | -1/+1 |
| | |||||
* | Ensure time object meets a given condition [Bug #17042] | Nobuyoshi Nakada | 2020-07-23 | 1 | -15/+11 |
| | |||||
* | Merge pull request #3352 from S-H-GAMELINKS/bug/17042-strftime | S.H | 2020-07-23 | 1 | -0/+4 |
| | | | Fix Time#strftime with timezone [Bug #17042] | ||||
* | [DOC] time.c document updated. | Tanaka Akira | 2020-07-21 | 1 | -113/+130 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fraction -> subsecond for consistency with method name * The sentence, "A non-portable feature allows the offset to be negative on some systems.", is removed. Time before 1970 should work portably now. If localtime() doesn't work before 1970, Ruby should extrapolate it. * Time::new -> Time.new "::" for method call is not common notation now. * Time#to_i truncates subsecond * Time#to_f approximates a value in Time object * Time#to_r The sentence, "You can use this method to convert _time_ to another Epoch.", is removed. It is not clear because no actual example of "another Epoch" is given. * Time#usec truncates fraction of microseconds. * Time#nsec truncates fraction of nanoseconds. * describe Time#inspect shows subsecond since Ruby 2.7.0. | ||||
* | Fixed yday and wday with timezone [Bug #17024] | Nobuyoshi Nakada | 2020-07-12 | 1 | -4/+9 |
| | |||||
* | find_time_t: reset status before goto | 卜部昌平 | 2020-06-29 | 1 | -0/+1 |
| | |||||
* | add UNREACHABLE_RETURN | 卜部昌平 | 2020-06-29 | 1 | -0/+1 |
| | | | | | | Not every compilers understand that rb_raise does not return. When a function does not end with a return statement, such compilers can issue warnings. We would better tell them about reachabilities. | ||||
* | time_mload: do not goto into a branch | 卜部昌平 | 2020-06-29 | 1 | -2/+4 |
| | | | | | I'm not necessarily against every goto in general, but jumping into a branch is definitely a bad idea. Better refactor. | ||||
* | indent [ci skip] | 卜部昌平 | 2020-06-29 | 1 | -57/+57 |
| | |||||
* | find_time_t: do not goto into a branch | 卜部昌平 | 2020-06-29 | 1 | -29/+31 |
| | | | | | I'm not necessarily against every goto in general, but jumping into a branch is definitely a bad idea. Better refactor. | ||||
* | utc_offset_arg: do not goto into a branch | 卜部昌平 | 2020-06-29 | 1 | -2/+3 |
| | | | | | I'm not necessarily against every goto in general, but jumping into a branch is definitely a bad idea. Better refactor. | ||||
* | vtm_add_offset: do not goto into a branch | 卜部昌平 | 2020-06-29 | 1 | -2/+0 |
| | | | | | I'm not necessarily against every goto in general, but jumping into a branch is definitely a bad idea. Better refactor. | ||||
* | num_exact: do not goto into a branch | 卜部昌平 | 2020-06-29 | 1 | -29/+19 |
| | | | | | I'm not necessarily against every goto in general, but jumping into a branch is definitely a bad idea. Better refactor. | ||||
* | Append subsec part instead of creating new string | Nobuyoshi Nakada | 2020-06-03 | 1 | -1/+1 |
| | |||||
* | sed -i 's|ruby/impl|ruby/internal|' | 卜部昌平 | 2020-05-11 | 1 | -1/+1 |
| | | | | To fix build failures. | ||||
* | sed -i s|ruby/3|ruby/impl|g | 卜部昌平 | 2020-05-11 | 1 | -1/+1 |
| | | | | This shall fix compile errors. | ||||
* | Merge pull request #2991 from shyouhei/ruby.h | 卜部昌平 | 2020-04-08 | 1 | -1/+1 |
| | | | Split ruby.h | ||||
* | Clarify Time::at documentation for in: argument | zverok | 2020-03-09 | 1 | -2/+9 |
| | |||||
* | Update docs for Time#at method [ci skip] | प्रथमेश Sonpatki | 2020-02-27 | 1 | -1/+6 |
| | | | Add docs about all possible options for the `in` argument. | ||||
* | Don't refer Date in the document for Time. | Tanaka Akira | 2020-02-10 | 1 | -2/+3 |
| | |||||
* | more on NULL versus functions. | 卜部昌平 | 2020-02-07 | 1 | -2/+2 |
| | | | | | | Function pointers are not void*. See also ce4ea956d24eab5089a143bba38126f2b11b55b6 8427fca49bd85205f5a8766292dd893f003c0e48 | ||||
* | ruby_reset_timezone resets leap_second_info. | Tanaka Akira | 2020-01-29 | 1 | -0/+2 |
| | | | | [Bug #15177] | ||||
* | Extract a function, ruby_reset_timezone(). | Tanaka Akira | 2020-01-28 | 1 | -0/+6 |
| | | | | | Initial implementation of ruby_reset_timezone() assigns ruby_tz_uptodate_p to false. | ||||
* | Simplify obj2ubits checks | John Hawthorn | 2020-01-13 | 1 | -10/+6 |
| | | | | | If this value is less than zero, then the mask check is guaranteed to fail as well, so we might as well rely on that. | ||||
* | Avoid rb_check_string_type in month_arg | John Hawthorn | 2020-01-13 | 1 | -0/+4 |
| | | | | | This will usually receive a fixnum so we should check that first instead of the more expensive rb_check_string_type check. | ||||
* | Store "UTC" and "" fstring as globals in time.c | John Hawthorn | 2020-01-13 | 1 | -6/+13 |
| | |||||
* | decouple internal.h headers | 卜部昌平 | 2019-12-26 | 1 | -11/+19 |
| | | | | | | | | | | | | | | | | | | Saves comitters' daily life by avoid #include-ing everything from internal.h to make each file do so instead. This would significantly speed up incremental builds. We take the following inclusion order in this changeset: 1. "ruby/config.h", where _GNU_SOURCE is defined (must be the very first thing among everything). 2. RUBY_EXTCONF_H if any. 3. Standard C headers, sorted alphabetically. 4. Other system headers, maybe guarded by #ifdef 5. Everything else, sorted alphabetically. Exceptions are those win32-related headers, which tend not be self- containing (headers have inclusion order dependencies). | ||||
* | [DOC] Fix typo in Time#inspect | Marcus Stollsteimer | 2019-12-24 | 1 | -2/+2 |
| | |||||
* | Actualize Time#inspect docs | zverok | 2019-12-22 | 1 | -5/+6 |
| | |||||
* | Fixed misspellings | Nobuyoshi Nakada | 2019-12-20 | 1 | -1/+1 |
| | | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec. |