File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Units_Engine/Convert/Duration Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments