MCPcopy
hub / github.com/spencermountain/spacetime / SpacetimeConstructorOptions

Interface SpacetimeConstructorOptions

types/constructors.d.ts:3–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { Spacetime, ParsableDate, TimezoneSet } from './types.js'
2
3export interface SpacetimeConstructorOptions {
4 /** javascript dates use millisecond-epochs, instead of second-epochs, like some other languages. This is a common bug, and by default spacetime warns if you set an epoch within January 1970. to disable set to true */
5 silent?: boolean
6
7 /** the day number, between 0-6, that the week starts on. (Sunday is 0) */
8 weekStart?: number
9
10 /** pass true to change parsing behaviour to dd/mm/yyyy. By default American interpretation will be used. */
11 dmy?: boolean
12}
13
14export interface SpacetimeConstructor {
15 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected