Skip to content

SubtractSaturating #43

Open
Open
@dzmitry-lahoda

Description

@dzmitry-lahoda
public static class TimeSpanExtensions {
        public static TimeSpan SubtractSaturating(this TimeSpan self, TimeSpan other) =>
            self >= other ? self.Subtract(other) : TimeSpan.Zero;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions