FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.Internal.CommonDataTypes.Date Struct Reference

Custom serializable date struct, easy to set in the unity inspector. More...

Public Types

enum  Month : byte {
  January , February , March , April ,
  May , June , July , August ,
  September , October , November , December
}
 

Public Member Functions

override string ToString ()
 Converts the date to a string.
 
string ToDayMonthYearString ()
 Converts the date to a string in the format dd/MM/yyyy.
 

Static Public Member Functions

static implicit operator DateTime (Date date)
 Converts the date to a DateTime object.
 

Public Attributes

Month month
 
int day
 
int year
 

Static Public Attributes

static CultureInfo formatProvider = new("en-GB")
 

Detailed Description

Custom serializable date struct, easy to set in the unity inspector.

Member Enumeration Documentation

◆ Month

Enumerator
January 
February 
March 
April 
May 
June 
July 
August 
September 
October 
November 
December 

Member Function Documentation

◆ operator DateTime()

static implicit FMAR.Internal.CommonDataTypes.Date.operator DateTime ( Date date)
inlinestatic

Converts the date to a DateTime object.

Parameters
dateThe date to convert.
Returns
The date as a DateTime object.

◆ ToDayMonthYearString()

string FMAR.Internal.CommonDataTypes.Date.ToDayMonthYearString ( )
inline

Converts the date to a string in the format dd/MM/yyyy.

Returns
The date as a string.

◆ ToString()

override string FMAR.Internal.CommonDataTypes.Date.ToString ( )
inline

Converts the date to a string.

Returns
The date as a string.

Member Data Documentation

◆ day

int FMAR.Internal.CommonDataTypes.Date.day

◆ formatProvider

CultureInfo FMAR.Internal.CommonDataTypes.Date.formatProvider = new("en-GB")
static

◆ month

Month FMAR.Internal.CommonDataTypes.Date.month

◆ year

int FMAR.Internal.CommonDataTypes.Date.year

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