> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.TimeZoneRule

# <a id="SuperOffice_WebApi_Data_TimeZoneRule" /> Class TimeZoneRule

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for TimeZoneRule.
Information about a rule for a TimeZone

```csharp theme={null}
public class TimeZoneRule
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[TimeZoneRule](SuperOffice.WebApi.Data.TimeZoneRule.md)

#### Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### <a id="SuperOffice_WebApi_Data_TimeZoneRule__ctor" /> TimeZoneRule()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public TimeZoneRule()
```

## Properties

### <a id="SuperOffice_WebApi_Data_TimeZoneRule_EndDay" /> EndDay

Custom DST end day, if 0 then parse startRule

```csharp theme={null}
public virtual int EndDay { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TimeZoneRule_EndMonth" /> EndMonth

Custom DST end month, if 0 then parse startRule

```csharp theme={null}
public virtual int EndMonth { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TimeZoneRule_EndRulePattern" /> EndRulePattern

DST end rule, such as 2300 LST-SAT-OCT; limited to rules that we have parse code for; use dayOfMonth etc for custom rules

```csharp theme={null}
public virtual string EndRulePattern { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TimeZoneRule_StartDay" /> StartDay

Custom DST start day, if 0 then parse startRule

```csharp theme={null}
public virtual int StartDay { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TimeZoneRule_StartMonth" /> StartMonth

Custom DST start month, if 0 then parse startRule

```csharp theme={null}
public virtual int StartMonth { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TimeZoneRule_StartRulePattern" /> StartRulePattern

DST start rule, such as 0200 1ST-SUN-APR; limited to rules that we have parse code for; use dayOfMonth etc for custom rules

```csharp theme={null}
public virtual string StartRulePattern { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TimeZoneRule_TZOffset" /> TZOffset

Number of minutes bias relative to UTC time

```csharp theme={null}
public virtual int TZOffset { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## See Also

[TimeZoneAgent](SuperOffice.WebApi.Agents.TimeZoneAgent.md)


## Related topics

- [SuperOffice.WebApi.Data.TimeZoneRuleDictionary](/en/api/reference/webapi/SuperOffice.WebApi.Data.TimeZoneRuleDictionary.md)
- [SuperOffice.WebApi.Data.TimeZoneData](/en/api/reference/webapi/SuperOffice.WebApi.Data.TimeZoneData.md)
- [SuperOffice.WebApi.Agents.TimeZoneAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.TimeZoneAgent.md)
- [SuperOffice.WebApi.Agents.ITimeZoneAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ITimeZoneAgent.md)
- [SuperOffice.WebApi.Data.TimeZone TimeOfLastTimeZoneUpdateRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.TimeZone_TimeOfLastTimeZoneUpdateRequest.md)
- [SuperOffice.WebApi.Data.TimeZone InitializeTimeZoneDataRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.TimeZone_InitializeTimeZoneDataRequest.md)
