Returns the earliest valid ZonedDateTime with the given local date.
|C#||Visual Basic||Visual C++|
public ZonedDateTime AtStartOfDay( LocalDate date )
Public Function AtStartOfDay ( date As LocalDate ) As ZonedDateTime
public: ZonedDateTime AtStartOfDay( LocalDate date )
- date (LocalDate)
- The local date to map in this time zone.
If midnight exists unambiguously on the given date, it is returned. If the given date has an ambiguous start time (e.g. the clocks go back from 1am to midnight) then the earlier ZonedDateTime is returned. If the given date has no midnight (e.g. the clocks go forward from midnight to 1am) then the earliest valid value is returned; this will be the instant of the transition.
|SkippedTimeException||The entire day was skipped due to a very large time zone transition.
(This is extremely rare.)|
Assembly: NodaTime (Module: NodaTime.dll) Version: 188.8.131.52 (1.2.0)