# Shift schedules (https://docs.pulsarml.com/guides/settings/shift-schedules)

Create, modify and remove your machines' operating shifts, one at a time or in bulk.



In the shift schedule you add and modify the operating shifts of each machine. Go to **Settings** > **Shift Schedule**.

<Callout title="Video">
  [Watch how to do it](https://app.trupeer.ai/view/eiMzCzlv1)

  , step by step.
</Callout>

## Read the schedule [#read-the-schedule]

* **Layout.** Your machines are listed on the vertical axis, and the shifts progress over time along the horizontal axis. Each colored block is a shift: hover over it or click it to see the machine, the shift name, the date and the hours.
* **Colors.** Each shift name has its own color, shown in the legend under the schedule (for example **Night** and **Day**). Past shifts are filled blocks, upcoming shifts are outlined ones, and a red line marks the current time.
* **Date.** Choose how much time to show with **week**, **Today**, **3 days** or **month**, and move back and forth with **Previous** and **Next**. Click the date range between them to pick dates on the calendar.

<Screenshot id="shift-schedules-colors" alt="The Shift Schedule page in week view: the week, Today, 3 days and month buttons at the top left, Settings, Remove shifts and Create shifts at the top right, Previous and Next around the date range, machines listed on the left and a row of blue Night and orange Day shift blocks for each machine, filled for past shifts and outlined for upcoming ones, with a red line at the current time and the Night and Day legend at the bottom." width="1440" height="900" />

## Create shifts [#create-shifts]

<Steps>
  <Step>
    Click **Create shifts** at the top right of the page. The **New shifts** window opens.
  </Step>

  <Step>
    Fill in the fields (the ones marked with &#x2A;*\*** are required):

    * **Shift name**: choose **Morning**, **Afternoon**, **Night** or **Day**.
    * **Machines**: the machines that operate during the shift you're creating.
    * **Shift Time*&#x2A;: the shift's start and end times. If the shift ends after midnight, &#x2A;*(+1 day)** appears next to the times.
    * **Recurrence**: **OFF** means the shift exists only once, on the **Date** you choose. **ON** means the shift repeats.
    * **Time period**: if **Recurrence** is **ON**, the start and end dates between which the shift repeats.
    * **Week days**: if **Recurrence** is **ON**, the days of the week on which the shift repeats (**M**, **T**, **W**, **T**, **F**, **S**, **S**).

    <Screenshot id="shift-schedules-new-shifts" alt="The New shifts window with the fields Shift name (Morning), Machines, Shift Time with a start and an end time followed by (+1 day), the Recurrence switch set to ON, Time period with a start and an end date, and Week days as seven green buttons M T W T F S S, plus the Cancel and Confirm buttons." width="617" height="819" />
  </Step>

  <Step>
    Click **Confirm**.
  </Step>
</Steps>

Repeat this for each shift you want to create. In some plants shifts rarely change once created; in others they're scheduled and changed weekly or even daily in Pulsar.

## Modify or delete a shift [#modify-or-delete-a-shift]

To change or remove a single shift, click it on the schedule. A window shows the machine, the shift name, the date and the hours, with a pencil icon to modify it and a trash icon to delete it.

<Screenshot id="shift-schedules-edit-shift" alt="Part of the shift schedule with the pointer on a Night shift of Cortadora Láser, showing a window with the machine (Cortadora Láser *), the shift name (Night), the date (Wed 30 September), the hours 19:00 - 07:00 (+1), and the pencil and trash icons." width="790" height="156" />

The pencil opens **Edit Shift**, where you change the shift's start and end date and time under **Shift Time**, then click **Confirm**.

## Remove shifts in bulk [#remove-shifts-in-bulk]

<Steps>
  <Step>
    Click **Remove shifts** at the top right of the page, next to **Create shifts**.
  </Step>

  <Step>
    In the **Remove shifts** window, choose the **Machines** and the **Shifts** whose shifts you want to delete, and the **Period** (a date range on the calendar).

    <Screenshot id="shift-schedules-delete-dialog" alt="The Remove shifts window with the Machines selector, the Shifts selector with Morning selected, the Period date field, and the Cancel and red Remove shifts buttons." width="657" height="477" />
  </Step>

  <Step>
    Click **Remove shifts**.
  </Step>
</Steps>

## Choose which day a shift belongs to [#choose-which-day-a-shift-belongs-to]

When a shift crosses midnight, Pulsar has to decide which date it belongs to. Click **Settings** at the top of the Shift Schedule page and, under **Set shift date based on start or end time**, choose:

* **Start time**: the shift counts on the day it starts. A shift from 11 pm on January 1 to 6 am on January 2 is a January 1 shift.
* **End time**: the shift counts on the day it ends. The same shift is a January 2 shift.

Click **Apply** to save the choice, or the **X** at the top left to go back without changing it.

<Screenshot id="shift-schedules-settings" alt="The Shift Schedule / Settings screen with the heading Set shift date based on start or end time, the Start time and End time options with an example each, Start time selected, and the Apply button at the bottom right." width="1440" height="900" />

If you have trouble setting up shift schedules or need help, contact your Customer Success representative or [raise a support ticket](/guides/getting-started/support-ticket) from the app.
