Skip to content

Commit d942e41

Browse files
schlubbibyroot
authored andcommitted
Remove comments on Ruby Time object creation
Removed comments explaining the Ruby Time object construction.
1 parent 1d16cf8 commit d942e41

File tree

1 file changed

+0
-4
lines changed
  • contrib/ruby/ext/trilogy-ruby

1 file changed

+0
-4
lines changed

contrib/ruby/ext/trilogy-ruby/cast.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ static void cstr_from_value(char *buf, const trilogy_value_t *value, const char
7878
buf[value->data_len] = 0;
7979
}
8080

81-
// Build a Ruby Time object via rb_time_timespec_new (C API) instead of
82-
// rb_funcall(rb_cTime, :utc/:local, 7, ...) to skip method dispatch,
83-
// 7x INT2NUM, and Ruby's internal time_arg() + timegmw() conversion.
84-
//
8581
// For UTC: uses the Hinnant civil_to_days algorithm (C++20 std::chrono
8682
// foundation, handles the full MySQL 1000-9999 year range without timegm).
8783
// For local: uses mktime (standard C) which consults the system timezone.

0 commit comments

Comments
 (0)