path: root/ext/date
AgeCommit message (Collapse)Author
2021-07-11[ruby/date] Fixed markups for bold [ci skip]Nobuyoshi Nakada
2021-07-11[ruby/date] Fix comparison with Float::INFINITYJeremy Evans
Fixes [Bug #17945]
2021-04-20[ruby/date] Bump version to 3.1.1Hiroshi SHIBATA
2021-04-13dependency updates卜部昌平
Notes: Merged:
2020-12-23[ruby/date] Define dummy RUBY_TYPED_FROZEN_SHAREABLE for old RubyKenta Murata
2020-12-23Update version for Ractor-safe extensionsHiroshi SHIBATA
2020-12-22[ruby/date] Make Ractor-compatibleMarc-Andre Lafortune
Notes: Merged:
2020-12-22[ruby/date] Deep-freeze internal constants.Marc-Andre Lafortune
Probably not strictly necessary, but good principle anyways. Notes: Merged:
2020-11-12[ruby/date] Numeric already includes ComparableAkira Matsuda
2020-11-12[ruby/date] Updated timezones from timeanddate.comNobuyoshi Nakada
2020-11-12[ruby/date] Honor timezones from timeanddate.comNobuyoshi Nakada
2020-11-12[ruby/date] Fixed the script file name to update zonetab.listNobuyoshi Nakada
2020-11-12[ruby/date] [DOC] declate DateTime class is deprecatedNARUSE, Yui
2020-10-21Don't redefine #rb_intern over and over againStefan Stüben
Notes: Merged:
2020-08-27sed -i '/rmodule.h/d'卜部昌平
Notes: Merged:
2020-08-27sed -i '/r_cast.h/d'卜部昌平
Notes: Merged:
2020-08-27sed -i '\,2/extern.h,d'卜部昌平
Notes: Merged:
2020-08-18Update the license for the default gems to dual licensesHiroshi SHIBATA
2020-07-28Use https instead of httpKazuhiro NISHIYAMA
2020-06-21[ruby/date] [DOC] Mentioned alternative `strptime` methodsNobuyoshi Nakada
2020-06-21[ruby/date] [DOC] Emphasized that `parse` methods are not validatorsNobuyoshi Nakada
2020-06-20[ruby/date] Bump version to 3.0.1Hiroshi SHIBATA
2020-06-20[ruby/date] Promote simple date to complex date to load fractional date ↵Nobuyoshi Nakada
(Fixes #20)
2020-06-20[ruby/date] Fix cannot load complex into simple error when loading marshal ↵Jeremy Evans
dump (Fixes #20) This problem exists because Marshal.load calls Date.allocate, which uses a SimpleDateData. There doesn't seem to be any support for taking an existing Date instance and converting it from SimpleDateData to ComplexDateData. Work around this issue by making Date.allocate use a ComplexDateData. This causes problems in Date#initialize, so remove the Date#initialize method (keeping the date_initialize function, used internally for Date.civil). Alias to Date.civil, since they do the same thing.
2020-05-13ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUGYusuke Endoh
`#define NDEBUG` produces "macro redefined" warnings when it is already defined via cppflags
2020-05-11sed -i 's|ruby/impl|ruby/internal|'卜部昌平
To fix build failures. Notes: Merged:
2020-05-11sed -i s|ruby/3|ruby/impl|g卜部昌平
This shall fix compile errors. Notes: Merged:
2020-04-14[ruby/date] Suppress -Wchar-subscripts warnings by Cygwin gcc 9.3.0Nobuyoshi Nakada
2020-04-08Merge pull request #2991 from shyouhei/ruby.h卜部昌平
Split ruby.h Notes: Merged-By: shyouhei <>
2019-11-30[ruby/date] Bump version to 3.0.0Hiroshi SHIBATA
2019-11-01[ruby/date] Added update-zonetab targetNobuyoshi Nakada
2019-11-01[ruby/date] Add more timezone abbreviationsJeremy Evans
This gets the time zone abbreviations from, and adds unambiguous time zones not already present in zonetab.list. See bin/update-abbr for the program used. This regenerates zonetab.h using (requires gperf). Only one test line is added, just to make sure a new time zone abbreviation is picked up. Fixes Ruby Bug 16286
2019-10-31[ruby/date] Revert "Simplify #inspect"Jeremy Evans
This reverts commit af01edd7d8575f544f647dbe8cde5b6ae535d459. Revert requested by Yui Naruse.
2019-10-31[ruby/date] introduce Date::Error, raise Date::Error for everyglaszig
"invalid <anything>" type of exception
2019-10-24Fix typo causing, month) to failJeremy Evans
Add a test for this case. Notes: Merged:
2019-10-24[ruby/date] Use Gemfile instead of ↵Hiroshi SHIBATA
2019-10-24[ruby/date] Update docszverok
2019-10-24[ruby/date] Simplify #inspectzverok
2019-10-24[ruby/date] Remove taint supportJeremy Evans
Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous versions.
2019-10-24[ruby/date] Support rangesJeremy Evans
Fixes Ruby Bug 12961
2019-10-24[ruby/date] Check for numeric arguments in constructorsJeremy Evans
Previously, the type of these arguments were not checked, leading to NoMethodErrors in some cases, and TypeErrors in other cases, but not showing what field was having the problems. This change makes it so the field with the problem is included in the error message. For the valid_*? methods, this changes them to return false if one of the arguments that should be numeric is not. Fixes Ruby Bug 11935 Fixes Ruby Misc 15298
2019-10-24[ruby/date] Make julian dates roundtrip through to_time.to_dateJeremy Evans
Previously, julian dates would not round trip through to_time.to_date, because Time is always considered gregorian. This converts the Date instance from julian to gregorian before converting to Time, ensuring that an equal date object will be returned if converting that Time back to Date. This does result in julian Date objects showing different day values if converting to Time. Fixes Ruby Bug 8428.
2019-08-12date_parse.c: trim offNobuyoshi Nakada
* ext/date/date_parse.c (date_zone_to_diff): trim off by zone name length.
2019-08-12date_parse.c: avoid copyingNobuyoshi Nakada
* ext/date/date_parse.c (date_zone_to_diff): get rid of copying the whole argument string.
2019-07-22[ruby/date] Describe what is meant by valid in the Date.valid_date? rdocJeremy Evans
2019-07-16Allow mday in Date.iso8601 to be omittedNobuyoshi Nakada
[Bug #12285]
2019-07-14Include ruby/assert.h in ruby/ruby.h so that assertions can be thereNobuyoshi Nakada
2019-04-09date: support for Reiwa, new Japanese eranobu
[Feature #15742] git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-09date_core.c: [DOC] Heisei will be assumed if no-era [ci skip]nobu
git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-03* expand tabs.svn
git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e