示例#1
0
 public static Period FromYears(int years)
 {
     return(PeriodHelper.Parse(years + "Y"));
 }
示例#2
0
 public static Period FromWeeks(int weeks)
 {
     return(PeriodHelper.Parse(weeks + "W"));
 }
示例#3
0
 public static Period FromMonths(int months)
 {
     return(PeriodHelper.Parse(months + "M"));
 }
示例#4
0
 public static Period FromDays(int days)
 {
     return(PeriodHelper.Parse(days + "D"));
 }