Class CIMSimpleDateTime

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class CIMSimpleDateTime
    extends CIMDateTime
    See Also:
    Serialized Form
    • Constructor Detail

      • CIMSimpleDateTime

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

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

        public CIMSimpleDateTime​(java.util.Calendar pCalendar)
        Constructs a CIMSimpleDateTime object from the given Calendar object.
        Parameters:
        pCalendar - A Calendar object
    • Method Detail

      • 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 java.lang.Object clone()
        Overrides:
        clone in class CIMDateTime
      • main

        public static void main​(java.lang.String[] args)