Java time based constructor for values of type A.
Java time based constructor for values of type A. Resulting time point will match specified local date and time at specified zone.
local date part of A
local time part of A
time zone context for specified local date and time
Date part of x
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
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
UTC offset of this datetime value
UTC offset of this datetime value
Add a (possibly negative) duration to this datetime
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 months to this datetime.
Add a (possibly negative) number of months to this datetime.
Add a (possibly negative) number of years 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
Time part of x
Get UTC date and time for this instant
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 date part updated to supplied one.
Create a copy of x
with day of month altered.
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 hour of day altered.
Create a copy of x
with millisecond of second 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 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 second of minute altered.
Create a copy of x
with time part updated to supplied one.
Create a copy of x
with time part updated to supplied one.
Create a copy of x
with year altered.
Create a copy of x
with year altered.
Returns a new date time value with timezone altered in a way,
that preserves exact moment in time, described by x
Returns a new date time value with timezone altered in a way,
that preserves exact moment in time, described by x
original date-time
time zone to create new value in
Returns a new date time value with timezone altered.
Returns a new date time value with timezone altered. Local date and time stay the same.
This means that if supplied zone has different offset, new value will have different instant.
original date-time
time zone to create new value in
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
Get the timezone of x
Get the timezone of x