MCPcopy Create free account
hub / github.com/coreutils/coreutils / align_nstrftime

Function align_nstrftime

src/ls.c:4109–4117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4107 process by around 17%, compared to letting strftime() handle the %b. */
4108
4109static ptrdiff_t
4110align_nstrftime (char *buf, size_t size, bool recent, struct tm const *tm,
4111 timezone_t tz, int ns)
4112{
4113 char const *nfmt = (use_abformat
4114 ? abformat[recent][tm->tm_mon]
4115 : long_time_format[recent]);
4116 return nstrftime (buf, size, nfmt, tm, tz, ns);
4117}
4118
4119/* Return the expected number of columns in a long-format timestamp,
4120 or zero if it cannot be calculated. */

Callers 2

long_time_expected_widthFunction · 0.85
print_long_formatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected