Class CalendarTime
Definition
- Assembly:
- Tizen.Pims.Calendar.dll
A class for the time to set, get, or calculate.
public class CalendarTime : IComparable<CalendarTime>
- Inheritance
-
objectCalendarTime
- Implements
-
System.IComparable<T><CalendarTime>
Constructors
View SourceCalendarTime(int, int, int, int, int, int)
Creates the local CalendarTime
Declaration
public 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. |
CalendarTime(long)
Creates the UTC CalendarTime.
Declaration
public CalendarTime(long utcTime)
Parameters
Type | Name | Description |
---|---|---|
long | utcTime | The UTC epoch time. 0 is 1971/01/01. |
Properties
View SourceLocalTime
Gets the LocalTime
Declaration
public DateTime LocalTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime | The local time. |
UtcTime
Gets the UtcTime.
Declaration
public DateTime UtcTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime | The UTC time. |
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 |
---|---|
int | A 32-bit signed integer that indicates the relative order of the objects being compared. |
Equals(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 |
---|---|
bool | A 32-bit signed integer that indicates the relative order of the objects being compared. |
Overrides
object.Equals(object)
View Source
GetHashCode()
The GetHashCode for the CalendarTime.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
object.GetHashCode()
Implements
System.IComparable<T>