C# Class DRObjects.DataStructures.DivineRightDateTime

Afficher le fichier Open project: Haedrian/Divine-Right Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

DivineRightDateTime() public méthode

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

DivineRightDateTime() public méthode

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

DivineRightDateTime() public méthode

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
Résultat System

DivineRightDateTime() public méthode

public DivineRightDateTime ( long time ) : System
time long
Résultat System

GetDateString() public méthode

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

GetMonthName() public méthode

Returns the name of the current month
public GetMonthName ( ) : string
Résultat string

GetTimeComponent() public méthode

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

SetTimeComponent() public méthode

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
Résultat void

Subtract() public méthode

public Subtract ( DRTimeComponent component, int value ) : void
component DRTimeComponent
value int
Résultat void

operator() public static méthode

public static operator ( ) : DivineRightDateTime
Résultat DivineRightDateTime