Date part of x
Returns number of full days between two datetime values.
Returns number of full days between two datetime values. Result can be negative if until
< x
Returns number of full hours between two datetime values.
Returns number of full hours between two datetime values. Result can be negative if until
< x
Returns number of milliseconds between two datetime values.
Returns number of milliseconds between two datetime values. Result can be negative if until
< x
Subtract a (possibly negative) duration from this datetime
Returns number of full minutes between two datetime values.
Returns number of full minutes between two datetime values. Result can be negative if until
< x
Returns number of full months between two datetime values.
Returns number of full months between two datetime values. Result can be negative if until
< x
Add a (possibly negative) duration to this datetime
Add a (possibly negative) number of months to this datetime.
Add a (possibly negative) number of months to this datetime.
Add a (possibly negative) number of years to this datetime.
Returns number of full seconds between two datetime values.
Returns number of full seconds between two datetime values. Result can be negative if until
< x
Time part of x
Get UTC date and time for this instant
Create a copy of x
with date part updated to supplied one.
Create a copy of x
with day of month altered.
Create a copy of x
with hour of day altered.
Create a copy of x
with millisecond of second altered.
Create a copy of x
with minute if hour altered.
Create a copy of x
with month altered.
Create a copy of x
with month altered. Month value has to be in [1,12] range
Create a copy of x
with second of minute altered.
Create a copy of x
with time part updated to supplied one.
Create a copy of x
with year altered.
Returns number of full years between two datetime values.
Returns number of full years between two datetime values. Result can be negative if until
< x
Common base type class for any dateTime. Doesn't hold any laws, exact behaviour and laws are defined for it's children.
All the methods follow java.time._ semantics.