Method Years NamespaceMongoDB.Driver AssemblyMongoDB.Driver.dll Years(int) Returns a time range in years. public static TimeRangeWindowBoundary Years(int value) Parameters value int The value. Returns TimeRangeWindowBoundary A time range.