# Days and hours

A user can be limited to certain days of the week and certain hours of the day. Outside them a login is refused. The two cards are on the [Restrictions](Users-Restrictions.md) tab of a user.

## Allow User to Connect to These Days

Seven ticks, **Sunday** to **Saturday**. All are ticked on a new server. Untick the days on which the user shall not get in.

## Hours of the day a user may connect

A list of the hours in which a login is allowed, as numbers from 0 to 23 with commas between them. On a new server it holds all of them:

```
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23
```

An hour stands for the sixty minutes that begin with it: `8` is from 8:00 to 8:59. For office hours from eight in the morning to six in the evening, write:

```
8,9,10,11,12,13,14,15,16,17
```

## Things to know

- The clock is the server's, in the server's time zone, not the user's.
- Both cards are about logging in. A session that is running when the allowed time ends is not cut off by them: how long a session may last is **Max Login Time** in [Settings](Users-Settings.md).
- A login outside the allowed time fails like a wrong password. The session's log says that the day or the hour was the reason.
- Jobs and events that act for a user are not held back by these: they are about people logging in.

## Uses

| For | Set |
|---|---|
| staff who should not work from home at night | weekdays, office hours |
| a partner whose job delivers once a night | the hour of the delivery and the one after it |
| an account that is only for a yearly audit | leave these alone and use an expiry date instead: see [Password and account expiry](Users-Restrictions-Password-Expiry.md) |
