Class CalendarTime

    Definition

    Namespace:
    Tizen.Pims.Calendar
    Assembly:
    Tizen.Pims.Calendar.dll

    A class for the time to set, get, or calculate.

    public class CalendarTime : IComparable<CalendarTime>
    Inheritance
    object
    CalendarTime
    Implements
    System.IComparable<T><CalendarTime>

    Constructors

    View Source

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

    View Source

    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 Source

    LocalTime

    Gets the LocalTime

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

    The local time.

    View Source

    UtcTime

    Gets the UtcTime.

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

    The UTC time.

    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
    int

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

    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
    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>
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX