Table of Contents

Class XTimeOnly

Extension methods for TimeOnly.

Inheritance
System.Object
XTimeOnly
Namespace: Galaxon.Core.Time
Assembly: Galaxon.Core.dll
Syntax
public static class XTimeOnly : object

Methods

Subtract(TimeOnly, TimeOnly)

Subtract a start time from an end time to find the difference.

Declaration
public static TimeSpan Subtract(this TimeOnly end, TimeOnly start)
Parameters
Type Name Description
TimeOnly end

The end time.

TimeOnly start

The start time.

Returns
Type Description
TimeSpan

The time elapsed.

| Improve this Doc View Source

ToTimeSpan(TimeOnly)

Convert a TimeOnly to a TimeSpan.

Declaration
public static TimeSpan ToTimeSpan(this TimeOnly time)
Parameters
Type Name Description
TimeOnly time

The TimeOnly instance.

Returns
Type Description
TimeSpan

The new TimeSpan object

| Improve this Doc View Source
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX | Galaxy logo by Freepik