C# 클래스 CoreTechs.Common.DateTimeExtensions

파일 보기 프로젝트 열기: Core-Techs/Common

공개 메소드들

메소드 설명
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

메소드 상세

Abs() 공개 정적인 메소드

public static Abs ( this timeSpan ) : System.TimeSpan
timeSpan this
리턴 System.TimeSpan

Divide() 공개 정적인 메소드

public static Divide ( this timeSpan, double n ) : System.TimeSpan
timeSpan this
n double
리턴 System.TimeSpan

Multiply() 공개 정적인 메소드

public static Multiply ( this timeSpan, int n ) : System.TimeSpan
timeSpan this
n int
리턴 System.TimeSpan

SetDay() 공개 정적인 메소드

public static SetDay ( this dt, int day ) : System.DateTime
dt this
day int
리턴 System.DateTime

SetDay() 공개 정적인 메소드

public static SetDay ( this dt, int day ) : DateTimeOffset
dt this
day int
리턴 DateTimeOffset

SetHour() 공개 정적인 메소드

public static SetHour ( this dt, int hour ) : System.DateTime
dt this
hour int
리턴 System.DateTime

SetHour() 공개 정적인 메소드

public static SetHour ( this dt, int hour ) : DateTimeOffset
dt this
hour int
리턴 DateTimeOffset

SetMillisecond() 공개 정적인 메소드

public static SetMillisecond ( this dt, int millisecond ) : System.DateTime
dt this
millisecond int
리턴 System.DateTime

SetMillisecond() 공개 정적인 메소드

public static SetMillisecond ( this dt, int millisecond ) : DateTimeOffset
dt this
millisecond int
리턴 DateTimeOffset

SetMinute() 공개 정적인 메소드

public static SetMinute ( this dt, int minute ) : System.DateTime
dt this
minute int
리턴 System.DateTime

SetMinute() 공개 정적인 메소드

public static SetMinute ( this dt, int minute ) : DateTimeOffset
dt this
minute int
리턴 DateTimeOffset

SetMonth() 공개 정적인 메소드

public static SetMonth ( this dt, int month ) : System.DateTime
dt this
month int
리턴 System.DateTime

SetMonth() 공개 정적인 메소드

public static SetMonth ( this dt, int month ) : DateTimeOffset
dt this
month int
리턴 DateTimeOffset

SetSecond() 공개 정적인 메소드

public static SetSecond ( this dt, int second ) : System.DateTime
dt this
second int
리턴 System.DateTime

SetSecond() 공개 정적인 메소드

public static SetSecond ( this dt, int second ) : DateTimeOffset
dt this
second int
리턴 DateTimeOffset

SetYear() 공개 정적인 메소드

public static SetYear ( this dt, int year ) : System.DateTime
dt this
year int
리턴 System.DateTime

SetYear() 공개 정적인 메소드

public static SetYear ( this dt, int year ) : DateTimeOffset
dt this
year int
리턴 DateTimeOffset

Sleep() 공개 정적인 메소드

public static Sleep ( this timeSpan ) : void
timeSpan this
리턴 void

SpecifyKind() 공개 정적인 메소드

public static SpecifyKind ( this dt, DateTimeKind kind ) : DateTime
dt this
kind DateTimeKind
리턴 DateTime

ToDateTimeOffset() 공개 정적인 메소드

public static ToDateTimeOffset ( this dt ) : DateTimeOffset
dt this
리턴 DateTimeOffset

TotalMonths() 공개 정적인 메소드

public static TotalMonths ( this timeSpan ) : double
timeSpan this
리턴 double

TotalYears() 공개 정적인 메소드

public static TotalYears ( this timeSpan ) : double
timeSpan this
리턴 double

Truncate() 공개 정적인 메소드

public static Truncate ( this dt, DateTimePrecision precision = DateTimePrecision.Millisecond ) : DateTime
dt this
precision DateTimePrecision
리턴 DateTime

Truncate() 공개 정적인 메소드

public static Truncate ( this dt, DateTimePrecision precision = DateTimePrecision.Millisecond ) : DateTimeOffset
dt this
precision DateTimePrecision
리턴 DateTimeOffset