Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct Duende.​IdentityServer.​Saml.​Common.​DateTimeUtc
Assembly: Duende.IdentityServer
Implemented Interfaces
DateTime that only allows DateTimeKind UTC.
Properties
public
long
Ticks
Ticks of the DateTime
Methods
public static
DateTimeUtc
FromDateTime​(System.​DateTime source)
Creates a <see cref="T:Duende.IdentityServer.Saml.Common.DateTimeUtc" /> from a <see cref="T:System.DateTime" /> .
The source must be of <see cref="F:System.DateTimeKind.Utc" /> kind.
Returns A new DateTimeUtc
source
Source DateTime
ToDateTime​()
Converts this instance to a <see cref="T:System.DateTime" /> with <see cref="F:System.DateTimeKind.Utc" /> .
Returns A DateTime
ToDateTimeOffset​()
Converts this instance to a <see cref="T:System.DateTimeOffset" /> .
Returns A DateTimeOffset
public
int
CompareTo​(System.​DateTimeOffset other)
Compares this instance to a <see cref="T:System.DateTimeOffset" /> .
Returns Negative if this is earlier, zero if equal, positive if later
other
The DateTimeOffset to compare to
public
bool
Equals​(object obj)
public
int
GetHashCode​()
public
string
ToString​()
ToString
Returns String
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object