MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeZonedProto

Function makeZonedProto

packages/effect/src/internal/dateTime.ts:124–148  ·  view source on GitHub ↗
(
  epochMillis: number,
  zone: DateTime.TimeZone,
  partsUtc?: DateTime.DateTime.PartsWithWeekday
)

Source from the content-addressed store, hash-verified

122
123/** @internal */
124export const makeZonedProto = (
125 epochMillis: number,
126 zone: DateTime.TimeZone,
127 partsUtc?: DateTime.DateTime.PartsWithWeekday
128): DateTime.Zoned => {
129 const self = Object.create(ProtoZoned)
130 self.epochMillis = epochMillis
131 self.zone = zone
132 Object.defineProperty(self, "partsUtc", {
133 value: partsUtc,
134 enumerable: false,
135 writable: true
136 })
137 Object.defineProperty(self, "adjustedEpochMillis", {
138 value: undefined,
139 enumerable: false,
140 writable: true
141 })
142 Object.defineProperty(self, "partsAdjusted", {
143 value: undefined,
144 enumerable: false,
145 writable: true
146 })
147 return self
148}
149
150// =============================================================================
151// guards

Callers 2

dateTime.tsFile · 0.85
ifFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected