DHI.Mike1D
DHI.Mike1D
Namespaces
DHI.Mike1D.Generic
Util Class
Util Methods
CheckDirectoryForFile Method
CreateDirectoryForFileIfNotExists Method
CreateDirectoryIfNotExists Method
CreateStackTraceString Method
GetParameters Method
GetUnitConversionFactor Method
IsDefined Method
IsSimple Method
LimitTimeStepToCheckPoint Method
MakeValidFileName Method
Max Method
Min Method
NextTimeAfter Method
ReadAssemblyBuildDateTime Method
ReadSelectionFile Method
RoundDown Method
RoundUp Method
SetupDebugEnvironmentNoGac Method
Swap(T) Method
TrimString Method
Truncate Method
UnitConversionFactors Method
UserUnitToString Method
ValueInUserUnit Method
ValueInUserUnitToString Method
ValueInUserUnitToStringWithUnit Method
ValueToString Method
Util
RoundDown Method
Rounding up time to nearest dt, where dt is typicalle on the form
Copy
dt = TimeSpan.FromHours(
1
)
Namespace:
DHI.Mike1D.Generic
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
Copy
public
static
DateTime
RoundDown
(
this
DateTime
time
,
TimeSpan
dt
)
Parameters
time
Type:
System
DateTime
dt
Type:
System
TimeSpan
Return Value
Type:
DateTime
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
Util Class
DHI.Mike1D.Generic Namespace