/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.7
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.sundogsoftware.silverlining;

public class LocalTime {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected LocalTime(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(LocalTime obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        SilverLiningLocalTimeJNI.delete_LocalTime(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public LocalTime() {
    this(SilverLiningLocalTimeJNI.new_LocalTime(), true);
  }

  public void SetFromEpochSeconds(SWIGTYPE_p_time_t time) {
    SilverLiningLocalTimeJNI.LocalTime_SetFromEpochSeconds(swigCPtr, this, SWIGTYPE_p_time_t.getCPtr(time));
  }

  public void SetYear(int year) {
    SilverLiningLocalTimeJNI.LocalTime_SetYear(swigCPtr, this, year);
  }

  public int GetYear() {
    return SilverLiningLocalTimeJNI.LocalTime_GetYear(swigCPtr, this);
  }

  public void SetMonth(int month) {
    SilverLiningLocalTimeJNI.LocalTime_SetMonth(swigCPtr, this, month);
  }

  public int GetMonth() {
    return SilverLiningLocalTimeJNI.LocalTime_GetMonth(swigCPtr, this);
  }

  public void SetDay(int day) {
    SilverLiningLocalTimeJNI.LocalTime_SetDay(swigCPtr, this, day);
  }

  public int GetDay() {
    return SilverLiningLocalTimeJNI.LocalTime_GetDay(swigCPtr, this);
  }

  public void SetHour(int hour) {
    SilverLiningLocalTimeJNI.LocalTime_SetHour(swigCPtr, this, hour);
  }

  public int GetHour() {
    return SilverLiningLocalTimeJNI.LocalTime_GetHour(swigCPtr, this);
  }

  public void SetMinutes(int minutes) {
    SilverLiningLocalTimeJNI.LocalTime_SetMinutes(swigCPtr, this, minutes);
  }

  public int GetMinutes() {
    return SilverLiningLocalTimeJNI.LocalTime_GetMinutes(swigCPtr, this);
  }

  public void SetSeconds(double seconds) {
    SilverLiningLocalTimeJNI.LocalTime_SetSeconds(swigCPtr, this, seconds);
  }

  public double GetSeconds() {
    return SilverLiningLocalTimeJNI.LocalTime_GetSeconds(swigCPtr, this);
  }

  public void SetObservingDaylightSavingsTime(boolean inDST) {
    SilverLiningLocalTimeJNI.LocalTime_SetObservingDaylightSavingsTime(swigCPtr, this, inDST);
  }

  public boolean GetObservingDaylightSavingsTime() {
    return SilverLiningLocalTimeJNI.LocalTime_GetObservingDaylightSavingsTime(swigCPtr, this);
  }

  public void SetTimeZone(double zone) {
    SilverLiningLocalTimeJNI.LocalTime_SetTimeZone(swigCPtr, this, zone);
  }

  public double GetTimeZone() {
    return SilverLiningLocalTimeJNI.LocalTime_GetTimeZone(swigCPtr, this);
  }

  public double GetJulianDate(boolean terrestrialTime) {
    return SilverLiningLocalTimeJNI.LocalTime_GetJulianDate(swigCPtr, this, terrestrialTime);
  }

  public double GetEpoch2000Centuries(boolean terrestrialTime) {
    return SilverLiningLocalTimeJNI.LocalTime_GetEpoch2000Centuries(swigCPtr, this, terrestrialTime);
  }

  public double GetEpoch1990Days(boolean terrestrialTime) {
    return SilverLiningLocalTimeJNI.LocalTime_GetEpoch1990Days(swigCPtr, this, terrestrialTime);
  }

  public void SetFromSystemTime() {
    SilverLiningLocalTimeJNI.LocalTime_SetFromSystemTime(swigCPtr, this);
  }

  public void AddSeconds(int seconds) {
    SilverLiningLocalTimeJNI.LocalTime_AddSeconds(swigCPtr, this, seconds);
  }

}
