xtd::date_time::date_time | ( | xtd::ticks | ticks, |
xtd::date_time_kind | kind | ||
) |
Initializes a new instance of the xtd::date_time structure to a specified number of ticks and to Coordinated Universal Time (UTC) or local time.
ticks | A date and time expressed in the number of 100-nanosecond intervals that have elapsed since January 1, 0001 at 00:00:00.000 in the Gregorian calendar. |
kind | One of the enumeration values that indicates whether ticks specifies a local time, Coordinated Universal Time (UTC), or neither. |
xtd::argument_out_of_range_exception | ticks is less than xtd::date_time::min_value or greater than xtd::date_time::max_value. |