MCPcopy Index your code
hub / github.com/adobe/react-spectrum / dateTimeToString

Function dateTimeToString

packages/@internationalized/date/src/string.ts:232–235  ·  view source on GitHub ↗
(date: AnyDateTime)

Source from the content-addressed store, hash-verified

230}
231
232export function dateTimeToString(date: AnyDateTime): string {
233 // @ts-ignore
234 return `${dateToString(date)}T${timeToString(date)}`;
235}
236
237function offsetToString(offset: number) {
238 let sign = Math.sign(offset) < 0 ? '-' : '+';

Callers 3

toStringMethod · 0.90
parseZonedDateTimeFunction · 0.85
zonedDateTimeToStringFunction · 0.85

Calls 2

dateToStringFunction · 0.85
timeToStringFunction · 0.85

Tested by

no test coverage detected