C# Класс DevUtils.DateTimeExtensions.Utils

Date urils class
Показать файл Открыть проект

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

Метод Описание
AddBusinessDays ( this date, int days ) : System.DateTime

Add business days on a DateTime

AddBusinessDays ( this date, int days, DayOfWeek businessDays ) : System.DateTime

Add business days on a DateTime

EndOfBusinessMonth ( Month month, int year ) : System.DateTime

Get end of month from year/month

EndOfBusinessMonth ( Month month, int year, DayOfWeek businessDays ) : System.DateTime

Get end of month from year/month

EndOfBusinessMonth ( this date ) : System.DateTime

Get end of business month

EndOfBusinessMonth ( this date, DayOfWeek businessDays ) : System.DateTime

Get end of business month

EndOfBusinessWeek ( this date ) : System.DateTime

Get end of business week

EndOfBusinessWeek ( this date, DayOfWeek lastBusinessDay ) : System.DateTime

Get end of business week

EndOfBusinessYear ( int year ) : System.DateTime

Get end of business year

EndOfBusinessYear ( int year, DayOfWeek businessDays ) : System.DateTime

Get end of business year

EndOfBusinessYear ( this date ) : System.DateTime

Get end of business year

EndOfBusinessYear ( this date, DayOfWeek businessDays ) : System.DateTime

Get end of business year

EndOfDay ( this date ) : System.DateTime

Get end of day

EndOfMonth ( Month month, int year ) : System.DateTime

Get end of month from year/month

EndOfMonth ( this date ) : System.DateTime

Get end of month

EndOfWeek ( this date ) : System.DateTime

Get end of week

EndOfWeek ( this date, DayOfWeek lastDay ) : System.DateTime

Get end of week

EndOfYear ( int year ) : System.DateTime

Get end of year

EndOfYear ( this date ) : System.DateTime

Get end of year

RemoveBusinessDays ( this date, int days ) : System.DateTime

Remove business days on a DateTime

RemoveBusinessDays ( this date, int days, DayOfWeek businessDays ) : System.DateTime

Remove business days on a DateTime

SetDate ( this date, int year, int month, int day ) : System.DateTime

Set date of datetime

SetDay ( this date, int day ) : System.DateTime

Set day of date

SetHour ( this date, int hour ) : System.DateTime

Set hour of date

SetMillisecond ( this date, int millisecond ) : System.DateTime

Set millisecond of date

SetMinute ( this date, int minute ) : System.DateTime

Set minute of date

SetMonth ( this date, int month ) : System.DateTime

Set month of date

SetSecond ( this date, int second ) : System.DateTime

Set second of date

SetTime ( this date, int hour, int minute ) : System.DateTime

Set time of date

SetTime ( this date, int hour, int minute, int second ) : System.DateTime

Set time of date

SetTime ( this date, int hour, int minute, int second, int millisecond ) : System.DateTime

Set time of date

SetYear ( this date, int year ) : System.DateTime

Set year of date

StartOfBusinessMonth ( Month month, int year ) : System.DateTime

Get start of month from year/month

StartOfBusinessMonth ( Month month, int year, DayOfWeek businessDays ) : System.DateTime

Get start of month from year/month

StartOfBusinessMonth ( this date ) : System.DateTime

Get start of business month

StartOfBusinessMonth ( this date, DayOfWeek businessDays ) : System.DateTime

Get start of business month

StartOfBusinessWeek ( this date ) : System.DateTime

Get start of business week

StartOfBusinessWeek ( this date, DayOfWeek firstBusinessDay ) : System.DateTime

Get start of business week

StartOfBusinessYear ( int year ) : System.DateTime

Get start of business year

StartOfBusinessYear ( int year, DayOfWeek businessDays ) : System.DateTime

Get start of business year

StartOfBusinessYear ( this date ) : System.DateTime

Get start of business year

StartOfBusinessYear ( this date, DayOfWeek businessDays ) : System.DateTime

Get start of business year

StartOfDay ( this date ) : System.DateTime

Get start of day

StartOfMonth ( Month month, int year ) : System.DateTime

Get start of month from year/month

StartOfMonth ( this date ) : System.DateTime

Get start of month

StartOfWeek ( this date ) : System.DateTime

Get start of week

StartOfWeek ( this date, DayOfWeek firstDay ) : System.DateTime

Get start of week

StartOfYear ( int year ) : System.DateTime

Get start of year

StartOfYear ( this date ) : System.DateTime

Get start of year

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

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

Add business days on a DateTime
public static AddBusinessDays ( this date, int days ) : System.DateTime
date this Date to add days
days int Days to add
Результат System.DateTime

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

Add business days on a DateTime
public static AddBusinessDays ( this date, int days, DayOfWeek businessDays ) : System.DateTime
date this Date to add days
days int Days to add
businessDays DayOfWeek Business days
Результат System.DateTime

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

Get end of month from year/month
public static EndOfBusinessMonth ( Month month, int year ) : System.DateTime
month Month month reference
year int year reference
Результат System.DateTime

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

Get end of month from year/month
public static EndOfBusinessMonth ( Month month, int year, DayOfWeek businessDays ) : System.DateTime
month Month month reference
year int year reference
businessDays DayOfWeek business days list
Результат System.DateTime

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

Get end of business month
public static EndOfBusinessMonth ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get end of business month
public static EndOfBusinessMonth ( this date, DayOfWeek businessDays ) : System.DateTime
date this base date
businessDays DayOfWeek business days list
Результат System.DateTime

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

Get end of business week
public static EndOfBusinessWeek ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get end of business week
public static EndOfBusinessWeek ( this date, DayOfWeek lastBusinessDay ) : System.DateTime
date this base date
lastBusinessDay DayOfWeek last week business day
Результат System.DateTime

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

Get end of business year
public static EndOfBusinessYear ( int year ) : System.DateTime
year int reference year
Результат System.DateTime

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

Get end of business year
public static EndOfBusinessYear ( int year, DayOfWeek businessDays ) : System.DateTime
year int reference year
businessDays DayOfWeek business days list
Результат System.DateTime

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

Get end of business year
public static EndOfBusinessYear ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get end of business year
public static EndOfBusinessYear ( this date, DayOfWeek businessDays ) : System.DateTime
date this base date
businessDays DayOfWeek business days list
Результат System.DateTime

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

Get end of day
public static EndOfDay ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get end of month from year/month
public static EndOfMonth ( Month month, int year ) : System.DateTime
month Month month reference
year int year reference
Результат System.DateTime

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

Get end of month
public static EndOfMonth ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get end of week
public static EndOfWeek ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get end of week
public static EndOfWeek ( this date, DayOfWeek lastDay ) : System.DateTime
date this base date
lastDay DayOfWeek last week day
Результат System.DateTime

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

Get end of year
public static EndOfYear ( int year ) : System.DateTime
year int reference year
Результат System.DateTime

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

Get end of year
public static EndOfYear ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Remove business days on a DateTime
public static RemoveBusinessDays ( this date, int days ) : System.DateTime
date this Date to remove days
days int Days to remove
Результат System.DateTime

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

Remove business days on a DateTime
public static RemoveBusinessDays ( this date, int days, DayOfWeek businessDays ) : System.DateTime
date this Date to remove days
days int Days to remove
businessDays DayOfWeek Business days
Результат System.DateTime

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

Set date of datetime
public static SetDate ( this date, int year, int month, int day ) : System.DateTime
date this Date to set date
year int Year to set
month int Month to set
day int Day to set
Результат System.DateTime

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

Set day of date
public static SetDay ( this date, int day ) : System.DateTime
date this Date to set date
day int Day to set
Результат System.DateTime

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

Set hour of date
public static SetHour ( this date, int hour ) : System.DateTime
date this Date to set time
hour int Hours to set
Результат System.DateTime

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

Set millisecond of date
public static SetMillisecond ( this date, int millisecond ) : System.DateTime
date this Date to set time
millisecond int Millisecond to set
Результат System.DateTime

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

Set minute of date
public static SetMinute ( this date, int minute ) : System.DateTime
date this Date to set time
minute int Minute to set
Результат System.DateTime

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

Set month of date
public static SetMonth ( this date, int month ) : System.DateTime
date this Date to set date
month int Month to set
Результат System.DateTime

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

Set second of date
public static SetSecond ( this date, int second ) : System.DateTime
date this Date to set time
second int Second to set
Результат System.DateTime

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

Set time of date
public static SetTime ( this date, int hour, int minute ) : System.DateTime
date this Date to add time
hour int Hours to add
minute int Minutes to add
Результат System.DateTime

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

Set time of date
public static SetTime ( this date, int hour, int minute, int second ) : System.DateTime
date this Date to add time
hour int Hours to add
minute int Minutes to add
second int Seconds to add
Результат System.DateTime

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

Set time of date
public static SetTime ( this date, int hour, int minute, int second, int millisecond ) : System.DateTime
date this Date to add time
hour int Hours to add
minute int Minutes to add
second int Seconds to add
millisecond int Milliseconds to add
Результат System.DateTime

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

Set year of date
public static SetYear ( this date, int year ) : System.DateTime
date this Date to set date
year int Year to set
Результат System.DateTime

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

Get start of month from year/month
public static StartOfBusinessMonth ( Month month, int year ) : System.DateTime
month Month month reference
year int year reference
Результат System.DateTime

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

Get start of month from year/month
public static StartOfBusinessMonth ( Month month, int year, DayOfWeek businessDays ) : System.DateTime
month Month month reference
year int year reference
businessDays DayOfWeek business days list
Результат System.DateTime

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

Get start of business month
public static StartOfBusinessMonth ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get start of business month
public static StartOfBusinessMonth ( this date, DayOfWeek businessDays ) : System.DateTime
date this base date
businessDays DayOfWeek business days list
Результат System.DateTime

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

Get start of business week
public static StartOfBusinessWeek ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get start of business week
public static StartOfBusinessWeek ( this date, DayOfWeek firstBusinessDay ) : System.DateTime
date this base date
firstBusinessDay DayOfWeek first week business day
Результат System.DateTime

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

Get start of business year
public static StartOfBusinessYear ( int year ) : System.DateTime
year int year reference
Результат System.DateTime

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

Get start of business year
public static StartOfBusinessYear ( int year, DayOfWeek businessDays ) : System.DateTime
year int year reference
businessDays DayOfWeek business days list
Результат System.DateTime

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

Get start of business year
public static StartOfBusinessYear ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get start of business year
public static StartOfBusinessYear ( this date, DayOfWeek businessDays ) : System.DateTime
date this base date
businessDays DayOfWeek business days list
Результат System.DateTime

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

Get start of day
public static StartOfDay ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get start of month from year/month
public static StartOfMonth ( Month month, int year ) : System.DateTime
month Month month reference
year int year reference
Результат System.DateTime

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

Get start of month
public static StartOfMonth ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get start of week
public static StartOfWeek ( this date ) : System.DateTime
date this base date
Результат System.DateTime

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

Get start of week
public static StartOfWeek ( this date, DayOfWeek firstDay ) : System.DateTime
date this base date
firstDay DayOfWeek first week day
Результат System.DateTime

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

Get start of year
public static StartOfYear ( int year ) : System.DateTime
year int year reference
Результат System.DateTime

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

Get start of year
public static StartOfYear ( this date ) : System.DateTime
date this base date
Результат System.DateTime