Class CalendarTime
Definition
- Assembly:
- Tizen.Pims.Calendar.dll
A class for the time to set, get, or calculate.
C#Copypublic class CalendarTime : IComparable<CalendarTime>
- Inheritance
-
objectCalendarTime
- Implements
-
System.IComparable<T><CalendarTime>
Constructors
Declaration
C#Copypublic CalendarTime(int year, int month, int day, int hour, int minute, int second)
Parameters
| Type | Name | Description |
|---|---|---|
| int | year | The year. |
| int | month | The month. |
| int | day | The day. |
| int | hour | The hour. |
| int | minute | The minute. |
| int | second | The second. |
Declaration
C#Copypublic CalendarTime(long utcTime)
Parameters
| Type | Name | Description |
|---|---|---|
| long | utcTime | The UTC epoch time. 0 is 1971/01/01. |
Properties
Declaration
C#Copypublic DateTime LocalTime { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime | The local time. |
Declaration
C#Copypublic DateTime UtcTime { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime | The UTC time. |
Methods
Declaration
C#Copypublic int CompareTo(CalendarTime other)
Parameters
| Type | Name | Description |
|---|---|---|
| CalendarTime | other | The CalendarTime to be compared. |
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that indicates the relative order of the objects being compared. |
Declaration
C#Copypublic override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The CalendarTime to be compared. |
Returns
| Type | Description |
|---|---|
| bool | A 32-bit signed integer that indicates the relative order of the objects being compared. |
Overrides
object.Equals(object)
Declaration
C#Copypublic override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
object.GetHashCode()
Implements
System.IComparable<T>