得到当前时间

  1. DateTime.Now.ToString()
  2. 2020/4/17 11:31:42

得到时分秒

  1. DateTime.Now.Hour
  2. DateTime.Now.Minute
  3. DateTime.Now.Second