Class CIMSimpleDateTime

java.lang.Object
org.sblim.wbem.cim.CIMDateTime
org.sblim.wbem.cim.CIMSimpleDateTime
All Implemented Interfaces:
Serializable, Cloneable

public class CIMSimpleDateTime extends CIMDateTime
See Also:
  • Constructor Details

    • CIMSimpleDateTime

      public CIMSimpleDateTime()
      Constructs an CIMDataTime used to define a point in time.
    • CIMSimpleDateTime

      public CIMSimpleDateTime(String pDateString)
      Constructs a CIMSimpleDateTime object from the specified String defining an date.
      Parameters:
      pDateString - A date string
    • CIMSimpleDateTime

      public CIMSimpleDateTime(Calendar pCalendar)
      Constructs a CIMSimpleDateTime object from the given Calendar object.
      Parameters:
      pCalendar - A Calendar object
  • Method Details

    • getMonth

      public int getMonth()
      Returns the month specified by this CIMDateTime.
      Returns:
      The month
    • getYear

      public int getYear()
      Returns the year specified by this CIMDateTime.
      Returns:
      The year
    • setDay

      public void setDay(int pDay)
      Specifies the day of this CIMDateTime.
      Parameters:
      pDay - The day
    • setMonth

      public void setMonth(int pMonth)
      Specifies the month for this CIMDateTime.
      Parameters:
      pMonth - The month
    • setYear

      public void setYear(int pYear)
      Specifies the year for this CIMDateTime.
      Parameters:
      pYear - The year
    • clone

      public Object clone()
      Overrides:
      clone in class CIMDateTime
    • main

      public static void main(String[] args)