///|
test {
// creates a UTC+8 fixed time zone.
let zone = @time.fixed_zone("Asia/Shanghai", 8 * 60 * 60)
// creates a ZonedDateTime from unix second and time zone.
let date_time = @time.unix(1714227729L, nanosecond=1000, zone~)
inspect(date_time, content="2024-04-27T22:22:09.000001+08:00[Asia/Shanghai]")
}#deprecated("`PlainDate::from_json` is deprecated, use `@moonbitlang/core/json.FromJson::from_json` instead.")
fn PlainDate::from_json(json : Json, path : JsonPath) -> PlainDate raise JsonDecodeErrorimpl Show for PlainDateTimeimpl FromStr for PlainDateTime#deprecated("`PlainDateTime::compare` is deprecated, use `Compare::compare` instead.")
fn PlainDateTime::compare(PlainDateTime, PlainDateTime) -> Int#deprecated("`PlainDateTime::equal` is deprecated, use `Eq::equal` instead.")
fn PlainDateTime::equal(PlainDateTime, PlainDateTime) -> Bool#deprecated("`PlainDateTime::from_json` is deprecated, use `@moonbitlang/core/json.FromJson::from_json` instead.")
fn PlainDateTime::from_json(Json, JsonPath) -> PlainDateTime raise JsonDecodeError#deprecated("`PlainDateTime::from_str` is deprecated, use `@moonbitlang/core/string.FromStr::from_str` instead.")
fn PlainDateTime::from_str(str : StringView) -> PlainDateTime raise#deprecated("Use `PlainDateTime::from_str` instead")
fn PlainDateTime::from_string(str : String) -> PlainDateTime raisefn PlainDateTime::from_unix_second(second : Int64, nanosecond : Int, offset : ZoneOffset) -> PlainDateTime raise#deprecated("`PlainDateTime::not_equal` is deprecated, use `Eq::not_equal` instead.")
fn PlainDateTime::not_equal(x : PlainDateTime, y : PlainDateTime) -> Boolfn PlainDateTime::of(year : Int, month : Int, day : Int, hour? : Int, minute? : Int, second? : Int, nanosecond? : Int) -> PlainDateTime raise#deprecated("`PlainDateTime::op_ge` is deprecated, use `Compare::op_ge` instead.")
fn PlainDateTime::op_ge(x : PlainDateTime, y : PlainDateTime) -> Bool#deprecated("`PlainDateTime::op_gt` is deprecated, use `Compare::op_gt` instead.")
fn PlainDateTime::op_gt(x : PlainDateTime, y : PlainDateTime) -> Bool#deprecated("`PlainDateTime::op_le` is deprecated, use `Compare::op_le` instead.")
fn PlainDateTime::op_le(x : PlainDateTime, y : PlainDateTime) -> Bool#deprecated("`PlainDateTime::op_lt` is deprecated, use `Compare::op_lt` instead.")
fn PlainDateTime::op_lt(x : PlainDateTime, y : PlainDateTime) -> Bool#deprecated("`PlainDateTime::output` is deprecated, use `Show::output` instead.")
fn PlainDateTime::output(self : PlainDateTime, logger : &Logger) -> Unit#deprecated("`PlainDateTime::to_json` is deprecated, use `ToJson::to_json` instead.")
fn PlainDateTime::to_json(PlainDateTime) -> Json#deprecated("`PlainDateTime::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
fn PlainDateTime::to_repr(PlainDateTime) -> Repr#deprecated("`PlainTime::from_json` is deprecated, use `@moonbitlang/core/json.FromJson::from_json` instead.")
fn PlainTime::from_json(json : Json, path : JsonPath) -> PlainTime raise JsonDecodeErrorimpl Compare for ZoneOffsetimpl Eq for ZoneOffsetimpl Show for ZoneOffset#deprecated("`ZoneOffset::compare` is deprecated, use `Compare::compare` instead.")
fn ZoneOffset::compare(self : ZoneOffset, other : ZoneOffset) -> Int#deprecated("`ZoneOffset::equal` is deprecated, use `Eq::equal` instead.")
fn ZoneOffset::equal(self : ZoneOffset, other : ZoneOffset) -> Bool#deprecated("`ZoneOffset::not_equal` is deprecated, use `Eq::not_equal` instead.")
fn ZoneOffset::not_equal(x : ZoneOffset, y : ZoneOffset) -> Boolfn ZoneOffset::of(hours? : Int, minutes? : Int, seconds? : Int, abbrev? : String, dst? : Bool) -> ZoneOffset raise#deprecated("`ZoneOffset::op_ge` is deprecated, use `Compare::op_ge` instead.")
fn ZoneOffset::op_ge(x : ZoneOffset, y : ZoneOffset) -> Bool#deprecated("`ZoneOffset::op_gt` is deprecated, use `Compare::op_gt` instead.")
fn ZoneOffset::op_gt(x : ZoneOffset, y : ZoneOffset) -> Bool#deprecated("`ZoneOffset::op_le` is deprecated, use `Compare::op_le` instead.")
fn ZoneOffset::op_le(x : ZoneOffset, y : ZoneOffset) -> Bool#deprecated("`ZoneOffset::op_lt` is deprecated, use `Compare::op_lt` instead.")
fn ZoneOffset::op_lt(x : ZoneOffset, y : ZoneOffset) -> Bool#deprecated("`ZoneOffset::output` is deprecated, use `Show::output` instead.")
fn ZoneOffset::output(self : ZoneOffset, logger : &Logger) -> Unit#deprecated("`ZoneOffset::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
fn ZoneOffset::to_repr(ZoneOffset) -> Reprimpl Show for ZonedDateTimefn ZonedDateTime::from_unix_second(second : Int64, nanosecond? : Int, zone? : Zone) -> ZonedDateTime raisefn ZonedDateTime::of(year : Int, month : Int, day : Int, hour? : Int, minute? : Int, second? : Int, nanosecond? : Int, zone? : Zone) -> ZonedDateTime raise#deprecated("`ZonedDateTime::output` is deprecated, use `Show::output` instead.")
fn ZonedDateTime::output(self : ZonedDateTime, logger : &Logger) -> Unit#deprecated("`ZonedDateTime::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
fn ZonedDateTime::to_repr(ZonedDateTime) -> Reprfn date_time(year : Int, month : Int, day : Int, hour? : Int, minute? : Int, second? : Int, nanosecond? : Int, zone? : Zone) -> ZonedDateTime raiseInstall
Download zipexperimental packages for moonbitlang/core