TimeOnly.FromTimeSpan(TimeSpan) 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.
Constructs a TimeOnly object from a time span representing the time elapsed since midnight.
public:
static TimeOnly FromTimeSpan(TimeSpan timeSpan);
public static TimeOnly FromTimeSpan (TimeSpan timeSpan);
static member FromTimeSpan : TimeSpan -> TimeOnly
Public Shared Function FromTimeSpan (timeSpan As TimeSpan) As TimeOnly
Parameters
- timeSpan
- TimeSpan
The time interval measured since midnight. This value has to be positive and not exceeding the time of the day.
Returns
A TimeOnly object representing the time elapsed since midnight using the specified time span value.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.