C# Класс DRObjects.DataStructures.DivineRightDateTime

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Add() публичный Метод

Adds a time component to the total
public Add ( DRTimeComponent component, int value ) : void
component DRTimeComponent
value int
Результат void

DivineRightDateTime() публичный Метод

Creates a new DateTime having the same time as the passed one
public DivineRightDateTime ( DivineRightDateTime oldTime ) : System
oldTime DivineRightDateTime
Результат System

DivineRightDateTime() публичный Метод

Creates a new DRDateTime representing a particular year.
public DivineRightDateTime ( int year, int month, int day ) : System
year int
month int
day int
Результат System

DivineRightDateTime() публичный Метод

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
Результат System

DivineRightDateTime() публичный Метод

public DivineRightDateTime ( long time ) : System
time long
Результат System

GetDateString() публичный Метод

Expresses the Date in [Dayth of Month, year]
public GetDateString ( ) : string
Результат string

GetMonthName() публичный Метод

Returns the name of the current month
public GetMonthName ( ) : string
Результат string

GetTimeComponent() публичный Метод

Gets some part of the time component based on the multiplier
public GetTimeComponent ( DRTimeComponent component ) : int
component DRTimeComponent
Результат int

SetTimeComponent() публичный Метод

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
Результат void

Subtract() публичный Метод

public Subtract ( DRTimeComponent component, int value ) : void
component DRTimeComponent
value int
Результат void

operator() публичный статический Метод

public static operator ( ) : DivineRightDateTime
Результат DivineRightDateTime