xtd 0.2.0
Loading...
Searching...
No Matches

◆ date_time() [4/10]

xtd::date_time::date_time ( int64  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.

Parameters
ticksA 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.
kindOne of the enumeration values that indicates whether ticks specifies a local time, Coordinated Universal Time (UTC), or neither.
Exceptions
xtd::argument_out_of_range_exceptionticks is less than xtd::date_time::min_value or greater than xtd::date_time::max_value.