| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-10-10 | Fixed a bug in `mruby-time` with `NO_GETTIMEOFDAT`. | Yukihiro "Matz" Matsumoto | |
| 2019-09-25 | Fix `MRB_WITHOUT_FLOAT` reversal; fix #4598 | dearblue | |
| 2019-08-05 | Use new specifiers/modifiers of `mrb_vfromat()` | KOBAYASHI Shuji | |
| The binary sizes (gems are only `mruby-bin-mruby`) are reduced slightly in my environment than before the introduction of new specifiers/modifiers (5116789a) with this change. ------------+-------------------+-------------------+-------- BINARY | BEFORE (5116789a) | AFTER (This PR) | RATIO ------------+-------------------+-------------------+-------- mruby | 593416 bytes | 593208 bytes | -0.04% libmruby.a | 769048 bytes | 767264 bytes | -0.23% ------------+-------------------+-------------------+-------- BTW, I accidentally changed `tasks/toolchains/visualcpp.rake` at #4613, so I put it back. | |||
| 2019-08-03 | Suppress compiler warnings for mruby-time; fix #4600 | dearblue | |
| Warnings: - If `MRB_TIME_T_UINT` is defined, the compiler issues a warning with an integer comparison of different signs. - It is mentioned that the `usec` variable passed to the `mrb_to_time_t()` function may not be initialized | |||
| 2019-07-31 | Fix UTC offset representation in `Time#to_s` on some environments; ref #4604 | KOBAYASHI Shuji | |
| Use own implementation to calculate UTC offset on Visual Studio 2015 or earlier or MinGW because `strftime("%z")` on these environments does not conform C99. | |||
| 2019-07-29 | Fix Time#to_s encoding on Windows | Sutou Kouhei | |
| strftime() on Windows returns locale encoding time zone for "%z" even if MSDN says "%z" is "The offset from UTC in ISO 8601 format; no characters if time zone is unknown" in MSDN: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l?view=vs-2019 So we need to convert encoding of string from strftime(). | |||
| 2019-07-27 | Fix the lack of precision for `Time`; ref d74355061 | dearblue | |
| - `Time.local` and `Time.utc` are able to use with `MRB_INT16 + MRB_WITHOUT_FLOAT`. - `time_t` is converted directly from the Ruby object. - `time + sec` and` time - sec` are not affected by the precision of `mrb_float`. Similarly, calculations are possible with `MRB_INT16 + MRB_WITHOUT_FLOAT`. | |||
| 2019-07-27 | Fix mruby-time with `MRB_WITHOUT_FLOAT`; ref d74355061 | dearblue | |
| 2019-07-22 | Fix `mruby-time` to work with `MRB_WITHOUT_FLOAT`; ref #4576 | Yukihiro "Matz" Matsumoto | |
| As a side effect, `mrb_time_at()` now takes `mrb_int` instead of `double` as time arguments. | |||
| 2019-07-22 | Improve conflict error message of `Time` and `Math`; ref #4576 | Yukihiro "Matz" Matsumoto | |
| 2019-07-14 | Error needed/conflicts configuration | dearblue | |
| The purpose is to clarify the error if there is a needed/conflicts configuration at compile time. | |||
| 2019-05-24 | Fix the order of "expected" and "actual" in `mruby-time` test | KOBAYASHI Shuji | |
| 2019-05-16 | Refactor `time.c` regarding memory allocation. | Yukihiro "Matz" Matsumoto | |
| 2019-05-14 | Refine `Time#(to_s|inspect)` | KOBAYASHI Shuji | |
| For the following reasons: - Ruby compatibility. - Add UTC offset (time zone informations was not included by #4433). - More readable. Example: Before this patch: p Time.gm(2003,4,5,6,7,8,9) #=> Sat Apr 5 06:07:08 2003 p Time.local(2013,10,28,16,27,48) #=> Mon Oct 28 16:27:48 2013 After this patch: p Time.gm(2003,4,5,6,7,8,9) #=> 2003-04-05 06:07:08 UTC p Time.local(2013,10,28,16,27,48) #=> 2013-10-28 16:27:48 +0900 Implementation: I use `strftime(3)` because UTC offset can be added and program size become smaller than the other implementations (using `sprintf(3)`, self conversion etc) in my environment. | |||
| 2019-05-13 | Fix `Time#(asctime|ctime)` according to ISO Ruby | KOBAYASHI Shuji | |
| - A leading charactor for day is space. - Time zone does not included. Before this patch: Time.gm(1982,3,4,5,6,7).asctime #=> "Thu Mar 04 05:06:07 UTC 1982" After this patch: Time.gm(1982,3,4,5,6,7).asctime #=> "Thu Mar 4 05:06:07 1982" | |||
| 2019-05-12 | Fix missing assertions in `mruby-time` test | KOBAYASHI Shuji | |
| 2019-03-02 | Free `struct mrb_time` before error; fix #4308 | Yukihiro "Matz" Matsumoto | |
| To avoid memory leak from `time_update_datetime`. | |||
| 2019-01-26 | fix Time about carry-up and carry-down | takkaw | |
| 2019-01-08 | Export Time creation API | take-cheeze | |
| 2018-12-23 | Suppress _MSC_VER warns for mingw32 | dearblue | |
| 2018-12-19 | Added Android Hack to `time.c`. | Yukihiro "Matz" Matsumoto | |
| Android bionic defines `TIME_UTC` but does not provide `timespec_get`. | |||
| 2018-01-30 | Merge pull request #3936 from ken-mu/uint | Yukihiro "Matz" Matsumoto | |
| mruby-time: support time_t is uint | |||
| 2018-01-29 | mruby-time: remove ifdef for mktime error handling | ken-mu | |
| 2018-01-28 | mruby-time: support time_t is uint | ken-mu | |
| 2018-01-24 | `Time.new(1969,12,31,23,59,59)` may or may not faile; ref #3932 | Yukihiro "Matz" Matsumoto | |
| On some platform and timezone it is a valid time spec. | |||
| 2018-01-21 | mruby-time: remove test case less than Dec 31 23:59:58 1969 | ken-mu | |
| 2018-01-20 | mruby-time: Fix mruby specific timegm() cannot return minus | ken-mu | |
| 2017-09-27 | fix: mrbgems\mruby-time\src\time.c(641): warning C4244: '=': conversion from ↵ | Tomasz Dąbrowski | |
| 'mrb_int' to 'int', possible loss of data | |||
| 2017-09-27 | fix: mrbgems\mruby-time\src\time.c(372): warning C4244: 'function': ↵ | Tomasz Dąbrowski | |
| conversion from 'mrb_int' to 'double', possible loss of data | |||
| 2017-09-25 | change DISABLE_STDIO to MRB_DISABLE_STDIO in mruby-time/time.c | Tomasz Dabrowski | |
| 2017-07-13 | Use `floor()` to implement `round()` on WIN32 platform. | Yukihiro "Matz" Matsumoto | |
| This change was suggested by Akira Kakuto. | |||
| 2017-07-13 | Define `round()` only on WIN32 platform; fix #3741 | Yukihiro "Matz" Matsumoto | |
| 2017-04-25 | Add explicit cast from double to long. | Yukihiro "Matz" Matsumoto | |
| 2017-04-25 | Avoid use of `snprintf()` when DISABLE_STDIO is set; fix #3632 | Yukihiro "Matz" Matsumoto | |
| ref #3492 #3515 #3517 | |||
| 2017-04-03 | Correctly handle large negative usec value. | Clayton Smith | |
| 2017-04-03 | Unify `else` clause style | Yukihiro "Matz" Matsumoto | |
| 2017-04-01 | Improve Time.new() performance using division; fix #3561 | Yukihiro "Matz" Matsumoto | |
| 2017-03-29 | Should raise FloatDomainError | ksss | |
| 2017-03-28 | Fix infinity loop | ksss | |
| And some cases should raise FloatDomainError | |||
| 2017-01-09 | Validate tm values before timegm(); close #3368 | Yukihiro "Matz" Matsumoto | |
| This issue was reported by https://hackerone.com/volc | |||
| 2017-01-02 | add explicit casts | Yukihiro "Matz" Matsumoto | |
| 2017-01-01 | Initialize potentially uninitialized variable tsec. | Yukihiro "Matz" Matsumoto | |
| 2016-12-06 | Raise an exception in time_update_datetime(). | Yukihiro "Matz" Matsumoto | |
| The function used to return NULL on error, but not checked in the caller site. | |||
| 2016-11-27 | Add NULL checks for Time data retrieval | Yukihiro "Matz" Matsumoto | |
| 2016-11-26 | removed failing test for Time#initialize; ref #3295 | Yukihiro "Matz" Matsumoto | |
| 2016-11-25 | Fix null pointer dereference in mrb_time_initialize | Bouke van der Bijl | |
| Reported by https://hackerone.com/raydot | |||
| 2016-11-24 | Time#initialize_copy: Check if source time is initialized. | Yukihiro "Matz" Matsumoto | |
| To prevent crash from nasty code like: class Time def initialize end end a = Time.new b = Time.new a.initialize_copy b | |||
| 2016-04-04 | fix possible memory leak in mruby-time gem | Yukihiro "Matz" Matsumoto | |
| 2015-11-27 | Implemented round(double) function within mruby-time gem, for it is missing on | Paolo Bosetti | |
| VisualStudio compilers where _MSC_ver < 1800 | |||
| 2015-11-27 | include changed from by quotes ("") to by brackets (<>); close #3032 | Yukihiro "Matz" Matsumoto | |
