Files
FT479/WPFWCSDemo/StateCode/TimeFormat.cs
2026-06-29 14:46:32 +08:00

42 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WPFWCSDemo.StateCode
{
/// <summary>
/// 时间格式字符串
/// </summary>
public class TimeFormat
{
/// <summary>
/// 日期
/// </summary>
public const string stringFormatDateOnly = "yyyy/MM/dd";
/// <summary>
/// 时间(时分秒)
/// </summary>
public const string stringFormatTimeOnly = "HH:mm:ss";
/// <summary>
/// 日期 时间
/// </summary>
public const string stringFormat = "yyyy/MM/dd HH:mm:ss";
/// <summary>
/// 日期 时间.毫秒(小数点2位)
/// </summary>
public const string stringFormatff = "yyyy/MM/dd HH:mm:ss.ff";
/// <summary>
/// 日期 时间.毫秒(小数点3位)
/// </summary>
public const string stringFormatfff = "yyyy/MM/dd HH:mm:ss.fff";
/// <summary>
/// 日期 时间.毫秒(小数点7位)
/// </summary>
public const string stringFormatfffffff = "yyyy/MM/dd HH:mm:ss.fffffff";
}
}