Click or drag to resize

GH_ConvertGetTimeKind Method (DateTime, DateTime)

Gets the kind of time implied by two System.DateTime values.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
public static GH_TimeKind GetTimeKind(
	DateTime A,
	DateTime B


Type: SystemDateTime
First time to evaluate.
Type: SystemDateTime
Second time to evaluate.

Return Value

Type: GH_TimeKind
GH_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