TimeOfDay.span

construct a TimeSpan from the current fields

struct TimeOfDay
@property const
span
()

Return Value

Type: TimeSpan

a TimeOfDay representing the field values.

Note: that fields are not checked against a valid range, so setting 60 for minutes is allowed, and will just add 1 to the hour component, and set the minute component to 0. The result is normalized, so the hours wrap. If you pass in 25 hours, the resulting TimeOfDay will have a hour component of 1.

Meta