Skip to content

Commit d99d943

Browse files
author
Fraser Greenroyd
authored
Pluralise descriptions for Duration Converts (#101)
2 parents 699536e + 568b20f commit d99d943

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Units_Engine/Convert/Duration/Duration.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ public static double FromDuration(this double duration, object unit)
6363
/***************************************************/
6464

6565
[Description("Convert SI units (seconds) into another duration unit.")]
66-
[Input("second", "The number of seconds to convert.")]
66+
[Input("seconds", "The number of seconds to convert.")]
6767
[Input("unit", "The unit to convert to. This can be a string, or you can use the BHoM Enum DurationUnit.")]
6868
[Output("duration", "The equivalent quantity defined in the specified unit.")]
69-
public static double ToDuration(this double second, object unit)
69+
public static double ToDuration(this double seconds, object unit)
7070
{
71-
if (Double.IsNaN(second) || Double.IsInfinity(second))
71+
if (Double.IsNaN(seconds) || Double.IsInfinity(seconds))
7272
{
7373
Compute.RecordError("Quantity is not a real number.");
7474
return double.NaN;
7575
}
7676

77-
UN.QuantityValue qv = second;
77+
UN.QuantityValue qv = seconds;
7878
UNU.DurationUnit unitSI = UNU.DurationUnit.Second;
7979
UNU.DurationUnit unUnit = ToDurationUnit(unit);
8080
if (unUnit != UNU.DurationUnit.Undefined)

0 commit comments

Comments
 (0)