コード例 #1
0
        /// <summary>
        /// The formal representation of this date.
        /// </summary>
        /// <returns>
        /// The formal representation of this date.
        /// </returns>
        public override String ToFormalString()
        {
            StringBuilder range = new StringBuilder();

            if (approximate)
            {
                range.Append('A');
            }

            if (start != null)
            {
                range.Append(start.ToFormalString());
            }

            range.Append('/');

            if (duration != null)
            {
                range.Append(duration.ToFormalString());
            }
            else if (end != null)
            {
                range.Append(end.ToFormalString());
            }

            return(range.ToString());
        }
コード例 #2
0
 /// <summary>
 /// The formal representation of this date.
 /// </summary>
 /// <returns>
 /// The formal representation of this date.
 /// </returns>
 public override String ToFormalString()
 {
     return("A" + simpleDate.ToFormalString());
 }