# Struct LocalTime

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Inherited Members

**Namespace**: NodaTime

**Assembly**: NodaTime.dll

##### Syntax

```
[TypeConverter(typeof(LocalTimeTypeConverter))]
public readonly struct LocalTime : IEquatable<LocalTime>, IComparable<LocalTime>, IFormattable, IComparable, IXmlSerializable
```

**Remarks**

Ordering and equality are defined in the natural way, simply comparing the number of "nanoseconds since midnight".

The default value of this type is Midnight.

### Constructors

#### LocalTime(int, int, int, int)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime(int hour, int minute, int second, int millisecond)`

##### Parameters

Type | Name | Description |
---|---|---|

int | hour | The hour of day. |

int | minute | The minute of the hour. |

int | second | The second of the minute. |

int | millisecond | The millisecond of the second. |

##### Remarks

Ordering and equality are defined in the natural way, simply comparing the number of "nanoseconds since midnight".

The default value of this type is Midnight.

##### Exceptions

Type | Condition |
---|---|

ArgumentOutOfRangeException | The parameters do not form a valid time. |

#### LocalTime(int, int, int)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime(int hour, int minute, int second)`

##### Parameters

Type | Name | Description |
---|---|---|

int | hour | The hour of day. |

int | minute | The minute of the hour. |

int | second | The second of the minute. |

##### Remarks

Ordering and equality are defined in the natural way, simply comparing the number of "nanoseconds since midnight".

The default value of this type is Midnight.

##### Sample snippet

```
using NodaTime;
using System;
using System.Globalization;
LocalTime time = new LocalTime(16, 20, 0);
Console.WriteLine(time.ToString("HH:mm:ss", CultureInfo.InvariantCulture));
```

Output:

```
16:20:00
```

##### Exceptions

Type | Condition |
---|---|

ArgumentOutOfRangeException | The parameters do not form a valid time. |

#### LocalTime(int, int)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime(int hour, int minute)`

##### Parameters

Type | Name | Description |
---|---|---|

int | hour | The hour of day. |

int | minute | The minute of the hour. |

##### Remarks

The default value of this type is Midnight.

##### Exceptions

Type | Condition |
---|---|

ArgumentOutOfRangeException | The parameters do not form a valid time. |

### Properties

#### ClockHourOfHalfDay

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public int ClockHourOfHalfDay { get; }`

##### Property Value

Type | Description |
---|---|

int | The hour of the half-day of this local time, in the range 1 to 12 inclusive. |

##### Remarks

The default value of this type is Midnight.

#### Hour

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public int Hour { get; }`

##### Property Value

Type | Description |
---|---|

int | The hour of day of this local time, in the range 0 to 23 inclusive. |

##### Remarks

The default value of this type is Midnight.

#### MaxValue

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime MaxValue { get; }`

##### Property Value

Type | Description |
---|---|

LocalTime |

##### Remarks

#### Midnight

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime Midnight { get; }`

##### Property Value

Type | Description |
---|---|

LocalTime |

##### Remarks

The default value of this type is Midnight.

#### Millisecond

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public int Millisecond { get; }`

##### Property Value

Type | Description |
---|---|

int | The millisecond of this local time within the second, in the range 0 to 999 inclusive. |

##### Remarks

The default value of this type is Midnight.

#### Minute

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public int Minute { get; }`

##### Property Value

Type | Description |
---|---|

int | The minute of this local time, in the range 0 to 59 inclusive. |

##### Remarks

The default value of this type is Midnight.

#### MinValue

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime MinValue { get; }`

##### Property Value

Type | Description |
---|---|

LocalTime |

##### Remarks

The default value of this type is Midnight.

#### NanosecondOfDay

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public long NanosecondOfDay { get; }`

##### Property Value

Type | Description |
---|---|

long | The nanosecond of this local time within the day, in the range 0 to 86,399,999,999,999 inclusive. |

##### Remarks

The default value of this type is Midnight.

#### NanosecondOfSecond

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public int NanosecondOfSecond { get; }`

##### Property Value

Type | Description |
---|---|

int | The nanosecond of this local time within the second, in the range 0 to 999,999,999 inclusive. |

##### Remarks

The default value of this type is Midnight.

#### Noon

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime Noon { get; }`

##### Property Value

Type | Description |
---|---|

LocalTime |

##### Remarks

The default value of this type is Midnight.

#### Second

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public int Second { get; }`

##### Property Value

Type | Description |
---|---|

int | The second of this local time within the minute, in the range 0 to 59 inclusive. |

##### Remarks

The default value of this type is Midnight.

#### TickOfDay

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public long TickOfDay { get; }`

##### Property Value

Type | Description |
---|---|

long | The tick of this local time within the day, in the range 0 to 863,999,999,999 inclusive. |

##### Remarks

#### TickOfSecond

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public int TickOfSecond { get; }`

##### Property Value

Type | Description |
---|---|

int | The tick of this local time within the second, in the range 0 to 9,999,999 inclusive. |

##### Remarks

The default value of this type is Midnight.

### Methods

#### Add(LocalTime, Period)

`operator+()`

.
**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime Add(LocalTime time, Period period)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | time | The time to add the period to |

Period | period | The period to add. Must not contain any (non-zero) date units. |

##### Returns

Type | Description |
---|---|

LocalTime | The sum of the given time and period |

##### Remarks

The default value of this type is Midnight.

#### AddSchema(XmlSchemaSet)

`xmlSchemaSet`

.
the `xmlSchemaSet`

.
**Since**3.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static XmlQualifiedName AddSchema(XmlSchemaSet xmlSchemaSet)`

##### Parameters

Type | Name | Description |
---|---|---|

XmlSchemaSet | xmlSchemaSet | The XML schema set provided by XmlSchemaExporter. |

##### Returns

Type | Description |
---|---|

XmlQualifiedName | The qualified name of the schema type that was added to the `xmlSchemaSet` . |

##### Remarks

The default value of this type is Midnight.

#### CompareTo(LocalTime)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public int CompareTo(LocalTime other)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | other | The other date/time to compare this one with |

##### Returns

Type | Description |
---|---|

int | A value less than zero if this time is earlier than `other` ;
zero if this time is the same as `other` ; a value greater than zero if this time is
later than `other` . |

##### Remarks

The default value of this type is Midnight.

#### Deconstruct(out int, out int, out int)

**Since**2.3.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public void Deconstruct(out int hour, out int minute, out int second)`

##### Parameters

Type | Name | Description |
---|---|---|

int | hour | The hour of the time. |

int | minute | The minute of the hour. |

int | second | The second within the minute. |

##### Remarks

The default value of this type is Midnight.

#### Equals(LocalTime)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public bool Equals(LocalTime other)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | other | The other local time to compare this one with |

##### Returns

Type | Description |
---|---|

bool | True if the specified time is equal to this one; false otherwise |

##### Remarks

The default value of this type is Midnight.

#### Equals(object?)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public override bool Equals(object? obj)`

##### Parameters

Type | Name | Description |
---|---|---|

object | obj | The object to compare this one with |

##### Returns

Type | Description |
---|---|

bool | True if the specified value is a local time which is equal to this one; false otherwise |

##### Overrides

##### Remarks

The default value of this type is Midnight.

#### FromHourMinuteSecondMillisecondTick(int, int, int, int, int)

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime FromHourMinuteSecondMillisecondTick(int hour, int minute, int second, int millisecond, int tickWithinMillisecond)`

##### Parameters

Type | Name | Description |
---|---|---|

int | hour | The hour of day. |

int | minute | The minute of the hour. |

int | second | The second of the minute. |

int | millisecond | The millisecond of the second. |

int | tickWithinMillisecond | The tick within the millisecond. |

##### Returns

Type | Description |
---|---|

LocalTime | The resulting time. |

##### Remarks

The default value of this type is Midnight.

##### Exceptions

Type | Condition |
---|---|

ArgumentOutOfRangeException | The parameters do not form a valid time. |

#### FromHourMinuteSecondNanosecond(int, int, int, long)

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime FromHourMinuteSecondNanosecond(int hour, int minute, int second, long nanosecondWithinSecond)`

##### Parameters

Type | Name | Description |
---|---|---|

int | hour | The hour of day in the desired time, in the range [0, 23]. |

int | minute | The minute of hour in the desired time, in the range [0, 59]. |

int | second | The second of minute in the desired time, in the range [0, 59]. |

long | nanosecondWithinSecond | The nanosecond within the second in the desired time, in the range [0, 999999999]. |

##### Returns

Type | Description |
---|---|

LocalTime | The resulting time. |

##### Remarks

##### Exceptions

Type | Condition |
---|---|

ArgumentOutOfRangeException | The parameters do not form a valid time. |

#### FromHourMinuteSecondTick(int, int, int, int)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime FromHourMinuteSecondTick(int hour, int minute, int second, int tickWithinSecond)`

##### Parameters

Type | Name | Description |
---|---|---|

int | hour | The hour of day in the desired time, in the range [0, 23]. |

int | minute | The minute of hour in the desired time, in the range [0, 59]. |

int | second | The second of minute in the desired time, in the range [0, 59]. |

int | tickWithinSecond | The tick within the second in the desired time, in the range [0, 9999999]. |

##### Returns

Type | Description |
---|---|

LocalTime | The resulting time. |

##### Remarks

##### Exceptions

Type | Condition |
---|---|

ArgumentOutOfRangeException | The parameters do not form a valid time. |

#### FromHoursSinceMidnight(int)

**Since**3.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime FromHoursSinceMidnight(int hours)`

##### Parameters

Type | Name | Description |
---|---|---|

int | hours | The number of hours, in the range [0, 23] |

##### Returns

Type | Description |
---|---|

LocalTime | The resulting time. |

##### Remarks

The default value of this type is Midnight.

#### FromMillisecondsSinceMidnight(int)

**Since**1.1.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime FromMillisecondsSinceMidnight(int milliseconds)`

##### Parameters

Type | Name | Description |
---|---|---|

int | milliseconds | The number of milliseconds, in the range [0, 86,399,999] |

##### Returns

Type | Description |
---|---|

LocalTime | The resulting time. |

##### Remarks

The default value of this type is Midnight.

#### FromMinutesSinceMidnight(int)

**Since**3.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime FromMinutesSinceMidnight(int minutes)`

##### Parameters

Type | Name | Description |
---|---|---|

int | minutes | The number of minutes, in the range [0, 1439] |

##### Returns

Type | Description |
---|---|

LocalTime | The resulting time. |

##### Remarks

The default value of this type is Midnight.

#### FromNanosecondsSinceMidnight(long)

**Since**3.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime FromNanosecondsSinceMidnight(long nanoseconds)`

##### Parameters

Type | Name | Description |
---|---|---|

long | nanoseconds | The number of nanoseconds, in the range [0, 86,399,999,999,999] |

##### Returns

Type | Description |
---|---|

LocalTime | The resulting time. |

##### Remarks

The default value of this type is Midnight.

#### FromSecondsSinceMidnight(int)

**Since**1.1.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime FromSecondsSinceMidnight(int seconds)`

##### Parameters

Type | Name | Description |
---|---|---|

int | seconds | The number of seconds, in the range [0, 86,399] |

##### Returns

Type | Description |
---|---|

LocalTime | The resulting time. |

##### Remarks

The default value of this type is Midnight.

#### FromTicksSinceMidnight(long)

**Since**1.1.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime FromTicksSinceMidnight(long ticks)`

##### Parameters

Type | Name | Description |
---|---|---|

long | ticks | The number of ticks, in the range [0, 863,999,999,999] |

##### Returns

Type | Description |
---|---|

LocalTime | The resulting time. |

##### Remarks

The default value of this type is Midnight.

#### FromTimeOnly(TimeOnly)

**Since**3.1.x

**Availability**net6.0

##### Declaration

`public static LocalTime FromTimeOnly(TimeOnly time)`

##### Parameters

Type | Name | Description |
---|---|---|

TimeOnly | time | The time of day to convert. |

##### Returns

Type | Description |
---|---|

LocalTime | The LocalTime equivalent. |

##### Remarks

The default value of this type is Midnight.

#### GetHashCode()

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public override int GetHashCode()`

##### Returns

Type | Description |
---|---|

int | A hash code for this local time. |

##### Overrides

##### Remarks

The default value of this type is Midnight.

#### Max(LocalTime, LocalTime)

**Since**2.3.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime Max(LocalTime x, LocalTime y)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | x | The first time to compare. |

LocalTime | y | The second time to compare. |

##### Returns

Type | Description |
---|---|

LocalTime | The later instant of `x` or `y` . |

##### Remarks

The default value of this type is Midnight.

#### Min(LocalTime, LocalTime)

**Since**2.3.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime Min(LocalTime x, LocalTime y)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | x | The first time to compare. |

LocalTime | y | The second time to compare. |

##### Returns

Type | Description |
---|---|

LocalTime | The earlier time of `x` or `y` . |

##### Remarks

The default value of this type is Midnight.

#### Minus(LocalTime)

`operator-()`

.
**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public Period Minus(LocalTime time)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | time | The time to subtract from this |

##### Returns

Type | Description |
---|---|

Period | The difference between the specified time and this one |

##### Remarks

The default value of this type is Midnight.

#### Minus(Period)

`operator-()`

.
**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime Minus(Period period)`

##### Parameters

Type | Name | Description |
---|---|---|

Period | period | The period to subtract. Must not contain any (non-zero) date units. |

##### Returns

Type | Description |
---|---|

LocalTime | The result of subtracting the given period from this time. |

##### Remarks

The default value of this type is Midnight.

#### On(LocalDate)

`operator+()`

.
**Since**1.3.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalDateTime On(LocalDate date)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalDate | date | The date to combine with this time |

##### Returns

Type | Description |
---|---|

LocalDateTime | The LocalDateTime representation of the given time on this date |

##### Remarks

The default value of this type is Midnight.

#### Plus(Period)

`operator+()`

.
**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime Plus(Period period)`

##### Parameters

Type | Name | Description |
---|---|---|

Period | period | The period to add. Must not contain any (non-zero) date units. |

##### Returns

Type | Description |
---|---|

LocalTime | The sum of this time and the given period |

##### Remarks

The default value of this type is Midnight.

#### PlusHours(long)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime PlusHours(long hours)`

##### Parameters

Type | Name | Description |
---|---|---|

long | hours | The number of hours to add |

##### Returns

Type | Description |
---|---|

LocalTime | The current value plus the given number of hours. |

##### Remarks

#### PlusMilliseconds(long)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime PlusMilliseconds(long milliseconds)`

##### Parameters

Type | Name | Description |
---|---|---|

long | milliseconds | The number of milliseconds to add |

##### Returns

Type | Description |
---|---|

LocalTime | The current value plus the given number of milliseconds. |

##### Remarks

The default value of this type is Midnight.

#### PlusMinutes(long)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime PlusMinutes(long minutes)`

##### Parameters

Type | Name | Description |
---|---|---|

long | minutes | The number of minutes to add |

##### Returns

Type | Description |
---|---|

LocalTime | The current value plus the given number of minutes. |

##### Remarks

#### PlusNanoseconds(long)

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime PlusNanoseconds(long nanoseconds)`

##### Parameters

Type | Name | Description |
---|---|---|

long | nanoseconds | The number of nanoseconds to add |

##### Returns

Type | Description |
---|---|

LocalTime | The current value plus the given number of ticks. |

##### Remarks

The default value of this type is Midnight.

#### PlusSeconds(long)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime PlusSeconds(long seconds)`

##### Parameters

Type | Name | Description |
---|---|---|

long | seconds | The number of seconds to add |

##### Returns

Type | Description |
---|---|

LocalTime | The current value plus the given number of seconds. |

##### Remarks

#### PlusTicks(long)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime PlusTicks(long ticks)`

##### Parameters

Type | Name | Description |
---|---|---|

long | ticks | The number of ticks to add |

##### Returns

Type | Description |
---|---|

LocalTime | The current value plus the given number of ticks. |

##### Remarks

The default value of this type is Midnight.

#### Subtract(LocalTime, LocalTime)

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static Period Subtract(LocalTime lhs, LocalTime rhs)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | lhs | The time to subtract from |

LocalTime | rhs | The time to subtract |

##### Returns

Type | Description |
---|---|

Period | The result of subtracting one time from another. |

##### Remarks

#### Subtract(LocalTime, Period)

`operator-()`

.
**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime Subtract(LocalTime time, Period period)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | time | The time to subtract the period from |

Period | period | The period to subtract. Must not contain any (non-zero) date units. |

##### Returns

Type | Description |
---|---|

LocalTime | The result of subtracting the given period from the time. |

##### Remarks

The default value of this type is Midnight.

#### ToString()

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public override string ToString()`

##### Returns

Type | Description |
---|---|

string | The value of the current instance in the default format pattern ("T"), using the current thread's culture to obtain a format provider. |

##### Overrides

##### Remarks

The default value of this type is Midnight.

#### ToString(string?, IFormatProvider?)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public string ToString(string? patternText, IFormatProvider? formatProvider)`

##### Parameters

Type | Name | Description |
---|---|---|

string | patternText | The String specifying the pattern to use, or null to use the default format pattern ("T"). |

IFormatProvider | formatProvider | The IFormatProvider to use when formatting the value, or null to use the current thread's culture to obtain a format provider. |

##### Returns

Type | Description |
---|---|

string | A String containing the value of the current instance in the specified format. |

##### Remarks

The default value of this type is Midnight.

#### ToTimeOnly()

**Since**3.1.x

**Availability**net6.0

##### Declaration

`public TimeOnly ToTimeOnly()`

##### Returns

Type | Description |
---|---|

TimeOnly | A TimeOnly value equivalent to this one. |

##### Remarks

#### With(Func<LocalTime, LocalTime>)

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public LocalTime With(Func<LocalTime, LocalTime> adjuster)`

##### Parameters

Type | Name | Description |
---|---|---|

Func<LocalTime, LocalTime> | adjuster | The adjuster to apply. |

##### Returns

Type | Description |
---|---|

LocalTime | The adjusted time. |

##### Remarks

#### WithOffset(Offset)

**Since**2.3.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public OffsetTime WithOffset(Offset offset)`

##### Parameters

Type | Name | Description |
---|---|---|

Offset | offset | The offset to apply. |

##### Returns

Type | Description |
---|---|

OffsetTime | The result of this time-of-day offset by the given amount. |

##### Remarks

### Operators

#### operator +(LocalTime, Period)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime operator +(LocalTime time, Period period)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | time | The time to add the period to |

Period | period | The period to add |

##### Returns

Type | Description |
---|---|

LocalTime | The result of adding the period to the time, wrapping via midnight if necessary |

##### Remarks

The default value of this type is Midnight.

#### operator ==(LocalTime, LocalTime)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static bool operator ==(LocalTime lhs, LocalTime rhs)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | lhs | The first value to compare |

LocalTime | rhs | The second value to compare |

##### Returns

Type | Description |
---|---|

bool | True if the two times are the same; false otherwise |

##### Remarks

The default value of this type is Midnight.

#### operator >(LocalTime, LocalTime)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static bool operator >(LocalTime lhs, LocalTime rhs)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | lhs | First operand of the comparison |

LocalTime | rhs | Second operand of the comparison |

##### Returns

Type | Description |
---|---|

bool | true if the `lhs` is strictly later than `rhs` , false otherwise. |

##### Remarks

The default value of this type is Midnight.

#### operator >=(LocalTime, LocalTime)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static bool operator >=(LocalTime lhs, LocalTime rhs)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | lhs | First operand of the comparison |

LocalTime | rhs | Second operand of the comparison |

##### Returns

Type | Description |
---|---|

bool | true if the `lhs` is later than or equal to `rhs` , false otherwise. |

##### Remarks

The default value of this type is Midnight.

#### operator !=(LocalTime, LocalTime)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static bool operator !=(LocalTime lhs, LocalTime rhs)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | lhs | The first value to compare |

LocalTime | rhs | The second value to compare |

##### Returns

Type | Description |
---|---|

bool | False if the two times are the same; true otherwise |

##### Remarks

The default value of this type is Midnight.

#### operator <(LocalTime, LocalTime)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static bool operator <(LocalTime lhs, LocalTime rhs)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | lhs | First operand of the comparison |

LocalTime | rhs | Second operand of the comparison |

##### Returns

Type | Description |
---|---|

bool | true if the `lhs` is strictly earlier than `rhs` , false otherwise. |

##### Remarks

The default value of this type is Midnight.

#### operator <=(LocalTime, LocalTime)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static bool operator <=(LocalTime lhs, LocalTime rhs)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | lhs | First operand of the comparison |

LocalTime | rhs | Second operand of the comparison |

##### Returns

Type | Description |
---|---|

bool | true if the `lhs` is earlier than or equal to `rhs` , false otherwise. |

##### Remarks

The default value of this type is Midnight.

#### operator -(LocalTime, LocalTime)

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static Period operator -(LocalTime lhs, LocalTime rhs)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | lhs | The time to subtract from |

LocalTime | rhs | The time to subtract |

##### Returns

Type | Description |
---|---|

Period | The result of subtracting one time from another. |

##### Remarks

#### operator -(LocalTime, Period)

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static LocalTime operator -(LocalTime time, Period period)`

##### Parameters

Type | Name | Description |
---|---|---|

LocalTime | time | The time to subtract the period from |

Period | period | The period to subtract |

##### Returns

Type | Description |
---|---|

LocalTime | The result of subtract the period from the time, wrapping via midnight if necessary |

##### Remarks

The default value of this type is Midnight.