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.
public class CalendarTime : IComparable<CalendarTime>
- Inheritance
-
CalendarTime
- Implements
Constructors
View SourceCalendarTime(Int32, Int32, Int32, Int32, Int32, Int32)
Creates the local CalendarTime
Declaration
public CalendarTime(int year, int month, int day, int hour, int minute, int second)
Parameters
Type | Name | Description |
---|---|---|
Int32 | year | The year. |
Int32 | month | The month. |
Int32 | day | The day. |
Int32 | hour | The hour. |
Int32 | minute | The minute. |
Int32 | second | The second. |
API Level: 4
View SourceCalendarTime(Int64)
Creates the UTC CalendarTime.
Declaration
public CalendarTime(long utcTime)
Parameters
Type | Name | Description |
---|---|---|
Int64 | utcTime | The UTC epoch time. 0 is 1971/01/01. |
API Level: 4
Properties
View SourceLocalTime
Gets the LocalTime
Declaration
public DateTime LocalTime { get; }
Property Value
Type | Description |
---|---|
DateTime | The local time. |
API Level: 4
View SourceUtcTime
Gets the UtcTime.
Declaration
public DateTime UtcTime { get; }
Property Value
Type | Description |
---|---|
DateTime | The UTC time. |
API Level: 4
Methods
View SourceCompareTo(CalendarTime)
Compares the CalendarTime.
Declaration
public int CompareTo(CalendarTime other)
Parameters
Type | Name | Description |
---|---|---|
CalendarTime | other | The CalendarTime to be compared. |
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer that indicates the relative order of the objects being compared. |
API Level: 4
View SourceEquals(Object)
Equals the CalendarTime.
Declaration
public 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
View SourceGetHashCode()
The GetHashCode for the CalendarTime.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for the current object. |