Skip to content

Commit 6f33cb0

Browse files
committed
chore(time): 删除已注释的无用代码
1 parent c91b975 commit 6f33cb0

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

GameFrameX.Foundation.Utility/Time/TimerHelper.Week.UTC.cs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -33,36 +33,6 @@ namespace GameFrameX.Foundation.Utility;
3333

3434
public 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>

0 commit comments

Comments
 (0)