Method | Description | |
---|---|---|
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 | |
return | System.TimeSpan |
public static Divide ( this timeSpan, double n ) : System.TimeSpan | ||
timeSpan | this | |
n | double | |
return | System.TimeSpan |
public static Multiply ( this timeSpan, int n ) : System.TimeSpan | ||
timeSpan | this | |
n | int | |
return | System.TimeSpan |
public static SetDay ( this dt, int day ) : System.DateTime | ||
dt | this | |
day | int | |
return | System.DateTime |
public static SetDay ( this dt, int day ) : DateTimeOffset | ||
dt | this | |
day | int | |
return | DateTimeOffset |
public static SetHour ( this dt, int hour ) : System.DateTime | ||
dt | this | |
hour | int | |
return | System.DateTime |
public static SetHour ( this dt, int hour ) : DateTimeOffset | ||
dt | this | |
hour | int | |
return | DateTimeOffset |
public static SetMillisecond ( this dt, int millisecond ) : System.DateTime | ||
dt | this | |
millisecond | int | |
return | System.DateTime |
public static SetMillisecond ( this dt, int millisecond ) : DateTimeOffset | ||
dt | this | |
millisecond | int | |
return | DateTimeOffset |
public static SetMinute ( this dt, int minute ) : System.DateTime | ||
dt | this | |
minute | int | |
return | System.DateTime |
public static SetMinute ( this dt, int minute ) : DateTimeOffset | ||
dt | this | |
minute | int | |
return | DateTimeOffset |
public static SetMonth ( this dt, int month ) : System.DateTime | ||
dt | this | |
month | int | |
return | System.DateTime |
public static SetMonth ( this dt, int month ) : DateTimeOffset | ||
dt | this | |
month | int | |
return | DateTimeOffset |
public static SetSecond ( this dt, int second ) : System.DateTime | ||
dt | this | |
second | int | |
return | System.DateTime |
public static SetSecond ( this dt, int second ) : DateTimeOffset | ||
dt | this | |
second | int | |
return | DateTimeOffset |
public static SetYear ( this dt, int year ) : System.DateTime | ||
dt | this | |
year | int | |
return | System.DateTime |
public static SetYear ( this dt, int year ) : DateTimeOffset | ||
dt | this | |
year | int | |
return | DateTimeOffset |
public static SpecifyKind ( this dt, DateTimeKind kind ) : DateTime | ||
dt | this | |
kind | DateTimeKind | |
return | DateTime |
public static ToDateTimeOffset ( this dt ) : DateTimeOffset | ||
dt | this | |
return | DateTimeOffset |
public static TotalMonths ( this timeSpan ) : double | ||
timeSpan | this | |
return | double |
public static TotalYears ( this timeSpan ) : double | ||
timeSpan | this | |
return | double |
public static Truncate ( this dt, DateTimePrecision precision = DateTimePrecision.Millisecond ) : DateTime | ||
dt | this | |
precision | DateTimePrecision | |
return | DateTime |
public static Truncate ( this dt, DateTimePrecision precision = DateTimePrecision.Millisecond ) : DateTimeOffset | ||
dt | this | |
precision | DateTimePrecision | |
return | DateTimeOffset |