DateTime()
DateTime::DateTime() constructor
Constructs an instance that represents the smallest possible date and time value equal to MinValue.
constexpr System::DateTime::DateTime()
DateTime::DateTime(int, int, int) constructor
Constructs an instance that represents a date and time value specified as a particular year, month and day.
System::DateTime::DateTime(int year, int month, int day)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | The year to be represented by the instance being constructed. |
month | int | The month of the year to be represented by the instance being constructed. |
day | int | The day of the month to be represented by the instance being constructed. |
DateTime::DateTime(int, int, int, const SharedPtr<Globalization::Calendar>&) constructor
Constructs an instance that represents a date and time value specified as a particular year, month and day in the specified calendar.
System::DateTime::DateTime(int year, int month, int day, const SharedPtr<Globalization::Calendar> &calendar)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | The year to be represented by the instance being constructed. |
month | int | The month of the year to be represented by the instance being constructed. |
day | int | The day of the month to be represented by the instance being constructed. |
calendar | const SharedPtr<Globalization::Calendar>& | The calendar used to interpret the specified year, month and day. |
DateTime::DateTime(int, int, int, int, int, int) constructor
Constructs an instance that represents a date and time value specified as a particular year, month, day, hour, minute and second.
System::DateTime::DateTime(int year, int month, int day, int hour, int minute, int second)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | The year to be represented by the instance being constructed. |
month | int | The month of the year to be represented by the instance being constructed. |
day | int | The day of the month to be represented by the instance being constructed. |
hour | int | The hour of the day to be represented by the instance being constructed. |
minute | int | The minute of the hour to be represented by the instance being constructed. |
second | int | The second of the minute te be represented by the instance being constructed. |
DateTime::DateTime(int, int, int, int, int, int, DateTimeKind) constructor
Constructs an instance that represents a date and time value specified as a particular year, month, day, hour, minute and second.
System::DateTime::DateTime(int year, int month, int day, int hour, int minute, int second, DateTimeKind kind)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | The year to be represented by the instance being constructed. |
month | int | The month of the year to be represented by the instance being constructed. |
day | int | The day of the month to be represented by the instance being constructed. |
hour | int | The hour of the day to be represented by the instance being constructed. |
minute | int | The minute of the hour to be represented by the instance being constructed. |
second | int | The second of the minute te be represented by the instance being constructed. |
kind | DateTimeKind | The value that indicates if the provided date and time parameters specify a local time, UTC time or neither. |
DateTime::DateTime(int, int, int, int, int, int, const SharedPtr<Globalization::Calendar>&) constructor
Constructs an instance that represents a date and time value specified as a particular year, month, day, hour, minute and second in the specified calendar.
System::DateTime::DateTime(int year, int month, int day, int hour, int minute, int second, const SharedPtr<Globalization::Calendar> &calendar)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | The year to be represented by the instance being constructed. |
month | int | The month of the year to be represented by the instance being constructed. |
day | int | The day of the month to be represented by the instance being constructed. |
hour | int | The hour of the day to be represented by the instance being constructed. |
minute | int | The minute of the hour to be represented by the instance being constructed. |
second | int | The second of the minute te be represented by the instance being constructed. |
calendar | const SharedPtr<Globalization::Calendar>& | The calendar used to interpret the specified year, month and day. |
DateTime::DateTime(int, int, int, int, int, int, int, DateTimeKind) constructor
Constructs an instance that represents a date and time value specified as a particular year, month, day, hour, minute, second and millisecond.
System::DateTime::DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, DateTimeKind kind=DateTimeKind::Unspecified)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | The year to be represented by the instance being constructed. |
month | int | The month of the year to be represented by the instance being constructed. |
day | int | The day of the month to be represented by the instance being constructed. |
hour | int | The hour of the day to be represented by the instance being constructed. |
minute | int | The minute of the hour to be represented by the instance being constructed. |
second | int | The second of the minute te be represented by the instance being constructed. |
millisecond | int | The millisecond of the second to be represented by the instance being constructed. |
kind | DateTimeKind | The value that indicates if the provided date and time parameters specify a local time, UTC time or neither. |
DateTime::DateTime(int, int, int, int, int, int, int, const SharedPtr<Globalization::Calendar>&, DateTimeKind) constructor
Constructs an instance that represents a date and time value specified as a particular year, month, day, hour, minute, second and millisecond in the specified calendar.
System::DateTime::DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, const SharedPtr<Globalization::Calendar> &calendar, DateTimeKind kind=DateTimeKind::Unspecified)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | The year to be represented by the instance being constructed. |
month | int | The month of the year to be represented by the instance being constructed. |
day | int | The day of the month to be represented by the instance being constructed. |
hour | int | The hour of the day to be represented by the instance being constructed. |
minute | int | The minute of the hour to be represented by the instance being constructed. |
second | int | The second of the minute te be represented by the instance being constructed. |
millisecond | int | The millisecond of the second to be represented by the instance being constructed. |
kind | const SharedPtr<Globalization::Calendar>& | The value that indicates if the provided date and time parameters specify a local time, UTC time or neither. |
calendar | DateTimeKind | The calendar used to interpret the specified year, month and day. |
DateTime::DateTime(int64_t, DateTimeKind) constructor
Construct an instance that represents a date and time value specified as a number of ticks.
System::DateTime::DateTime(int64_t ticks, DateTimeKind kind=DateTimeKind::Unspecified)
Arguments
Parameter | Type | Description |
---|---|---|
ticks | int64_t | The number of 100-ns intervals that have passed since January the 1st, 0001 00:00:00.000 in Georgian calendar. |
kind | DateTimeKind | The value that indicates if ticks parameter specifies a local time, UTC time or neither. |
DateTime::DateTime(int64_t, DateTimeKind, bool) constructor
Construct an instance that represents a date and time value specified as a number of ticks. FOR INTERNAL USE.
System::DateTime::DateTime(int64_t ticks, DateTimeKind kind, bool is_ambiguous_local_dst)
Arguments
Parameter | Type | Description |
---|---|---|
ticks | int64_t | The number of 100-ns intervals that have passed since January the 1st, 0001 00:00:00.000 in Georgian calendar. |
kind | DateTimeKind | The value that indicates if ticks parameter specifies a local time, UTC time or neither. |
is_ambiguous_local_dst | bool | True if specified date and time is ambiguous and can be mapped to many UTC times. |
DateTime::DateTime(const DateTime&) constructor
Copy-constructs an instance.
System::DateTime::DateTime(const DateTime &dt)=default
Arguments
Parameter | Type | Description |
---|---|---|
dt | const DateTime& | An instance of DateTime class to copy the represented date and time value from |
See Also
- Enum DateTimeKind
- Typedef SharedPtr
- Class DateTime
- Class Calendar
- Namespace System
- Library Aspose.Slides