Commit Graph

38 Commits

Author SHA1 Message Date
Yukihiro Matsumoto cc0f249c17 Time.new may not take any argument 2012-08-02 21:53:23 +09:00
Yukihiro Matsumoto 1a54120869 add cast to pacify optimizer 2012-08-01 01:56:37 +09:00
Yukihiro Matsumoto 1d64ecf0fa float do not have enough precision if MRB_USE_FLOAT is set 2012-07-31 23:56:35 +09:00
Max Anselm 5a4beeed2d Make all(?) void casts explicit for C++ 2012-07-29 19:48:48 -04:00
Yukihiro Matsumoto 328353b287 treat exceptional usec value 2012-07-23 23:25:00 +09:00
Yukihiro Matsumoto cac740c750 remove duplicated variable declaration 2012-07-23 08:45:53 +09:00
Yukihiro Matsumoto 8b6f6faf1e separate sec and usec in mrb_time_plus 2012-07-23 08:38:24 +09:00
Yukihiro Matsumoto 8dc69cf216 time.c: separate sec and usec to keep precisions 2012-07-23 07:33:18 +09:00
Yukihiro Matsumoto a9a91c3561 Time.at should take optional second argument 2012-07-22 23:16:40 +09:00
Yukihiro Matsumoto 158e1e6fce should remove memset initialization; update 7496625 2012-07-09 13:28:13 +09:00
Yukihiro Matsumoto 7496625fc3 initialize stuctures on stack without memset(); close #350 2012-07-09 11:50:48 +09:00
Masaki Muranaka d534f26f16 Use sizeof to get char array sizes. 2012-06-27 10:36:39 +09:00
Yukihiro Matsumoto f045e64675 reduce calling mrb_str_new_cstr() to avoid strlen(); #301 2012-06-23 13:51:50 +09:00
Yukihiro Matsumoto 76f7aecff3 use ENABLE/DISABLE instead of INCLUDE for configuration macro names 2012-06-15 15:34:49 +09:00
Yukihiro Matsumoto 8c838de4a8 Time class made optinal 2012-06-15 14:07:24 +09:00
Yukihiro Matsumoto 41baf125f2 Time#- should return time if operand is a number 2012-06-05 08:58:50 +09:00
Daniel Bovensiepen 7bedf583a0 Add Time#utc 2012-06-05 03:11:41 +08:00
Yukihiro Matsumoto ab3c178a5f add Time#getlocal/getgm/getutc 2012-06-04 08:34:56 +09:00
Yukihiro Matsumoto 531124f057 time.c add ISO section numbers 2012-06-04 08:34:24 +09:00
Yukihiro Matsumoto 5b47ec7a8b remove a blank line 2012-06-03 15:08:43 +09:00
Yukihiro Matsumoto 48ff4f2d36 time - time should not return time, but number 2012-06-03 15:05:18 +09:00
Yukihiro Matsumoto ad9e841c53 made mrb_get_args() better (optinal args, type checks); close #173 #176 2012-05-24 01:09:36 +09:00
Yukihiro Matsumoto 826386a13a use mrb_int for struct tm fractions 2012-05-21 17:16:33 +09:00
Yukihiro Matsumoto b706b4cba4 gmtime_r emulated by gmtime_s should return struct tm*; close #146 2012-05-17 02:39:28 +09:00
mattn 25d787286b fix #127 on mingw. 2012-05-16 09:32:30 +09:00
Yukihiro Matsumoto 50a1d30291 emulate gmtime_r/localtime_r by gmtime_s/localtime_s on Windows 2012-05-13 19:46:57 +09:00
mattn 46d8941db6 fix #ifdef to pass on windows. 2012-05-08 11:17:02 +09:00
Yukihiro Matsumoto 5684a38382 rename current_time -> current_mrb_time 2012-05-08 01:19:13 +09:00
Yukihiro Matsumoto cad39f2581 add 1usec to differentiate two times 2012-05-08 01:18:30 +09:00
Yukihiro Matsumoto aae293a002 rename macros NO_USE_ -> NO_ 2012-05-08 01:11:22 +09:00
Yukihiro Matsumoto de262d5ba8 update time configuration; now config macros can be supplied by -D compiler option 2012-05-07 23:54:45 +09:00
Yukihiro Matsumoto 395cb9c1e5 use portable gmtime 2012-05-07 23:37:12 +09:00
Yukihiro Matsumoto 4f1f243fe7 initialize_copy: copy destination object may not be intialized 2012-05-07 18:02:32 +09:00
mattn 5482c2eeb3 remove warning. 2012-05-07 15:44:10 +09:00
mattn 5143314297 time functions on windows. 2012-05-07 14:24:23 +09:00
Yukihiro Matsumoto 4f9a7e90ad test_time should pass 2012-05-06 02:15:25 +09:00
Yukihiro Matsumoto b0e94d8c14 Time class available; based on code from @beoran; sorry for jumbo patch 2012-05-06 00:52:22 +09:00
Yukihiro Matsumoto e806f55e69 move mrb_str_new prototype to mruby.h 2012-05-04 22:39:21 +09:00