GH_ConvertGetTimeKind Method (DateTime, DateTime) |
Gets the kind of time implied by two System.DateTime values.
Namespace:
Grasshopper.Kernel
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static GH_TimeKind GetTimeKind(
DateTime A,
DateTime B
)
Public Shared Function GetTimeKind (
A As DateTime,
B As DateTime
) As GH_TimeKind
Parameters
- A
- Type: SystemDateTime
First time to evaluate. - B
- Type: SystemDateTime
Second time to evaluate.
Return Value
Type:
GH_TimeKindGH_TimeKind.PureTime, GH_TimeKind.PureDate or GH_TimeKind.DateAndTime if both kinds are the same.
GH_TimeKind.DateAndTime is one is a pure date and the other a DateAndTime value.
GH_TimeKind.Mixed is one is a pure time and the other one is not.
See Also