Exemple #1
0
        public string ConvertText(DateTime endTime)
        {
            var start = Start.ToString("yyyy\\/MM\\/dd(ddd)");
            var end   = End >= endTime ? "以降全て" : End.AddSeconds(-1).ToString("~MM\\/dd(ddd)");

            return(string.Format("{0}{1}", start, end));
        }
Exemple #2
0
        public virtual Period Next(bool create = true)
        {
            if (_next != null || !create)
            {
                return(_next);
            }

            _next           = OnMakeNext(End.AddSeconds(1), Granularity);
            _next._previous = this;
            return(_next);
        }