code: function (y) {
      this.date = isUndefined(y) ? new Date() : isDate(y) ? y : new Date(y, 0, 1, 0, 0, 0);
  }
docs: @constructor
  Creates a Year type to be used in queries that require a SQL year datatype.
  All <i>Date</i> methods ar included in the prototype of the Year type. toString and toJSON
  are overridden to return a year format instead of the default <i>Date</i> formatting.
  See {@link patioTime#yearToString} for formatting information.
  
  @example
  
  var year = patio.Year(2009); //=> 2009
  JSON.stringify(year)l //=> 2009
  
  @memberOf patio.sql
  @param {Number} y the year this year represents.