Table of Contents

Struct ZuluTime

Namespace
Glitch9
public readonly struct ZuluTime : IComparable<ZuluTime>, IEquatable<ZuluTime>
Implements
Inherited Members
Extension Methods

Constructors

ZuluTime(DateTime, int)

public ZuluTime(DateTime dateTime, int nanoseconds)

Parameters

dateTime DateTime
nanoseconds int

Properties

DateTime

public DateTime DateTime { get; }

Property Value

DateTime

MinValue

public static ZuluTime MinValue { get; }

Property Value

ZuluTime

Nanoseconds

public int Nanoseconds { get; }

Property Value

int

Methods

Add(ZuluTime)

public TimeSpan Add(ZuluTime b)

Parameters

b ZuluTime

Returns

TimeSpan

AddDays(long)

public ZuluTime AddDays(long days)

Parameters

days long

Returns

ZuluTime

AddHours(long)

public ZuluTime AddHours(long hours)

Parameters

hours long

Returns

ZuluTime

AddMinutes(long)

public ZuluTime AddMinutes(long minutes)

Parameters

minutes long

Returns

ZuluTime

AddSeconds(long)

public ZuluTime AddSeconds(long seconds)

Parameters

seconds long

Returns

ZuluTime

CompareTo(ZuluTime)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(ZuluTime other)

Parameters

other ZuluTime

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

Equals(ZuluTime)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ZuluTime other)

Parameters

other ZuluTime

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Parse(string)

public static ZuluTime Parse(string s)

Parameters

s string

Returns

ZuluTime

Subtract(ZuluTime)

public TimeSpan Subtract(ZuluTime b)

Parameters

b ZuluTime

Returns

TimeSpan

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator +(ZuluTime, ZuluTime)

public static TimeSpan operator +(ZuluTime a, ZuluTime b)

Parameters

a ZuluTime
b ZuluTime

Returns

TimeSpan

operator ==(ZuluTime, ZuluTime)

public static bool operator ==(ZuluTime left, ZuluTime right)

Parameters

left ZuluTime
right ZuluTime

Returns

bool

operator >(ZuluTime, ZuluTime)

public static bool operator >(ZuluTime left, ZuluTime right)

Parameters

left ZuluTime
right ZuluTime

Returns

bool

operator >=(ZuluTime, ZuluTime)

public static bool operator >=(ZuluTime left, ZuluTime right)

Parameters

left ZuluTime
right ZuluTime

Returns

bool

operator !=(ZuluTime, ZuluTime)

public static bool operator !=(ZuluTime left, ZuluTime right)

Parameters

left ZuluTime
right ZuluTime

Returns

bool

operator <(ZuluTime, ZuluTime)

public static bool operator <(ZuluTime left, ZuluTime right)

Parameters

left ZuluTime
right ZuluTime

Returns

bool

operator <=(ZuluTime, ZuluTime)

public static bool operator <=(ZuluTime left, ZuluTime right)

Parameters

left ZuluTime
right ZuluTime

Returns

bool

operator -(ZuluTime, ZuluTime)

public static TimeSpan operator -(ZuluTime a, ZuluTime b)

Parameters

a ZuluTime
b ZuluTime

Returns

TimeSpan