📜  如何在 c# 代码示例中获取小时

📅  最后修改于: 2022-03-11 14:49:16.240000             🧑  作者: Mango

代码示例1
String foo = DateTime. Now. ToString("HH:mm");
  console.Write(foo);
//time