@@ -356,7 +356,7 @@ public static int GetChinaDayOfWeek()
356356 /// 获取当前本地时区的日期,格式为yyyyMMdd的整数
357357 /// </summary>
358358 /// <returns>返回一个8位整数,表示当前本地时区的日期。例如:20231225表示2023年12月25日</returns>
359- public static int CurrentTimeWithDay ( )
359+ public static int CurrentDateWithDay ( )
360360 {
361361 return Convert . ToInt32 ( DateTime . Now . ToString ( "yyyyMMdd" ) ) ;
362362 }
@@ -365,7 +365,7 @@ public static int CurrentTimeWithDay()
365365 /// 获取当前UTC时区的日期,格式为yyyyMMdd的整数
366366 /// </summary>
367367 /// <returns>返回一个8位整数,表示当前UTC时区的日期。例如:20231225表示2023年12月25日</returns>
368- public static int CurrentTimeWithUtcDay ( )
368+ public static int CurrentDateWithUtcDay ( )
369369 {
370370 return Convert . ToInt32 ( DateTime . UtcNow . ToString ( "yyyyMMdd" ) ) ;
371371 }
@@ -410,7 +410,7 @@ public static int CurrentTimeWithLocalTime()
410410 /// 获取当前本地时区时间的完整格式字符串
411411 /// </summary>
412412 /// <returns>返回格式为"yyyy-MM-dd-HH-mm-ss.fff K"的时间字符串,包含年-月-日-时-分-秒.毫秒 时区偏移。例如:"2023-12-25-14-30-45.123 +08:00"</returns>
413- public static string CurrentTimeWithFullString ( )
413+ public static string CurrentDateTimeWithFullString ( )
414414 {
415415 return DateTime . Now . ToString ( "yyyy-MM-dd-HH-mm-ss.fff K" ) ;
416416 }
@@ -419,7 +419,7 @@ public static string CurrentTimeWithFullString()
419419 /// 获取当前UTC时区时间的完整格式字符串
420420 /// </summary>
421421 /// <returns>返回格式为"yyyy-MM-dd-HH-mm-ss.fff K"的UTC时间字符串,包含年-月-日-时-分-秒.毫秒 时区偏移。例如:"2023-12-25-06-30-45.123 +00:00"</returns>
422- public static string CurrentTimeWithUtcFullString ( )
422+ public static string CurrentDateTimeWithUtcFullString ( )
423423 {
424424 return DateTime . UtcNow . ToString ( "yyyy-MM-dd-HH-mm-ss.fff K" ) ;
425425 }
0 commit comments