libsbml.Date.setDay C# (CSharp) Method

setDay() public method

public setDay ( long day ) : int
day long
return int
        public int setDay(long day)
        {
            int ret = libsbmlPINVOKE.Date_setDay(swigCPtr, day);
            return ret;
        }

Usage Example

 public void test_Date_setDay()
 {
     Date date = new  Date(2005,2,12,12,15,45,1,2,0);
       assertTrue( date != null );
       int i = date.setDay(29);
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertTrue( date.getDay() == 1 );
       i = date.setDay(31);
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertTrue( date.getDay() == 1 );
       i = date.setDay(15);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( date.getDay() == 15 );
       assertTrue((                             "2005-02-15T12:15:45+02:00" == date.getDateAsString() ));
       date = null;
 }
All Usage Examples Of libsbml.Date::setDay