using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace VoxelBusters.CoreLibrary.NativePlugins
{
///
/// A date or time specified in terms of units (such as year, month, day, hour, and minute) to be evaluated in a calendar system and time zone.
///
[Serializable]
public class DateComponents
{
#region Fields
[SerializeField]
private Calendar m_calendar;
[SerializeField]
private int m_year;
[SerializeField]
private int m_month;
[SerializeField]
private int m_day;
[SerializeField]
private int m_hour;
[SerializeField]
private int m_minute;
[SerializeField]
private int m_second;
[SerializeField]
private int m_nanosecond;
[SerializeField]
private int m_weekday;
[SerializeField]
private int m_weekOfMonth;
[SerializeField]
private int m_weekOfYear;
#endregion
#region Properties
///
/// Gets or sets the calendar.
///
/// The calendar.
public Calendar Calendar
{
get
{
return m_calendar;
}
set
{
m_calendar = value;
}
}
///
/// Gets or sets the year.
///
/// The year.
public int Year
{
get
{
return m_year;
}
set
{
m_year = value;
}
}
///
/// Gets or sets the month.
///
/// The month.
public int Month
{
get
{
return m_month;
}
set
{
m_month = value;
}
}
///
/// Gets or sets the day.
///
/// The day.
public int Day
{
get
{
return m_day;
}
set
{
m_day = value;
}
}
///
/// Gets or sets the hour.
///
/// The hour.
public int Hour
{
get
{
return m_hour;
}
set
{
m_hour = value;
}
}
///
/// Gets or sets the minute.
///
/// The minute.
public int Minute
{
get
{
return m_minute;
}
set
{
m_minute = value;
}
}
///
/// Gets or sets the second.
///
/// The second.
public int Second
{
get
{
return m_second;
}
set
{
m_second = value;
}
}
///
/// Gets or sets the nanosecond.
///
/// The nanosecond.
public int Nanosecond
{
get
{
return m_nanosecond;
}
set
{
m_nanosecond = value;
}
}
///
/// Gets or sets the weekday.
///
/// The weekday.
public int Weekday
{
get
{
return m_weekday;
}
set
{
m_weekday = value;
}
}
///
/// Gets or sets the week of month.
///
/// The week of month.
public int WeekOfMonth
{
get
{
return m_weekOfMonth;
}
set
{
m_weekOfMonth = value;
}
}
///
/// Gets or sets the week of year.
///
/// The week of year.
public int WeekOfYear
{
get
{
return m_weekOfYear;
}
set
{
m_weekOfYear = value;
}
}
#endregion
#region Constructors
public DateComponents()
{
// set default values
m_calendar = (Calendar)0;
m_year = 0;
m_month = 0;
m_day = 0;
m_hour = 0;
m_minute = 0;
m_second = 0;
m_nanosecond = 0;
m_weekday = 0;
m_weekOfMonth = 0;
m_weekOfYear = 0;
}
#endregion
}
}