添加项目文件。
This commit is contained in:
41
WPFWCSDemo/StateCode/TimeFormat.cs
Normal file
41
WPFWCSDemo/StateCode/TimeFormat.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user