LocalDate.AtTime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AtTime(LocalTime) |
Combines this date with a time to create a LocalDateTime. |
| AtTime(OffsetTime) |
Combines this date with an offset time to create an OffsetDateTime. |
| AtTime(Int32, Int32) |
Combines this date with a time to create a LocalDateTime. |
| AtTime(Int32, Int32, Int32) |
Combines this date with a time to create a LocalDateTime. |
| AtTime(Int32, Int32, Int32, Int32) |
Combines this date with a time to create a LocalDateTime. |
AtTime(LocalTime)
Combines this date with a time to create a LocalDateTime.
[Android.Runtime.Register("atTime", "(Ljava/time/LocalTime;)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public Java.Time.LocalDateTime? AtTime(Java.Time.LocalTime? time);
[<Android.Runtime.Register("atTime", "(Ljava/time/LocalTime;)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
member this.AtTime : Java.Time.LocalTime -> Java.Time.LocalDateTime
Parameters
- time
- LocalTime
the time to combine with, not null
Returns
the local date-time formed from this date and the specified time, not null
- Attributes
Remarks
Combines this date with a time to create a LocalDateTime. This returns a LocalDateTime formed from this date at the specified time. All possible combinations of date and time are valid.
Java reference for java.time.LocalDate.atTime.
Applies to
AtTime(OffsetTime)
Combines this date with an offset time to create an OffsetDateTime.
[Android.Runtime.Register("atTime", "(Ljava/time/OffsetTime;)Ljava/time/OffsetDateTime;", "", ApiSince=26)]
public Java.Time.OffsetDateTime? AtTime(Java.Time.OffsetTime? time);
[<Android.Runtime.Register("atTime", "(Ljava/time/OffsetTime;)Ljava/time/OffsetDateTime;", "", ApiSince=26)>]
member this.AtTime : Java.Time.OffsetTime -> Java.Time.OffsetDateTime
Parameters
- time
- OffsetTime
the time to combine with, not null
Returns
the offset date-time formed from this date and the specified time, not null
- Attributes
Remarks
Combines this date with an offset time to create an OffsetDateTime. This returns an OffsetDateTime formed from this date at the specified time. All possible combinations of date and time are valid.
Java reference for java.time.LocalDate.atTime.
Applies to
AtTime(Int32, Int32)
Combines this date with a time to create a LocalDateTime.
[Android.Runtime.Register("atTime", "(II)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public Java.Time.LocalDateTime? AtTime(int hour, int minute);
[<Android.Runtime.Register("atTime", "(II)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
member this.AtTime : int * int -> Java.Time.LocalDateTime
Parameters
- hour
- Int32
the hour-of-day to use, from 0 to 23
- minute
- Int32
the minute-of-hour to use, from 0 to 59
Returns
the local date-time formed from this date and the specified time, not null
- Attributes
Remarks
Combines this date with a time to create a LocalDateTime. This returns a LocalDateTime formed from this date at the specified hour and minute. The seconds and nanosecond fields will be set to zero. The individual time fields must be within their valid range. All possible combinations of date and time are valid.
Java reference for java.time.LocalDate.atTime.
Applies to
AtTime(Int32, Int32, Int32)
Combines this date with a time to create a LocalDateTime.
[Android.Runtime.Register("atTime", "(III)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public Java.Time.LocalDateTime? AtTime(int hour, int minute, int second);
[<Android.Runtime.Register("atTime", "(III)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
member this.AtTime : int * int * int -> Java.Time.LocalDateTime
Parameters
- hour
- Int32
the hour-of-day to use, from 0 to 23
- minute
- Int32
the minute-of-hour to use, from 0 to 59
- second
- Int32
the second-of-minute to represent, from 0 to 59
Returns
the local date-time formed from this date and the specified time, not null
- Attributes
Remarks
To be added.
Java reference for java.time.LocalDate.atTime.
Applies to
AtTime(Int32, Int32, Int32, Int32)
Combines this date with a time to create a LocalDateTime.
[Android.Runtime.Register("atTime", "(IIII)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public Java.Time.LocalDateTime? AtTime(int hour, int minute, int second, int nanoOfSecond);
[<Android.Runtime.Register("atTime", "(IIII)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
member this.AtTime : int * int * int * int -> Java.Time.LocalDateTime
Parameters
- hour
- Int32
the hour-of-day to use, from 0 to 23
- minute
- Int32
the minute-of-hour to use, from 0 to 59
- second
- Int32
the second-of-minute to represent, from 0 to 59
- nanoOfSecond
- Int32
the nano-of-second to represent, from 0 to 999,999,999
Returns
the local date-time formed from this date and the specified time, not null
- Attributes
Remarks
Combines this date with a time to create a LocalDateTime. This returns a LocalDateTime formed from this date at the specified hour, minute, second and nanosecond. The individual time fields must be within their valid range. All possible combinations of date and time are valid.
Java reference for java.time.LocalDate.atTime.