Exemple #1
0
        public static TokenIndeterminateSeries GetIndeterminateSeriesFromTokens(TokenEach each, TokenOther other, TokenDayOfWeek dow, TokenTime time)
        {
            var startDate = DateTime.Today;
            var theDateTime = (TimeSpan)time.Value;

            var series = new TokenIndeterminateSeries
            {
                Interval = 2,
                IntervalType = TokenIndeterminateSeries.SeriesIntervalType.DayOfWeek,
                StartDate = startDate + theDateTime,
                Value = dow
            };
            return series;
        }
Exemple #2
0
        public static TokenIndeterminateSeries GetIndeterminateSeriesFromTokens(TokenEach each, TokenOrdinal ordinal, TokenTime time)
        {
            var startDate = DateTime.Today;
            var theDateTime = (TimeSpan)time.Value;

            var series = new TokenIndeterminateSeries
            {
                Interval = 1,
                IntervalType = TokenIndeterminateSeries.SeriesIntervalType.DayOfMonth,
                StartDate = startDate + theDateTime,
                Value = ordinal.Value
            };
            return series;
        }
Exemple #3
0
        public static TokenIndeterminateSeries GetIndeterminateSeriesFromTokens(TokenEach each, TokenOther other, TokenDayOfWeek dow)
        {
            var startDate = DateTime.Now;

            var series = new TokenIndeterminateSeries
            {
                Interval = 2,
                IntervalType = TokenIndeterminateSeries.SeriesIntervalType.DayOfWeek,
                StartDate = startDate,
                Value = dow
            };
            return series;
        }
Exemple #4
0
        public static TokenIndeterminateSeries GetIndeterminateSeriesFromTokens(TokenEach each, TokenOrdinal ordinal)
        {
            var startDate = DateTime.Now;

            var series = new TokenIndeterminateSeries
            {
                Interval = 1,
                IntervalType = TokenIndeterminateSeries.SeriesIntervalType.DayOfMonth,
                StartDate = startDate,
                Value = ordinal.Value
            };
            return series;
        }