C# Class DRObjects.DataStructures.DivineRightDateTime

Show file Open project: Haedrian/Divine-Right Class Usage Examples

Public Methods

Method Description
Add ( DRTimeComponent component, int value ) : void

Adds a time component to the total

DivineRightDateTime ( DivineRightDateTime oldTime ) : System

Creates a new DateTime having the same time as the passed one

DivineRightDateTime ( int year, int month, int day ) : System

Creates a new DRDateTime representing a particular year.

DivineRightDateTime ( int year, int month, int day, int hour, int minute, int seconds ) : System
DivineRightDateTime ( long time ) : System
GetDateString ( ) : string

Expresses the Date in [Dayth of Month, year]

GetMonthName ( ) : string

Returns the name of the current month

GetTimeComponent ( DRTimeComponent component ) : int

Gets some part of the time component based on the multiplier

SetTimeComponent ( DRTimeComponent component, int value ) : void

Sets a particular Time Component to a particular value. If the value is 'too large' it will trickle over

Subtract ( DRTimeComponent component, int value ) : void
operator ( ) : DivineRightDateTime

Method Details

Add() public method

Adds a time component to the total
public Add ( DRTimeComponent component, int value ) : void
component DRTimeComponent
value int
return void

DivineRightDateTime() public method

Creates a new DateTime having the same time as the passed one
public DivineRightDateTime ( DivineRightDateTime oldTime ) : System
oldTime DivineRightDateTime
return System

DivineRightDateTime() public method

Creates a new DRDateTime representing a particular year.
public DivineRightDateTime ( int year, int month, int day ) : System
year int
month int
day int
return System

DivineRightDateTime() public method

public DivineRightDateTime ( int year, int month, int day, int hour, int minute, int seconds ) : System
year int
month int
day int
hour int
minute int
seconds int
return System

DivineRightDateTime() public method

public DivineRightDateTime ( long time ) : System
time long
return System

GetDateString() public method

Expresses the Date in [Dayth of Month, year]
public GetDateString ( ) : string
return string

GetMonthName() public method

Returns the name of the current month
public GetMonthName ( ) : string
return string

GetTimeComponent() public method

Gets some part of the time component based on the multiplier
public GetTimeComponent ( DRTimeComponent component ) : int
component DRTimeComponent
return int

SetTimeComponent() public method

Sets a particular Time Component to a particular value. If the value is 'too large' it will trickle over
public SetTimeComponent ( DRTimeComponent component, int value ) : void
component DRTimeComponent
value int
return void

Subtract() public method

public Subtract ( DRTimeComponent component, int value ) : void
component DRTimeComponent
value int
return void

operator() public static method

public static operator ( ) : DivineRightDateTime
return DivineRightDateTime