Метод | Описание | |
---|---|---|
Abs ( this timeSpan ) : System.TimeSpan | ||
Divide ( this timeSpan, double n ) : System.TimeSpan | ||
Multiply ( this timeSpan, int n ) : System.TimeSpan | ||
SetDay ( this dt, int day ) : System.DateTime | ||
SetDay ( this dt, int day ) : DateTimeOffset | ||
SetHour ( this dt, int hour ) : System.DateTime | ||
SetHour ( this dt, int hour ) : DateTimeOffset | ||
SetMillisecond ( this dt, int millisecond ) : System.DateTime | ||
SetMillisecond ( this dt, int millisecond ) : DateTimeOffset | ||
SetMinute ( this dt, int minute ) : System.DateTime | ||
SetMinute ( this dt, int minute ) : DateTimeOffset | ||
SetMonth ( this dt, int month ) : System.DateTime | ||
SetMonth ( this dt, int month ) : DateTimeOffset | ||
SetSecond ( this dt, int second ) : System.DateTime | ||
SetSecond ( this dt, int second ) : DateTimeOffset | ||
SetYear ( this dt, int year ) : System.DateTime | ||
SetYear ( this dt, int year ) : DateTimeOffset | ||
Sleep ( this timeSpan ) : void | ||
SpecifyKind ( this dt, DateTimeKind kind ) : DateTime | ||
ToDateTimeOffset ( this dt ) : DateTimeOffset | ||
TotalMonths ( this timeSpan ) : double | ||
TotalYears ( this timeSpan ) : double | ||
Truncate ( this dt, DateTimePrecision precision = DateTimePrecision.Millisecond ) : DateTime | ||
Truncate ( this dt, DateTimePrecision precision = DateTimePrecision.Millisecond ) : DateTimeOffset |
public static Abs ( this timeSpan ) : System.TimeSpan | ||
timeSpan | this | |
Результат | System.TimeSpan |
public static Divide ( this timeSpan, double n ) : System.TimeSpan | ||
timeSpan | this | |
n | double | |
Результат | System.TimeSpan |
public static Multiply ( this timeSpan, int n ) : System.TimeSpan | ||
timeSpan | this | |
n | int | |
Результат | System.TimeSpan |
public static SetDay ( this dt, int day ) : System.DateTime | ||
dt | this | |
day | int | |
Результат | System.DateTime |
public static SetDay ( this dt, int day ) : DateTimeOffset | ||
dt | this | |
day | int | |
Результат | DateTimeOffset |
public static SetHour ( this dt, int hour ) : System.DateTime | ||
dt | this | |
hour | int | |
Результат | System.DateTime |
public static SetHour ( this dt, int hour ) : DateTimeOffset | ||
dt | this | |
hour | int | |
Результат | DateTimeOffset |
public static SetMillisecond ( this dt, int millisecond ) : System.DateTime | ||
dt | this | |
millisecond | int | |
Результат | System.DateTime |
public static SetMillisecond ( this dt, int millisecond ) : DateTimeOffset | ||
dt | this | |
millisecond | int | |
Результат | DateTimeOffset |
public static SetMinute ( this dt, int minute ) : System.DateTime | ||
dt | this | |
minute | int | |
Результат | System.DateTime |
public static SetMinute ( this dt, int minute ) : DateTimeOffset | ||
dt | this | |
minute | int | |
Результат | DateTimeOffset |
public static SetMonth ( this dt, int month ) : System.DateTime | ||
dt | this | |
month | int | |
Результат | System.DateTime |
public static SetMonth ( this dt, int month ) : DateTimeOffset | ||
dt | this | |
month | int | |
Результат | DateTimeOffset |
public static SetSecond ( this dt, int second ) : System.DateTime | ||
dt | this | |
second | int | |
Результат | System.DateTime |
public static SetSecond ( this dt, int second ) : DateTimeOffset | ||
dt | this | |
second | int | |
Результат | DateTimeOffset |
public static SetYear ( this dt, int year ) : System.DateTime | ||
dt | this | |
year | int | |
Результат | System.DateTime |
public static SetYear ( this dt, int year ) : DateTimeOffset | ||
dt | this | |
year | int | |
Результат | DateTimeOffset |
public static Sleep ( this timeSpan ) : void | ||
timeSpan | this | |
Результат | void |
public static SpecifyKind ( this dt, DateTimeKind kind ) : DateTime | ||
dt | this | |
kind | DateTimeKind | |
Результат | DateTime |
public static ToDateTimeOffset ( this dt ) : DateTimeOffset | ||
dt | this | |
Результат | DateTimeOffset |
public static TotalMonths ( this timeSpan ) : double | ||
timeSpan | this | |
Результат | double |
public static TotalYears ( this timeSpan ) : double | ||
timeSpan | this | |
Результат | double |
public static Truncate ( this dt, DateTimePrecision precision = DateTimePrecision.Millisecond ) : DateTime | ||
dt | this | |
precision | DateTimePrecision | |
Результат | DateTime |
public static Truncate ( this dt, DateTimePrecision precision = DateTimePrecision.Millisecond ) : DateTimeOffset | ||
dt | this | |
precision | DateTimePrecision | |
Результат | DateTimeOffset |