isis/src/base/objs/iTime/iTime.cpp
int iTime::Year() const {
    NaifStatus::CheckErrors();
    SpiceChar out[5];

    // Populate the private year member
    timout_c(p_et, "YYYY", 5, out);
    NaifStatus::CheckErrors();
    return IString(out).ToInteger();
  }
/**
   * Returns the year portion of the time as an int
   *
   * @return int
   */
Returns the year portion of the time as an int
@return int
Returns the year portion of the time as an int @return int
int iTime::Year() const {
    NaifStatus::CheckErrors();
    SpiceChar out[5];
    timout_c(p_et, "YYYY", 5, out);
    NaifStatus::CheckErrors();
    return IString(out).ToInteger();
  }
int iTime :: Year ( ) const { NaifStatus :: CheckErrors ( ) ; SpiceChar out [ 5 ] ; timout_c ( p_et , " " , 5 , out ) ; NaifStatus :: CheckErrors ( ) ; return IString ( out ) . ToInteger ( ) ; }
Returns the year portion of the time as an int
 @return int
Returns the year portion of the time as an int @return int
// Populate the private year member