DurationExtension extension

This file is a part of media_kit (https://github.com/media-kit/media-kit).

Copyright © 2021 & onwards, Hitesh Kumar Saini saini123hitesh@gmail.com. All rights reserved. Use of this source code is governed by MIT license that can be found in the LICENSE file. Extension methods for Duration.

on

Methods

clamp(Duration min, Duration max) Duration
Returns clamp of Duration between min and max.
label({Duration? reference}) String
Returns a String representation of Duration.