DateTimeOffset()
Contents
[
Hide
]DateTimeOffset::DateTimeOffset() constructor
Default constructor.
constexpr System::DateTimeOffset::DateTimeOffset()=default
DateTimeOffset::DateTimeOffset(DateTime) constructor
Constructor.
System::DateTimeOffset::DateTimeOffset(DateTime date_time)
Arguments
Parameter | Type | Description |
---|---|---|
date_time | DateTime | Date and time. |
DateTimeOffset::DateTimeOffset(int64_t, TimeSpan) constructor
Constructor.
System::DateTimeOffset::DateTimeOffset(int64_t ticks, TimeSpan offset)
Arguments
Parameter | Type | Description |
---|---|---|
ticks | int64_t | Number of ticks. |
offset | TimeSpan | Time offset from UTC. |
DateTimeOffset::DateTimeOffset(DateTime, TimeSpan) constructor
Constructor.
System::DateTimeOffset::DateTimeOffset(DateTime date_time, TimeSpan offset)
Arguments
Parameter | Type | Description |
---|---|---|
date_time | DateTime | Date and time. |
offset | TimeSpan | Time offset from UTC. |
DateTimeOffset::DateTimeOffset(int, int, int, int, int, int, TimeSpan) constructor
Constructor.
System::DateTimeOffset::DateTimeOffset(int year, int month, int day, int hour, int minute, int second, TimeSpan offset)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | Year (1 through 9999). |
month | int | Month (1 through 12). |
day | int | Day (1 through the number of days in month). |
hour | int | Hour (0 through 23). |
minute | int | Minute (0 through 59). |
second | int | Second (0 through 59). |
offset | TimeSpan | Time offset from UTC. |
DateTimeOffset::DateTimeOffset(int, int, int, int, int, int, int, TimeSpan) constructor
Constructor.
System::DateTimeOffset::DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, TimeSpan offset)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | Year (1 through 9999). |
month | int | Month (1 through 12). |
day | int | Day (1 through the number of days in month). |
hour | int | Hour (0 through 23). |
minute | int | Minute (0 through 59). |
second | int | Second (0 through 59). |
millisecond | int | Millisecond (0 through 999). |
offset | TimeSpan | Time offset from UTC. |
DateTimeOffset::DateTimeOffset(int, int, int, int, int, int, int, const SharedPtr<Globalization::Calendar>&, TimeSpan) constructor
Constructor.
System::DateTimeOffset::DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, const SharedPtr<Globalization::Calendar> &calendar, TimeSpan offset)
Arguments
Parameter | Type | Description |
---|---|---|
year | int | Year. |
month | int | Month (1 through 12). |
day | int | Day (1 through the number of days in month). |
hour | int | Hour (0 through 23). |
minute | int | Minute (0 through 59). |
second | int | Second (0 through 59). |
millisecond | int | Millisecond (0 through 999). |
calendar | const SharedPtr<Globalization::Calendar>& | Calendar used to interpret year, month, and day. |
offset | TimeSpan | Time offset from UTC. |
See Also
- Typedef SharedPtr
- Class DateTimeOffset
- Class DateTime
- Class TimeSpan
- Class Calendar
- Namespace System
- Library Aspose.Slides