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#
Copy
public class CalendarTime : IComparable<CalendarTime>
Inheritance
System.Object
CalendarTime
Implements
System.IComparable<CalendarTime>

Constructors

View Source

CalendarTime(Int32, Int32, Int32, Int32, Int32, Int32)

Creates the local CalendarTime

Declaration
C#
Copy
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 Source

CalendarTime(Int64)

Creates the UTC CalendarTime.

Declaration
C#
Copy
public CalendarTime(long utcTime)
Parameters
Type Name Description
System.Int64 utcTime

The UTC epoch time. 0 is 1971/01/01.

API Level: 4

Properties

View Source

LocalTime

Gets the LocalTime

Declaration
C#
Copy
public DateTime LocalTime { get; }
Property Value
Type Description
System.DateTime

The local time.

API Level: 4
View Source

UtcTime

Gets the UtcTime.

Declaration
C#
Copy
public DateTime UtcTime { get; }
Property Value
Type Description
System.DateTime

The UTC time.

API Level: 4

Methods

View Source

CompareTo(CalendarTime)

Compares the CalendarTime.

Declaration
C#
Copy
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 Source

Equals(Object)

Equals the CalendarTime.

Declaration
C#
Copy
public override bool Equals(object obj)
Parameters
Type Name Description
System.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
System.Object.Equals(System.Object)
API Level: 4
View Source

GetHashCode()

The GetHashCode for the CalendarTime.

Declaration
C#
Copy
public override int GetHashCode()
Returns
Type Description
Int32

A hash code for the current object.

Overrides
System.Object.GetHashCode()
API Level: 4

Implements

System.IComparable<T>