# ProjectWorkingTime

A working interval in a day's local clock, without host-timezone conversion.

Struct 

`OfficeIMO.Project`

**Namespace**

`OfficeIMO.Project`

**Assembly**

`OfficeIMO.Project`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ProjectCalendar.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCalendar.cs#L58)

**Base**

`ValueType`

**Modifiers**

sealed

A working interval in a day's local clock, without host-timezone conversion.

## Inheritance

- ValueType
- ProjectWorkingTime

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [ProjectWorkingTime.Hours](/api/project/officeimo-project-projectworkingtime/#method-hours-int32-int32)

### Accepted by parameters 2

- Method [ProjectCalendar.SetWorkingDay](/api/project/officeimo-project-projectcalendar/#method-setworkingday-dayofweek-officeimo-project-projectworkingtime) parameter `times`
- Method [ProjectWorkWeek.SetWorkingDay](/api/project/officeimo-project-projectworkweek/#method-setworkingday-dayofweek-officeimo-project-projectworkingtime) parameter `times`

Filter members 

Show inherited

## Constructors

`public ProjectWorkingTime(TimeSpan from, TimeSpan to)` [#](#constructor-ctor-timespan-timespan)

[ProjectCalendar.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCalendar.cs#L58)

Creates an interval. An end earlier than the start denotes an overnight interval; equal clocks denote a full 24 hours.

Parameters

**from System.TimeSpan required**

**to System.TimeSpan required**

## Methods

`public static ProjectWorkingTime Hours(int from, int to)` [#](#method-hours-int32-int32)

[ProjectCalendar.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCalendar.cs#L67)

Creates an interval from whole hours.

Parameters

**from int required**

**to int required**

Returns

`ProjectWorkingTime`

## Inherited Methods

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from ValueType

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public override string? ToString()` [#](#method-tostring)

Inherited from ValueType

Returns

`string?`

## Properties

`public TimeSpan From { get; }` [#](#property-from)

[ProjectCalendar.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCalendar.cs#L63)

Start on the local clock.

`public TimeSpan To { get; }` [#](#property-to)

[ProjectCalendar.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCalendar.cs#L65)

End on the local clock.

<!-- PowerForge markdown artifact sha256:209ED5EDF6E7CDCE3029D4E4D20B95605828E0C21AC596DB2CE8CB75D525F94E -->
