---
schema_version: "1"
id: 61c3ebbf3e222c7a0e7c64a58beddb644f5b5d2c4d33ff7e6730bf3f6f3a08a6
title: UnavailableTimeslot Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_lxscheduler_UnavailableTimeslot.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_UnavailableTimeslot.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 613e6f3e349452f2c6e9c155c3035615aea9878a2830392ce044da0222401751
description: Use this class to pass the unavailable time slots to the lxscheduler.ServiceResourceSchedule class. Timezones that differ across operating hours are handled and results are always returned in UTC.Creates an instance of lxscheduler.UnavailableTimeslot class.End time of an unavailable time slot.Start time of an unavailable time slot.
---
# UnavailableTimeslot Class

Use this class to pass the unavailable time slots to the lxscheduler.ServiceResourceSchedule class. Timezones that differ across operating hours are handled and results are always returned in UTC.

## Namespace

[LxScheduler](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_lxscheduler.htm "The LxScheduler namespace provides an interface and classes for integrating Salesforce Scheduler with external calendars.")

- **[UnavailableTimeslot Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_UnavailableTimeslot.htm#apex_lxscheduler_UnavailableTimeslot_constructors)**
- **[UnavailableTimeslot Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_UnavailableTimeslot.htm#apex_lxscheduler_UnavailableTimeslot_properties)**

## UnavailableTimeslot Constructors

The following are constructors for UnavailableTimeslot.

- **[UnavailableTimeslot(timeMin, timeMax)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_UnavailableTimeslot.htm#apex_lxscheduler_UnavailableTimeslot_ctor)**  
    Creates an instance of lxscheduler.UnavailableTimeslot class.

### UnavailableTimeslot(timeMin, timeMax)

Creates an instance of lxscheduler.UnavailableTimeslot class.

#### Signature

public UnavailableTimeslot(Datetime timeMin, Datetime timeMax)

#### Parameters

- **timeMin**:
    
    Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.")
    
    Start time of an unavailable time slot.
- **timeMax**:
    
    Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.")
    
    End time of an unavailable time slot.

## UnavailableTimeslot Properties

The following are properties for UnavailableTimeslot.

- **[timeMax](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_UnavailableTimeslot.htm#apex_lxscheduler_UnavailableTimeslot_timeMax)**  
    End time of an unavailable time slot.
- **[timeMin](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_UnavailableTimeslot.htm#apex_lxscheduler_UnavailableTimeslot_timeMin)**  
    Start time of an unavailable time slot.

### timeMax

End time of an unavailable time slot.

#### Signature

public Datetime timeMax {get; set;}

#### Property Value

Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.")

### timeMin

Start time of an unavailable time slot.

#### Signature

public Datetime timeMin {get; set;}

#### Property Value

Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.")