MCPcopy
hub / github.com/date-fns/date-fns / s

Function s

pkgs/core/src/_lib/format/lightFormatters/index.ts:79–81  ·  view source on GitHub ↗
(date: Date, token: string)

Source from the content-addressed store, hash-verified

77
78 // Second
79 s(date: Date, token: string): string {
80 return addLeadingZeros(date.getSeconds(), token.length);
81 },
82
83 // Fraction of second
84 S(date: Date, token: string): string {

Callers

nothing calls this directly

Calls 1

addLeadingZerosFunction · 0.90

Tested by

no test coverage detected