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