C# 클래스 Faker.Date

Class for date generation
파일 보기 프로젝트 열기: AdmiringWorm/Faker.NET.Portable

공개 메소드들

메소드 설명
Backwards ( int days = 365 ) : System.DateTime

Generates a random DateTime between number of days in the past and Today

Between ( System.DateTime from, System.DateTime to ) : System.DateTime

Generates a random DateTime between the specified from and to.

Birthday ( int minAge = 18, int maxAge = 65 ) : System.DateTime

Generates a random DateTime between the specified maximum age and minimum age.

Forward ( int days = 365 ) : System.DateTime

Generates a random DateTime between DateTime.Today">Today and number of

메소드 상세

Backwards() 공개 정적인 메소드

Generates a random DateTime between number of days in the past and Today
public static Backwards ( int days = 365 ) : System.DateTime
days int The number of days to calculate the minimum date.
리턴 System.DateTime

Between() 공개 정적인 메소드

Generates a random DateTime between the specified from and to.
public static Between ( System.DateTime from, System.DateTime to ) : System.DateTime
from System.DateTime The minimum date.
to System.DateTime The maximum date.
리턴 System.DateTime

Birthday() 공개 정적인 메소드

Generates a random DateTime between the specified maximum age and minimum age.
public static Birthday ( int minAge = 18, int maxAge = 65 ) : System.DateTime
minAge int The minimum years into the past.
maxAge int The maximum years into the past.
리턴 System.DateTime

Forward() 공개 정적인 메소드

Generates a random DateTime between DateTime.Today">Today and number of
public static Forward ( int days = 365 ) : System.DateTime
days int The number of days to calculate the maximum date.
리턴 System.DateTime