MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_add_timeabs

Function json_add_timeabs

common/json_stream.c:350–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350void json_add_timeabs(struct json_stream *result, const char *fieldname,
351 struct timeabs t)
352{
353 json_add_primitive_fmt(result, fieldname,
354 "%" PRIu64 ".%09" PRIu64,
355 (u64)t.ts.tv_sec, (u64)t.ts.tv_nsec);
356}
357
358void json_add_timerel(struct json_stream *result, const char *fieldname,
359 struct timerel t)

Callers 6

json_add_runeFunction · 0.85
on_payment_successFunction · 0.85
json_add_payment_successFunction · 0.85
json_add_paymentFunction · 0.85
payment_succeededFunction · 0.85

Calls 1

json_add_primitive_fmtFunction · 0.85

Tested by

no test coverage detected