Files
Main/Assets/Plugins/References/FuncellBase/Timer/TimeConstDefine.cs

30 lines
717 B
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
using System;
using System.Collections.Generic;
using System.Text;
namespace Thousandto.Core.Base
{
/// <summary>
/// 时间常量定义
/// </summary>
public class TimeConstDefine
{
//一天的秒数
public const uint OneDaySecond = 24 * 3600;
//以小时的秒数
public const uint OneHourSecond = 3600;
//这个数据用于矫正服务器与客户端时间
public const ulong DaysFrom = (ulong)719528 * 24 * 3600;
//时间为0的字符串
public const string StrTimeZero = "00:00";
//时间起始于1970年1月1日0点
public readonly static DateTime BeginAt = new DateTime(1970, 1, 1, 0, 0, 0);
}
}