示例#1
0
 protected override string Format(ITimeFormatter formatter) {
     return formatter.GetCalendarPeriod(StartYearName,
                                        EndYearName,
                                        formatter.GetShortDate(Start),
                                        formatter.GetShortDate(End),
                                        Duration);
 }
示例#2
0
 protected override string Format(ITimeFormatter formatter)
 {
     return(formatter.GetCalendarPeriod(StartYearName,
                                        EndYearName,
                                        formatter.GetShortDate(Start),
                                        formatter.GetShortDate(End),
                                        Duration));
 }
示例#3
0
        protected override string Format(ITimeFormatter formatter) {
            var fmt = formatter ?? TimeFormatter.Instance;

            return formatter.GetCalendarPeriod(WeekOfYearName,
                                               fmt.GetShortDate(Start),
                                               fmt.GetShortDate(End),
                                               Duration);
        }
示例#4
0
        protected override string Format(ITimeFormatter formatter)
        {
            var fmt = formatter ?? TimeFormatter.Instance;

            return(formatter.GetCalendarPeriod(WeekOfYearName,
                                               fmt.GetShortDate(Start),
                                               fmt.GetShortDate(End),
                                               Duration));
        }
示例#5
0
        }         // AddMonths

        // ----------------------------------------------------------------------
        protected override string Format(ITimeFormatter formatter)
        {
            return(formatter.GetCalendarPeriod(string.Format("{0}/{1}", Year, Month),
                                               formatter.GetShortDate(Start), formatter.GetShortDate(End), Duration));
        }         // Format
示例#6
0
        } // Copy

        // ----------------------------------------------------------------------
        protected override string Format(ITimeFormatter formatter)
        {
            return(formatter.GetCalendarPeriod(formatter.GetDateTime(Start), formatter.GetDateTime(End), Duration));
        } // Format
示例#7
0
 // ----------------------------------------------------------------------
 protected override string Format( ITimeFormatter formatter )
 {
     return formatter.GetCalendarPeriod( formatter.GetDateTime( Start), formatter.GetDateTime( End ), Duration );
 }
示例#8
0
 protected override string Format(ITimeFormatter formatter)
 {
     return(formatter.GetCalendarPeriod(Year.ToString(CultureInfo.InvariantCulture),
                                        formatter.GetShortDate(Start), formatter.GetShortDate(End), Duration));
 }