# make

Creates a new `RefDateTime` from a DateTime, `Effect`, or `Fx`.

## Signatures

```ts
export declare function make<E = never, R = never>(initial: DateTime.DateTime | Effect.Effect<DateTime.DateTime, E, R> | Fx.Fx<DateTime.DateTime, E, R>): Effect.Effect<RefDateTime<E>, never, R | Scope.Scope>;
```

## Why

Creates date time state with equality suited to that Effect data type, so unchanged values do
not produce redundant pushed updates.

## Ownership and lifetime

The creation Effect requires Scope. It owns initializer acquisition, live source subscriptions,
and cleanup; source failures and services stay on reads and pushes.

## Examples

```ts
import { Effect, DateTime } from "effect"
import * as RefDateTime from "@typed/fx/RefDateTime"

const program = Effect.gen(function* () {
  const value = yield* RefDateTime.make(DateTime.nowUnsafe())
  const current = yield* value
  console.log(current) // DateTime(...)
})
```
