Represents a date and time with components for Year, Month, Day, Hour, Minute, Second, and Nanosecond.
Instances For
Converts a PlainDateTime
to the number of days since the UNIX epoch.
Equations
Instances For
Converts a PlainDateTime
to the number of days since the UNIX epoch.
Equations
Instances For
Sets the PlainDateTime
to the specified desiredWeekday
.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the day of the month to the given days
value, with any
out-of-range days clipped to the nearest valid date.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the day of the month to the given days
value, with any
out-of-range days rolled over to the next month or year as needed.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the month to the given month
value, with any
out-of-range days clipped to the nearest valid date.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the month to the given month
value.
The day is rolled over to the next valid month if necessary.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the year to the given year
value. The month and day
remain unchanged, with any out-of-range days clipped to the nearest valid date.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the year to the given year
value. The month and day are rolled
over to the next valid month and day if necessary.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the hour
component of its time
to the given value.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the minute
component of its time
to the given value.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the second
component of its time
to the given value.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the milliseconds component inside the nano
component of its time
to the given value.
Equations
Instances For
Creates a new PlainDateTime
by adjusting the nano
component of its time
to the given value.
Equations
Instances For
Adds a Month.Offset
to a PlainDateTime
, adjusting the day to the last valid day of the resulting
month.
Equations
Instances For
Subtracts Month.Offset
from a PlainDateTime
, it clips the day to the last valid day of that month.
Equations
Instances For
Adds a Month.Offset
to a PlainDateTime
, rolling over excess days to the following month if needed.
Equations
Instances For
Subtracts a Month.Offset
from a PlainDateTime
, adjusting the day to the last valid day of the
resulting month.
Equations
Instances For
Adds a Month.Offset
to a PlainDateTime
, rolling over excess days to the following month if needed.
Equations
Instances For
Subtracts a Month.Offset
from a PlainDateTime
, rolling over excess days to the following month if
needed.
Equations
Instances For
Subtracts a Year.Offset
from a PlainDateTime
, this function rolls over any excess days into the
following month.
Equations
Instances For
Subtracts a Year.Offset
from a PlainDateTime
, adjusting the day to the last valid day of the
resulting month.
Equations
Instances For
Adds a Nanosecond.Offset
to a PlainDateTime
, adjusting the seconds, minutes, hours, and date if the nanoseconds overflow.
Equations
Instances For
Subtracts a Nanosecond.Offset
from a PlainDateTime
, adjusting the seconds, minutes, hours, and date if the nanoseconds underflow.
Equations
Instances For
Adds an Hour.Offset
to a PlainDateTime
, adjusting the date if the hour overflows.
Equations
Instances For
Subtracts an Hour.Offset
from a PlainDateTime
, adjusting the date if the hour underflows.
Equations
Instances For
Adds a Minute.Offset
to a PlainDateTime
, adjusting the hour and date if the minutes overflow.
Equations
Instances For
Subtracts a Minute.Offset
from a PlainDateTime
, adjusting the hour and date if the minutes underflow.
Equations
Instances For
Adds a Second.Offset
to a PlainDateTime
, adjusting the minute, hour, and date if the seconds overflow.
Equations
Instances For
Subtracts a Second.Offset
from a PlainDateTime
, adjusting the minute, hour, and date if the seconds underflow.
Equations
Instances For
Adds a Millisecond.Offset
to a PlainDateTime
, adjusting the second, minute, hour, and date if the milliseconds overflow.
Equations
Instances For
Subtracts a Millisecond.Offset
from a PlainDateTime
, adjusting the second, minute, hour, and date if the milliseconds underflow.
Equations
Instances For
Returns the unaligned week of the month for a PlainDateTime
(day divided by 7, plus 1).
Equations
Instances For
Determines the week of the month for the given PlainDateTime
. The week of the month is calculated based
on the day of the month and the weekday. Each week starts on Monday because the entire library is
based on the Gregorian Calendar.