Package: effect
Module: DateTime
Create a DateTime from one of the following:
DateTimeDate instance (invalid dates will throw an IllegalArgumentException)number of milliseconds since the Unix epochstring that can be parsed by Date.parseIf the input is invalid, None will be returned.
Example
import { DateTime } from "effect"
// from Date
DateTime.make(new Date())
// from parts
DateTime.make({ year: 2024 })
// from string
DateTime.make("2024-01-01")
Signature
declare const make: <A extends DateTime.Input>(input: A) => Option.Option<DateTime.PreserveZone<A>>
Since v3.6.0