Convert this moment object to a DateTime
Namespace: MomentSharpAssembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static DateTime DateTime(
this Moment moment,
bool bubble = false
)
<ExtensionAttribute>
Public Shared Function DateTime (
moment As Moment,
Optional bubble As Boolean = false
) As DateTime
public:
[ExtensionAttribute]
static DateTime DateTime(
Moment^ moment,
bool bubble = false
)
[<ExtensionAttribute>]
static member DateTime :
moment : Moment *
?bubble : bool
(* Defaults:
let _bubble = defaultArg bubble false
*)
-> DateTime
Parameters
- moment
- Type: MomentSharpMoment
A Moment Object - bubble (Optional)
- Type: SystemBoolean
Whether or not to bubble moment to the next part. E.g. 90 seconds to 1 minute and 30 seconds.
If false, will throw exception given the example.
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
Moment. 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