Show / Hide Table of Contents

    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
    Object
    CalendarTime
    Implements
    IComparable<CalendarTime>

    Constructors

    View Source

    CalendarTime(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 Source

    CalendarTime(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 Source

    LocalTime

    Gets the LocalTime

    Declaration
    public DateTime LocalTime { get; }
    Property Value
    Type Description
    DateTime

    The local time.

    API Level: 4
    View Source

    UtcTime

    Gets the UtcTime.

    Declaration
    public DateTime UtcTime { get; }
    Property Value
    Type Description
    DateTime

    The UTC time.

    API Level: 4

    Methods

    View Source

    CompareTo(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 Source

    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
    Boolean

    A 32-bit signed integer that indicates the relative order of the objects being compared.

    Overrides
    Object.Equals(Object)
    API Level: 4
    View Source

    GetHashCode()

    The GetHashCode for the CalendarTime.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for the current object.

    Overrides
    Object.GetHashCode()
    API Level: 4

    Implements

    System.IComparable<T>
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX