_OlkTimeControl.Time Property
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.
Returns or sets a DateTime that represents the time value currently selected in the control. Read/write.
public:
property DateTime Time { DateTime get(); void set(DateTime value); };
public DateTime Time { get; set; }
Public Property Time As DateTime
Property Value
Remarks
The default value is Dec 30, 1899 12:00 AM.
When using the time control to indicate a duration (that is, the Style is olTimeStyleDuration), if the duration is longer than 24 hours, the Time property will indicate the duration from Dec 30, 1899 12:00 AM. For example, a duration spanning 24 hours will return a DateTime value of Dec 31 1899 12:00 AM. If this is a duration value for an appointment and you would like to determine an end time for the appointment, you can add this value to the ReferenceTime property value.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應