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

Function fmt_time

devtools/bolt11-cli.c:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static char *fmt_time(const tal_t *ctx, u64 time)
71{
72 /* ctime is not sane. Take pointer, returns \n in string. */
73 time_t t = time;
74 const char *p = ctime(&t);
75
76 return tal_fmt(ctx, "%.*s", (int)strcspn(p, "\n"), p);
77}
78
79static bool sign_b11(const u5 *u5bytes,
80 const u8 *hrpu8,

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected