Exemple #1
0
        static public string ToComfortableString(this Duration item)
        {
            DurationUnit unit   = item.GetComfortableDurationUnit();
            float        length = item.GetLength(unit);

            if (length < float.MaxValue)
            {
                return(length.ToString("F4") + unit.GetUnitSuffix());
            }

            return("forever");
        }