[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Temporal [Back]  [Original]

Temporal - JavaScript | MDN

MDN Web Docs

View in English Always switch to English

Temporal

Want more browser support for this feature? Tell us why.

Experimental:

Temporal Date

Temporal new Temporal Temporal Math

Temporal API 200 API

JavaScript Date Date API 2010 Java java.util.Date JavaScript Date

Date API

Date 2

  • Date

Date UTC 2 8

Date 2 2 12 4 1 Date

Date API Temporal

API

Temporal Intl

Temporal.Now

Temporal

Instant ZonedDateTime PlainDateTime PlainDate PlainTime PlainYearMonth PlainMonthDay
Instant()
Instant.from()
Instant.fromEpochMilliseconds()
Instant.fromEpochNanoseconds()
ZonedDateTime()
ZonedDateTime.from()
PlainDateTime()
PlainDateTime.from()
PlainDate()
PlainDate.from()
PlainTime()
PlainTime.from()
PlainYearMonth()
PlainYearMonth.from()
PlainMonthDay()
PlainMonthDay.from()
with()
withCalendar()
withTimeZone()
withPlainTime()
with()
withCalendar()
withPlainTime()
with()
withCalendar()
with() with() with()
add()
subtract()
since()
until()
add()
subtract()
since()
until()
add()
subtract()
since()
until()
add()
subtract()
since()
until()
add()
subtract()
since()
until()
add()
subtract()
since()
until()
round() round() round() round()
equals()
Instant.compare()
equals()
ZonedDateTime.compare()
equals()
PlainDateTime.compare()
equals()
PlainDate.compare()
equals()
PlainTime.compare()
equals()
PlainYearMonth.compare()
equals()
toJSON()
toLocaleString()
toString()
valueOf()
toJSON()
toLocaleString()
toString()
valueOf()
toJSON()
toLocaleString()
toString()
valueOf()
toJSON()
toLocaleString()
toString()
valueOf()
toJSON()
toLocaleString()
toString()
valueOf()
toJSON()
toLocaleString()
toString()
valueOf()
toJSON()
toLocaleString()
toString()
valueOf()

Instant ZonedDateTime PlainDateTime PlainDate PlainTime PlainYearMonth PlainMonthDay
calendarId calendarId calendarId calendarId calendarId
era
eraYear
year
inLeapYear
monthsInYear
daysInYear
era
eraYear
year
inLeapYear
monthsInYear
daysInYear
era
eraYear
year
inLeapYear
monthsInYear
daysInYear
era
eraYear
year
inLeapYear
monthsInYear
daysInYear
month
monthCode
daysInMonth
month
monthCode
daysInMonth
month
monthCode
daysInMonth
month
monthCode
daysInMonth
monthCode
weekOfYear
yearOfWeek
daysInWeek
weekOfYear
yearOfWeek
daysInWeek
weekOfYear
yearOfWeek
daysInWeek
day
dayOfWeek
dayOfYear
day
dayOfWeek
dayOfYear
day
dayOfWeek
dayOfYear
day
hour
minute
second
millisecond
microsecond
nanosecond
hour
minute
second
millisecond
microsecond
nanosecond
hour
minute
second
millisecond
microsecond
nanosecond
timeZoneId
offset
offsetNanoseconds
hoursInDay
getTimeZoneTransition()
startOfDay()
epochMilliseconds
epochNanoseconds
epochMilliseconds
epochNanoseconds

Instant ZonedDateTime PlainDateTime PlainDate PlainTime PlainYearMonth PlainMonthDay
Instant/toInstant() ZonedDateTime
ZonedDateTimetoZonedDateTimeISO()/toZonedDateTime()toZonedDateTime()PlainDate#toZonedDateTime() PlainDate
PlainDateTime ZonedDateTime toPlainDateTime()/toPlainDateTime()PlainDate#toPlainDateTime()
PlainDatetoPlainDate()toPlainDate()/toPlainDate()toPlainDate()
PlainTimetoPlainTime()toPlainTime()/
PlainYearMonth PlainDate toPlainYearMonth()/ PlainDate
PlainMonthDaytoPlainMonthDay() PlainDate /

Temporal API

Temporal ISO 8601 Intl.supportedValuesOf()

3 1 365.242 29.53 24 1 24

  • 1 365.242 1 365 4 1 1 1
  • 29 30 1 29.5 12 354 1
  • 11 3 1

Temporal 1 yearmonthday 3 year 0 1 0month 1 date.monthsInYear 1 1 1 day 1 1 day

year era eraYear "CE" (Common Era) "BCE" (Before Common Era) -1 { era: "bce", eraYear: 2 } 0 1 BCE era eraYear 0

: era eraYear year era/eraYear 1

  • era eraYear undefined
  • era toLocaleString()
  • 2 year compare()
  • 1 365 366 12 daysInYear monthsInYear
  • inLeapYear true 1 1

month 1 monthCode monthCode month monthCode 2 2 month

: month monthCode 1 month 1 monthCode

  • monthCode month
  • 1 daysInMonth
  • monthCode toLocaleString()
  • monthCode 1 date.toLocaleString("en-US", { calendar: date.calendarId, month: "long" })

day 1 1 dayOfYear dayOfYear 1 date.daysInYear 1

7 4568 daysInWeek Temporal weekOfYear yearOfWeek weekOfYear 1 1 yearOfWeek year 1 2 yearOfWeek 2

: weekOfYear yearOfWeek weekOfYear year

  • weekOfYear yearOfWeek undefined
  • 7 daysInWeek
  • Temporal API

RFC 9557

Temporal ISO 8601 / RFC 3339 RFC 9557

YYYY-MM-DD T HH:mm:ss.sssssssss Z/HH:mm [time_zone_id] [u-ca=calendar_id]

RFC 9557

ISO 8601 Date

Temporal Unix 108 -271821-04-20T00:00:00 +275760-09-13T00:00:00

Temporal /

  • from
  • with()
  • add(), subtract(), round()

Temporal.Duration

2 /

Temporal.Instant

Unix 1970 1 1 0 UTC

Temporal.Now

Temporal.PlainDate

1 ISO 8601

Temporal.PlainDateTime

Temporal.PlainMonthDay

1 ISO 8601 ISO

Temporal.PlainTime

Temporal.PlainYearMonth

1 ISO 8601 ISO

Temporal.ZonedDateTime

Temporal[Symbol.toStringTag]

[Symbol.toStringTag] "Temporal" Object.prototype.toString()

Temporal
# sec-temporal-objects


Web Proxy Viewer  |  New URL  |  Original Page