File tree Expand file tree Collapse file tree
GameFrameX.Foundation.Utility/Time Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,28 +107,28 @@ public static long UnixTimeMillisecondsWithOffset()
107107 }
108108
109109 /// <summary>
110- /// 获取当前本地时区时间的秒级时间戳
110+ /// 获取当前时区 (<see cref="CurrentTimeZone"/>) 时间的秒级时间戳
111111 /// </summary>
112- /// <returns>返回自1970年1月1日 00:00:00以来经过的秒数(本地时区 ),加上时区偏移量</returns>
112+ /// <returns>返回自1970年1月1日 00:00:00以来经过的秒数(当前时区 ),加上时区偏移量</returns>
113113 /// <remarks>
114114 /// 此方法:
115- /// 1. 获取当前本地时区时间
115+ /// 1. 获取当前时区 (<see cref="CurrentTimeZone"/>) 时间
116116 /// 2. 转换为Unix时间戳(秒)
117117 /// 3. 加上TimeOffsetSeconds偏移量
118- /// 主要用于需要本地时区时间戳的场景
118+ /// 主要用于需要当前时区 (<see cref="CurrentTimeZone"/>) 时间戳的场景
119119 /// </remarks>
120120 public static long TimeSecondsWithOffset ( )
121121 {
122122 return new DateTimeOffset ( GetNow ( ) ) . ToUnixTimeSeconds ( ) + TimeOffsetSeconds ;
123123 }
124124
125125 /// <summary>
126- /// 获取当前本地时区时间的毫秒级时间戳
126+ /// 获取当前时区 (<see cref="CurrentTimeZone"/>) 时间的毫秒级时间戳
127127 /// </summary>
128- /// <returns>返回自1970年1月1日 00:00:00以来经过的毫秒数(本地时区 ),加上时区偏移量</returns>
128+ /// <returns>返回自1970年1月1日 00:00:00以来经过的毫秒数(当前时区 ),加上时区偏移量</returns>
129129 /// <remarks>
130130 /// 此方法:
131- /// 1. 获取当前本地时区时间
131+ /// 1. 获取当前时区 (<see cref="CurrentTimeZone"/>) 时间
132132 /// 2. 转换为Unix时间戳(毫秒)
133133 /// 3. 加上TimeOffsetMilliseconds偏移量
134134 /// 相比秒级时间戳提供更高的精度,适用于需要精确时间计算的场景
You can’t perform that action at this time.
0 commit comments