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 @@ -33,36 +33,6 @@ namespace GameFrameX.Foundation.Utility;
3333
3434public static partial class TimerHelper
3535{
36- // /// <summary>
37- // /// 判断指定Unix时间戳(秒)是否与当前UTC时间是同一周
38- // /// </summary>
39- // /// <param name="timestampSeconds">Unix时间戳(秒)</param>
40- // /// <returns>如果是同一周返回true,否则返回false</returns>
41- // /// <remarks>
42- // /// 此方法将Unix秒级时间戳转换为UTC DateTime后进行比较
43- // /// 适用于跨时区判定是否同周的场景
44- // /// </remarks>
45- // public static bool IsUnixSameWeekFromTimestamp(long timestampSeconds)
46- // {
47- // var dateTime = UtcSecondsToUtcDateTime(timestampSeconds);
48- // return IsNowSameWeekUtc(dateTime);
49- // }
50- //
51- // /// <summary>
52- // /// 判断指定Unix时间戳(毫秒)是否与当前UTC时间是同一周
53- // /// </summary>
54- // /// <param name="timestampMilliseconds">Unix时间戳(毫秒)</param>
55- // /// <returns>如果是同一周返回true,否则返回false</returns>
56- // /// <remarks>
57- // /// 此方法将Unix毫秒级时间戳转换为UTC DateTime后进行比较
58- // /// 适用于跨时区判定是否同周的场景
59- // /// </remarks>
60- // public static bool IsUnixSameWeekFromTimestampMilliseconds(long timestampMilliseconds)
61- // {
62- // var dateTime = UtcMillisecondsToUtcDateTime(timestampMilliseconds);
63- // return IsNowSameWeekUtc(dateTime);
64- // }
65-
6636 /// <summary>
6737 /// 获取本周指定星期几的UTC时间
6838 /// </summary>
You can’t perform that action at this time.
0 commit comments