LUSID C# SDK
Public Member Functions | Static Public Member Functions | Properties | List of all members
Lusid.Sdk.DateTimeOrCutLabel Class Reference

Entity for specifying a date or a cut label. Dates are serialised in the standard round-trip format - see https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings#Roundtrip Cut labels are serialised using the format [YYYY-MM-DD]N[cut label] - see https://support.lusid.com/what-are-cutlabels More...

Public Member Functions

 DateTimeOrCutLabel (DateTimeOffset datetime)
 Create a DateOrCutLabel for the specified date More...
 
 DateTimeOrCutLabel (DateTimeOffset date, string cutLabel)
 Create a DateOrCutLabel for the specified cutlabel on the specified date. Note that if the date contains any time portion this will cause an exception More...
 
override string ToString ()
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static implicit operator DateTimeOrCutLabel (DateTimeOffset date)
 Conversion from a DateTimeOffset to a DateOrCutLabel More...
 
static implicit operator DateTimeOrCutLabel (string cutLabel)
 Conversion from a string to a DateOrCutLabel. This string is assumed to already be in a valid format More...
 
static implicit operator string (DateTimeOrCutLabel value)
 implicitly converts a DateTimeOrCutLabel to a string. More...
 

Properties

int Length [get]
 Length of the supplied parameter. More...
 

Detailed Description

Entity for specifying a date or a cut label. Dates are serialised in the standard round-trip format - see https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings#Roundtrip Cut labels are serialised using the format [YYYY-MM-DD]N[cut label] - see https://support.lusid.com/what-are-cutlabels

Constructor & Destructor Documentation

◆ DateTimeOrCutLabel() [1/2]

Lusid.Sdk.DateTimeOrCutLabel.DateTimeOrCutLabel ( DateTimeOffset  datetime)
inline

Create a DateOrCutLabel for the specified date

◆ DateTimeOrCutLabel() [2/2]

Lusid.Sdk.DateTimeOrCutLabel.DateTimeOrCutLabel ( DateTimeOffset  date,
string  cutLabel 
)
inline

Create a DateOrCutLabel for the specified cutlabel on the specified date. Note that if the date contains any time portion this will cause an exception

Parameters
date
cutLabel

Member Function Documentation

◆ operator DateTimeOrCutLabel() [1/2]

static implicit Lusid.Sdk.DateTimeOrCutLabel.operator DateTimeOrCutLabel ( DateTimeOffset  date)
inlinestatic

Conversion from a DateTimeOffset to a DateOrCutLabel

◆ operator DateTimeOrCutLabel() [2/2]

static implicit Lusid.Sdk.DateTimeOrCutLabel.operator DateTimeOrCutLabel ( string  cutLabel)
inlinestatic

Conversion from a string to a DateOrCutLabel. This string is assumed to already be in a valid format

◆ operator string()

static implicit Lusid.Sdk.DateTimeOrCutLabel.operator string ( DateTimeOrCutLabel  value)
inlinestatic

implicitly converts a DateTimeOrCutLabel to a string.

Parameters
value
Returns

Property Documentation

◆ Length

int Lusid.Sdk.DateTimeOrCutLabel.Length
get

Length of the supplied parameter.

Returns
an in indicating the length of the DateTimeOrCutLabel if it were converted to a string.

The documentation for this class was generated from the following file: