ManipulateSetMillisecond Method |
Set the Millisecond of this dateTime to millisecond, leaving all other all other
parts the same.
Namespace: MomentSharpAssembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static DateTime SetMillisecond(
this DateTime dateTime,
int millisecond,
bool bubble = false
)
<ExtensionAttribute>
Public Shared Function SetMillisecond (
dateTime As DateTime,
millisecond As Integer,
Optional bubble As Boolean = false
) As DateTime
public:
[ExtensionAttribute]
static DateTime SetMillisecond(
DateTime dateTime,
int millisecond,
bool bubble = false
)
[<ExtensionAttribute>]
static member SetMillisecond :
dateTime : DateTime *
millisecond : int *
?bubble : bool
(* Defaults:
let _bubble = defaultArg bubble false
*)
-> DateTime
Parameters
- dateTime
- Type: SystemDateTime
this DateTime - millisecond
- Type: SystemInt32
new millisecond - bubble (Optional)
- Type: SystemBoolean
If set to true, it will bubble up the next part. E.g. 90 seconds becomes 1:30 minutes
Return Value
Type:
DateTimeDateTime
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