123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using FastReport.Utils;
- namespace FastReport.Format
- {
- /// <summary>
- /// Defines how time values are formatted and displayed.
- /// </summary>
- public class TimeFormat : CustomFormat
- {
- #region Public Methods
- /// <inheritdoc/>
- public override FormatBase Clone()
- {
- TimeFormat result = new TimeFormat();
- result.Format = Format;
- return result;
- }
- internal override string GetSampleValue()
- {
- return FormatValue(new DateTime(2007, 11, 30, 13, 30, 0));
- }
- #endregion
- /// <summary>
- /// Initializes a new instance of the <b>TimeFormat</b> class with default settings.
- /// </summary>
- public TimeFormat()
- {
- Format = "t";
- }
- }
- }
|