Kouhei Sutou
null+****@clear*****
Thu May 5 22:45:24 JST 2016
Kouhei Sutou 2016-05-05 22:45:24 +0900 (Thu, 05 May 2016) New Revision: b65c5cee5572255b2aecbbb7ea0b529e4320ef19 https://github.com/groonga/groonga/commit/b65c5cee5572255b2aecbbb7ea0b529e4320ef19 Message: Improve time value inspection Modified files: lib/util.c Modified: lib/util.c (+13 -0) =================================================================== --- lib/util.c 2016-05-05 22:31:33 +0900 (394ac1f) +++ lib/util.c 2016-05-05 22:45:24 +0900 (e6d7a72) @@ -1129,6 +1129,19 @@ grn_inspect(grn_ctx *ctx, grn_obj *buffer, grn_obj *obj) break; case GRN_BULK : switch (obj->header.domain) { + case GRN_DB_TIME : + { + int64_t time_raw; + int64_t sec; + int32_t usec; + + time_raw = GRN_TIME_VALUE(obj); + GRN_TIME_UNPACK(time_raw, sec, usec); + grn_text_printf(ctx, buffer, + "%" GRN_FMT_INT64D ".%d", + sec, usec); + } + return buffer; case GRN_DB_TOKYO_GEO_POINT : case GRN_DB_WGS84_GEO_POINT : grn_geo_point_inspect(ctx, buffer, obj); -------------- next part -------------- HTML����������������������������...下载